X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fci-management%2Fci-docker.yaml;h=1c2274d507a89c394d896d97f102fae50c55ee17;hb=a7fc7ba8d6743999956704e2cac6b3238a6bdb1b;hp=d2ce6e9447101b5ae378d80eaeaff7f94c89b3f0;hpb=3711ffcbfe06f6c872bf4a0871eb5f2a2fcd83ae;p=ci-management.git diff --git a/jjb/ci-management/ci-docker.yaml b/jjb/ci-management/ci-docker.yaml index d2ce6e94..1c2274d5 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,42 @@ 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 + +# Each project name is a subdirectory in ci-management/docker +# with a Dockerfile and a container-tag.yaml file - project: + name: bldr-alpine3 <<: *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: + name: bldr-alpine3-go <<: *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}/.*' - project: + name: bldr-ubuntu16-c-go + <<: *ci_docker_common + +- project: + name: bldr-ubuntu18-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}/.*'