Add changes to build ODL docker
[releng/builder.git] / jjb / packaging / packaging.yaml
1 ---
2 - project:
3     name: packaging-maven-docker-jobs
4     project-name: packaging
5     project: integration/packaging
6     container-public-registry: nexus3.opendaylight.org:10001
7     container-snapshot-registry: nexus3.opendaylight.org:10003
8     container-staging-registry: nexus3.opendaylight.org:10004
9     staging-profile-id: ""
10     mvn-settings: packaging-settings
11     mvn-snapshot-id: packaging-snapshots
12     nexus-snapshot-repo: opendaylight-snapshots
13     tox-dir: "$WORKSPACE"
14     pre_docker_build_script: "$WORKSPACE/odl-docker/install_docker.sh"
15     docker-name: odl-docker
16     docker-root: "$WORKSPACE/odl-docker"
17     build-node: centos7-docker-4c-4g
18     gerrit_trigger_file_paths:
19       - compare-type: REG_EXP
20         pattern: "$WORKSPACE/.*"
21     jobs:
22       - gerrit-docker-verify:
23       - gerrit-docker-merge:
24           post_docker_build_script: |
25             #!/bin/bash
26             set -uex -o pipefail
27             set -x
28             DOCKER_IMAGE_TAG2=${{DOCKER_IMAGE_TAG%-*}}
29             DNAME={container-snapshot-registry}/{docker-name}
30             docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:$DOCKER_IMAGE_TAG2
31             docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:latest
32             docker push $DNAME:$DOCKER_IMAGE_TAG2
33             docker push $DNAME:latest
34       - gerrit-maven-docker-stage:
35           mvn-params: "-Dmaven.test.skip install exec:exec -Pbuild-docker"
36           maven-versions-plugin: true
37           sign-artifacts: true
38     stream:
39       - master:
40           branch: "master"
41
42 - project:
43     name: packaging-view
44     views:
45       - project-view
46     project-name: packaging