X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fci-management%2Fci-docker.yaml;h=253758f1eadda35eafed30d881b8f76e7b617895;hb=refs%2Fheads%2Fmaster;hp=c0854f74480bcfdf55ca86f4735eded3a761412c;hpb=e9b8d6ae26e69195130bac93067e2835f234da4c;p=ci-management.git diff --git a/jjb/ci-management/ci-docker.yaml b/jjb/ci-management/ci-docker.yaml index c0854f74..ef5d7d33 100644 --- a/jjb/ci-management/ci-docker.yaml +++ b/jjb/ci-management/ci-docker.yaml @@ -1,43 +1,43 @@ --- -- ci_docker_common: &ci_docker_common - # Defines common ci-docker configuration +# Job configurations for base docker build images + +# This macro factors out common configuration +- _ci_docker_common: &ci_docker_common name: ci-docker-common # git repo project: ci-management - build-node: ubuntu1804-docker-4c-4g - container-public-registry: nexus3.o-ran-sc.org:10001 - # use the staging repo bcos all builds are RCs - container-push-registry: nexus3.o-ran-sc.org:10004 - # use host network to clone from our gerrit - docker-build-args: '--network=host' - # default to YAML - container-tag-method: yaml-file # maven settings file has docker credentials mvn-settings: ci-management-settings + # build every Saturday + cron: "H H * * 6" + # use host network to clone from our gerrit + docker-build-args: "--network=host" + # get tag from YAML + container-tag-method: yaml-file + # name key is overridden by project template + # Jenkins job prefix + project-name: "{project}-{name}" + # Docker image name + docker-name: "{name}" + # Directory with Dockerfile + docker-root: "docker/{name}" + # Limit build trigger to appropriate files + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: "docker/{name}/.*" + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + # Only build master branch stream: - master: branch: master -- project: - <<: *ci_docker_common - name: bldr-debian-python-nng - project-name: '{project}-{name}' - docker-name: '{name}' - docker-root: 'docker/{name}' - gerrit_trigger_file_paths: - - compare-type: REG_EXP - pattern: 'docker/{name}/.*' - jobs: - - '{project-name}-gerrit-docker-jobs' +# Each project name is a subdirectory in ci-management/docker +# with a Dockerfile and a container-tag.yaml file +# This image is deprecated, projects should move to Ubuntu 18 +# TODO remove entirely - project: + name: bldr-ubuntu16-c-go <<: *ci_docker_common - name: bldr-ubuntu-c-go-nng - project-name: '{project}-{name}' - docker-name: '{name}' - docker-root: 'docker/{name}' - gerrit_trigger_file_paths: - - compare-type: REG_EXP - pattern: 'docker/{name}/.*' - jobs: - - '{project-name}-gerrit-docker-jobs'