Skip to content
Snippets Groups Projects
Commit 9d86753b authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Fixed deploy-job and formatted BuildDiscarderProperty.

parent 446028aa
No related branches found
No related tags found
No related merge requests found
......@@ -38,4 +38,10 @@ node('master') {
}
}
properties ([[$class: 'org.jenkinsci.plugins.workflow.job.properties.BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '25']]])
properties([[
$class: 'org.jenkinsci.plugins.workflow.job.properties.BuildDiscarderProperty',
strategy: [$class: 'LogRotator',
artifactDaysToKeepStr: '',
artifactNumToKeepStr: '5',
daysToKeepStr: '',
numToKeepStr: '25']]])
......@@ -37,3 +37,11 @@ node('docker') {
'ogs/scripts/jenkins/clang-log-parser.rules')
post.cleanup()
}
properties([[
$class: 'org.jenkinsci.plugins.workflow.job.properties.BuildDiscarderProperty',
strategy: [$class: 'LogRotator',
artifactDaysToKeepStr: '',
artifactNumToKeepStr: '5',
daysToKeepStr: '',
numToKeepStr: '25']]])
......@@ -25,5 +25,10 @@ def build(buildDir, cmakeOptions, target) {
sh "cd ${buildDir} && make -j \$(nproc) ${target}"
}
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator',
artifactDaysToKeepStr: '', artifactNumToKeepStr: '1', daysToKeepStr: '', numToKeepStr: '5']]])
properties([[
$class: 'org.jenkinsci.plugins.workflow.job.properties.BuildDiscarderProperty',
strategy: [$class: 'LogRotator',
artifactDaysToKeepStr: '',
artifactNumToKeepStr: '1',
daysToKeepStr: '',
numToKeepStr: '5']]])
......@@ -14,7 +14,10 @@ node('master') {
'Content-Type', value: 'Application/json']]])
}
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator',
properties([[
$class: 'org.jenkinsci.plugins.workflow.job.properties.BuildDiscarderProperty',
strategy: [$class: 'LogRotator',
artifactDaysToKeepStr: '',
artifactNumToKeepStr: '5',
daysToKeepStr: '', numToKeepStr: '10']]])
daysToKeepStr: '',
numToKeepStr: '10']]])
......@@ -3,13 +3,17 @@
node('master') {
stage 'Deploy to S3'
deleteDir()
step([$class: 'CopyArtifact', fingerprintArtifacts: true, flatten: true,
projectName: 'OGS-6/ufz/master'])
step([$class: 'CopyArtifact',
fingerprintArtifacts: true, flatten: true,
projectName: 'OGS-6/ufz/master',
selector: [$class: 'LastCompletedBuildSelector']])
s3upload('*')
build job: 'OGS-6/Deploy-Post', wait: false
}
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator',
properties([[
$class: 'org.jenkinsci.plugins.workflow.job.properties.BuildDiscarderProperty',
strategy: [$class: 'LogRotator',
artifactDaysToKeepStr: '',
artifactNumToKeepStr: '5',
daysToKeepStr: '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment