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