Browse Source

Added Jenkins pipeline based on the example from https://github.com/masauve/pipeline

pull/160/head
Mike Olund 8 years ago
parent
commit
529318895d
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      jenkins-pipeline/jenkinsfile

+ 18
- 0
jenkins-pipeline/jenkinsfile View File

@ -0,0 +1,18 @@
node('master') {
stage 'buildInDevelopment'
openshiftBuild(namespace: 'jag-csb-edivorce-tools', buildConfig: 'edivorce-django', showBuildLogs: 'true')
stage 'deployInDevelopment'
openshiftDeploy(namespace: 'jag-csb-edivorce-dev', deploymentConfig: 'edivorce-django')
openshiftScale(namespace: 'jag-csb-edivorce-dev', deploymentConfig: 'edivorce-django',replicaCount: '1')
stage 'test'
sh 'curl -s https://justice.gov.bc.ca/divorce-dev'
stage 'deployInTesting'
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')
openshiftScale(namespace: 'jag-csb-edivorce-test', deploymentConfig: 'edivorce-django',replicaCount: '1')
}

Loading…
Cancel
Save