ci-test/.ci/Jenkinsfile

21 lines
529 B
Groovy

pipeline {
/* choose agents per stage */
agent none
stages {
stage('Build') {
agent {
docker {
image 'gcc:latest'
args '-v ${PWD}:/src -w /src'
}
}
steps {
sh 'gcc -o hello main.c'
archiveArtifacts artifacts: 'hello',
followSymlinks: false,
onlyIfSuccessful: true
}
}
}
}