comparison Jenkinsfile @ 19:02c83c12d3d5

added jenkins build
author am@osimis.io
date Thu, 19 Jul 2018 15:04:00 +0200
parents
children
comparison
equal deleted inserted replaced
15:e252d740436f 19:02c83c12d3d5
1 try {
2 node('docker') {
3 stage 'Retrieve sources'
4 deleteDir()
5 checkout scm
6
7 lock(resource: 'orthanc-authorization-plugin', inversePrecedence: false) {
8 stage 'Build Docker image & run unit tests'
9 sh 'scripts/ciBuildDockerImage.sh'
10 }
11
12 withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: 'aws-orthanc.osimis.io']]) {
13 stage 'Push Docker plugin to AWS'
14 sh 'scripts/ciPushToAws.sh ${BRANCH_NAME}'
15 }
16 }
17 }
18 catch (e) {
19 slackSend color: '#FF0000', message: "${env.JOB_NAME} has failed ${env.JOB_URL}"
20 throw e
21 }