Permalink
Browse files
Revise CI script to generate changelogs
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
scripts/jenkins_master.groovy
|
@@ -13,8 +13,8 @@ pipeline { |
|
|
stage('Pull Projects') { |
|
|
steps { |
|
|
script { |
|
|
if(fileExists('last_build_commit')) |
|
|
lastBuildCommit = readFile 'last_build_commit' |
|
|
if(currentBuild.previousBuild != null && currentBuild.previousBuild.buildVariables.containsKey("LAST_BUILD")) |
|
|
lastBuildCommit = currentBuild.previousBuild.buildVariables["LAST_BUILD"] |
|
|
} |
|
|
// Clean up old project before starting |
|
|
cleanWs() |
|
@@ -47,7 +47,7 @@ pipeline { |
|
|
post { |
|
|
cleanup { |
|
|
script { |
|
|
writeFile file: 'last_build_commit', text: lastBuildCommit |
|
|
env.LAST_BUILD = lastBuildCommit |
|
|
} |
|
|
} |
|
|
success { |
|
|
0 comments on commit
6286286