Browse Source

Only keep the last 10 builds in Jenkins

pull/160/head
Mike Olund 8 years ago
parent
commit
854b0c5efe
3 changed files with 6 additions and 0 deletions
  1. +2
    -0
      openshift/jenkins/build-and-deploy-to-dev
  2. +2
    -0
      openshift/jenkins/deploy-to-prod
  3. +2
    -0
      openshift/jenkins/deploy-to-test

+ 2
- 0
openshift/jenkins/build-and-deploy-to-dev View File

@ -1,5 +1,7 @@
node('master') {
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10']]])
stage 'buildInTools'
openshiftBuild(namespace: 'jag-csb-edivorce-tools', buildConfig: 'edivorce-django', showBuildLogs: 'true')


+ 2
- 0
openshift/jenkins/deploy-to-prod View File

@ -1,5 +1,7 @@
node('master') {
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10']]])
stage 'deployInProd'
openshiftTag(namespace: 'jag-csb-edivorce-tools', sourceStream: 'edivorce-django', sourceTag: 'latest', destinationNamespace: 'jag-csb-edivorce-tools', destinationStream: 'edivorce-django', destinationTag: 'deploy-to-prod')
openshiftDeploy(namespace: 'jag-csb-edivorce-prod', deploymentConfig: 'edivorce-django')


+ 2
- 0
openshift/jenkins/deploy-to-test View File

@ -1,5 +1,7 @@
node('master') {
properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10']]])
stage 'deployInTest'
openshiftTag(namespace: 'jag-csb-edivorce-tools', sourceStream: 'edivorce-django', sourceTag: 'latest', destinationNamespace: 'jag-csb-edivorce-tools', destinationStream: 'edivorce-django', destinationTag: 'deploy-to-test')
openshiftDeploy(namespace: 'jag-csb-edivorce-test', deploymentConfig: 'edivorce-django')


Loading…
Cancel
Save