2020-11-15 20:22:48 -08:00
|
|
|
pipeline {
|
2020-11-15 20:38:56 -08:00
|
|
|
agent { dockerfile true }
|
2020-11-15 20:22:48 -08:00
|
|
|
|
2020-11-15 21:12:30 -08:00
|
|
|
triggers {
|
|
|
|
pollSCM('H * * * *')
|
|
|
|
}
|
|
|
|
|
2020-11-15 20:22:48 -08:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2020-11-15 21:01:39 -08:00
|
|
|
cmakeBuild installation: 'InSearchPath',
|
2020-11-15 20:22:48 -08:00
|
|
|
buildDir: 'build',
|
2020-11-15 21:06:54 -08:00
|
|
|
sourceDir: 'src',
|
2020-11-15 21:09:52 -08:00
|
|
|
steps: [[args: 'all']]
|
2020-11-15 21:01:39 -08:00
|
|
|
|
2020-11-15 21:09:52 -08:00
|
|
|
archiveArtifacts artifacts: 'build/com/craftinginterpreters/lox/Lox.jar',
|
2020-11-15 20:22:48 -08:00
|
|
|
fingerprint: false,
|
|
|
|
onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|