X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fci-management%2Fci-docker.yaml;h=253758f1eadda35eafed30d881b8f76e7b617895;hb=ef9a20b58e05e99412b3c32ddd14c0037da9544b;hp=d2ce6e9447101b5ae378d80eaeaff7f94c89b3f0;hpb=6a4987a1566bf9092e9c5295dddcdca3eb198fe1;p=ci-management.git diff --git a/jjb/ci-management/ci-docker.yaml b/jjb/ci-management/ci-docker.yaml index d2ce6e94..253758f1 100644 --- a/jjb/ci-management/ci-docker.yaml +++ b/jjb/ci-management/ci-docker.yaml @@ -1,6 +1,8 @@ --- +# Job configurations for base docker build images + +# This macro factors out common configuration - ci_docker_common: &ci_docker_common - # Defines common ci-docker configuration name: ci-docker-common # git repo project: ci-management @@ -10,52 +12,32 @@ cron: 'H H * * 6' # use host network to clone from our gerrit docker-build-args: '--network=host' - # default to YAML + # get tag from YAML container-tag-method: yaml-file - jobs: - - '{project-name}-gerrit-docker-jobs' - stream: - - master: - branch: master - -- project: - <<: *ci_docker_common - name: bldr-alpine3 + # 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-ubuntu16-c-go - project-name: '{project}-{name}' - docker-name: '{name}' - docker-root: 'docker/{name}' - gerrit_trigger_file_paths: - - compare-type: REG_EXP - pattern: 'docker/{name}/.*' - -- project: - <<: *ci_docker_common - name: bldr-ubuntu18-c-go - project-name: '{project}-{name}' - docker-name: '{name}' - docker-root: 'docker/{name}' - gerrit_trigger_file_paths: - - compare-type: REG_EXP - pattern: 'docker/{name}/.*' +# 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-alpine3-go - project-name: '{project}-{name}' - docker-name: '{name}' - docker-root: 'docker/{name}' - gerrit_trigger_file_paths: - - compare-type: REG_EXP - pattern: 'docker/{name}/.*'