Zack Williams | ce63eb0 | 2017-02-28 10:46:22 -0700 | [diff] [blame^] | 1 | |
| 2 | stage('checkout') { |
| 3 | node('master'){ |
| 4 | checkout(changelog: false, poll: false, scm: [$class: 'RepoScm', \ |
| 5 | manifestRepositoryUrl: 'https://gerrit.opencord.org/manifest.git', \ |
| 6 | manifestBranch: 'master', currentBranch: true, \ |
| 7 | manifestFile: 'default.xml', \ |
| 8 | destinationDir: 'cord', \ |
| 9 | forceSync: true, resetFirst: true, \ |
| 10 | quiet: false, jobs: 4, showAllChanges: true]) |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | stage('imagebuilder'){ |
| 15 | node('master') { |
| 16 | sh '$WORKSPACE/imagebuilder.py -v -b -r cord/ -c cord/docker_images.yml -l image_logs -a ib_actions.yml -g ib_graph.dot' |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | stage('push'){ |
| 21 | node('master'){ |
| 22 | def ib_actions = readYaml( file:"$WORKSPACE/ib_actions.yml" ) |
| 23 | |
| 24 | withDockerRegistry([credentialsId: 'docker-artifact-push-credentials']) { |
| 25 | for(image in ib_actions.ib_built){ |
| 26 | echo "Pushing image: " + image.push_name |
| 27 | docker.image(image.push_name).push() |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | echo "All done" |