blob: ca45649c7dafc93b1cd70b20f55c1e40d433596a [file] [log] [blame]
Zack Williamsce63eb02017-02-28 10:46:22 -07001
2stage('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
14stage('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
20stage('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
33echo "All done"