Jenkinsfile: Update deprecated 'stage' syntax

coolant-mod
krzys-h 2017-05-21 20:47:35 +02:00
parent 41c03fda84
commit b325c53316
1 changed files with 19 additions and 15 deletions

10
Jenkinsfile vendored
View File

@ -1,10 +1,12 @@
#!/usr/bin/env groovy
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10']]]) properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10']]])
node('master') { node('master') {
stage 'Pull changes' stage('Pull changes') {
checkout scm checkout scm
}
stage 'Build data' stage('Build data') {
sh 'mkdir -p build' sh 'mkdir -p build'
dir('build') { dir('build') {
sh ''' sh '''
@ -14,8 +16,10 @@ node('master') {
DESTDIR=. make install DESTDIR=. make install
''' '''
} }
}
stage 'Archive data' stage('Archive data') {
sh 'rm -f data.zip' sh 'rm -f data.zip'
zip zipFile: 'data.zip', archive: true, dir: 'build/install' zip zipFile: 'data.zip', archive: true, dir: 'build/install'
} }
}