diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2015-11-27 13:19:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-11-27 13:19:24 +0000 |
commit | 875ef9816810ee2f1119528ca18f881d76497d2f (patch) | |
tree | c900e46e9531a87df910cfdd3e1ad5fb1a2577ba /jjb/opnfv/opnfv-docker.yml | |
parent | e0d76f879b5ae0927b6312ae51bf53485e538ee2 (diff) | |
parent | 7c7f2f0bc299c31a1fe5ffe3271b44439c80a65d (diff) |
Merge "Create generic jenkins job to build and push a docker image"
Diffstat (limited to 'jjb/opnfv/opnfv-docker.yml')
-rw-r--r-- | jjb/opnfv/opnfv-docker.yml | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/jjb/opnfv/opnfv-docker.yml b/jjb/opnfv/opnfv-docker.yml new file mode 100644 index 000000000..dfff050a9 --- /dev/null +++ b/jjb/opnfv/opnfv-docker.yml @@ -0,0 +1,76 @@ +############################################## +# job configuration for docker build and push +############################################## + +- project: + + name: opnfv-docker + + project: + - 'functest' + - 'yardstick' + + jobs: + - '{project}-docker-build-push-{stream}' + + stream: + - master: + branch: 'master' + +######################## +# job templates +######################## +- job-template: + name: '{project}-docker-build-push-{stream}' + + project-type: freestyle + + node: ericsson-build + + disabled: false + + parameters: + - project-parameter: + project: '{project}' + - string: + name: GIT_BASE + default: "https://gerrit.opnfv.org/gerrit/$PROJECT" + description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW." + - string: + name: PUSH_IMAGE + default: "true" + description: "To enable/disable pushing the image to Dockerhub." + - string: + name: BASE_VERSION + default: "brahmaputra.0" + description: "Base version to be used." + - string: + name: DOCKER_REPO_NAME + default: "opnfv/{project}" + description: "Dockerhub repo to be pushed to." + - string: + name: UPDATE_LATEST_STABLE + default: "false" + description: "This will update the latest_stable image only." + - string: + name: STABLE_TAG + description: "If above option is true, this is the tag to be pulled." + + scm: + - git-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + branch: '{branch}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + builders: + - shell: + !include-raw ./opnfv-docker.sh + + triggers: + - pollscm: "*/30 * * * *" |