[infra] updated push script

This commit is contained in:
Mike Aizatsky 2016-07-25 15:14:38 -07:00
parent 8299b73d0d
commit a58c0d8f65
1 changed files with 10 additions and 4 deletions

View File

@ -16,8 +16,14 @@
// Jenkins build script to push docker images to docker repository.
def images = ['ossfuzz/base', 'ossfuzz/base-clang', 'ossfuzz/base-libfuzzer']
node() {
docker.withRegistry('', 'docker-login') {
docker.image('ossfuzz/base').push()
docker.image('ossfuzz/base-clang').push()
docker.image('ossfuzz/base-libfuzzer').push()
for (int i = 0; i < images.size(); i++) {
def image = images[i]
stage name: "Pushing $image"
docker.image(image).push()
}
}
}