branch: '{branch}'
refspec: 'refs/heads/{branch}'
artifacts: '{archive-artifacts}'
- - integration-unique-docker-tag:
- unique-docker-tag: ''
scm:
- gerrit-trigger-scm:
refspec: ''
publishers:
- infra-shiplogs:
maven-version: '{maven-version}'
+
+- job-template:
+ # Job template PoC for building & pushing snapshot docker images
+ # for CSIT verification
+ #
+ # golangver can be set to golang110 or golang111
+ # depending on what version is needed by the project
+ # default is golang110
+ #
+ # The purpose of this job template is to run:
+ # 1. login to the docker registry
+ # 2. run a specified shell builder
+ #
+
+ name: '{project-name}-{stream}-docker-golang-snapshot-PoC'
+ golangver: 'golang110'
+ project-type: freestyle
+ node: 'ubuntu1804-docker-8c-8g'
+ disabled: '{disabled}'
+ properties:
+ - infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+
+ parameters:
+ - infra-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ artifacts: '{archive-artifacts}'
+ - integration-unique-docker-tag:
+ unique-docker-tag: ''
+ scm:
+ - gerrit-trigger-scm:
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+ submodule-recursive: '{submodule-recursive}'
+
+ wrappers:
+ - '{golangver}'
+ - infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ # 12 AM UTC
+ - timed: '@daily'
+ - gerrit-trigger-release-manually:
+ server: '{server-name}'
+ project: '{project}'
+ branch: '{branch}'
+
+ builders:
+ - lf-infra-pre-build
+ - provide-maven-settings:
+ global-settings-file: 'global-settings'
+ settings-file: '{mvn-settings}'
+
+ - docker-login
+
+ - shell: '{script}'
+
+ publishers:
+ - infra-shiplogs:
+ maven-version: '{maven-version}'
send-to-individuals: true
- job-template:
- name: '{project-name}-{stream}-project-csit-{functionality}'
+ name: '{project-name}-{stream}-project-csit-{functionality}-PoC'
disabled: '{disabled}'
-
project-type: freestyle
build-node: 'ubuntu1804-docker-8c-8g'
node: '{build-node}'
test-plan: 'plans/{functionality}'
- integration-test-options:
test-options: '{robot-options}'
+ - integration-unique-docker-tag:
+ unique-docker-tag: ''
scm:
- gerrit-trigger-scm:
send-to-individuals: true
- job-template:
- name: '{project-name}-unified-review-{stream}-test'
+ name: '{project-name}-unified-review-{stream}-PoC'
disabled: '{disabled}'
project-type: freestyle
build-node: 'ubuntu1804-docker-8c-8g'
global-settings-file: "{mvn-global-settings}"
settings-file: "{mvn-settings}"
- trigger-builds:
- - project: "{project-name}-{stream}-docker-golang-shell-daily"
+ - project: "{project-name}-{stream}-docker-golang-snapshot-PoC"
condition: UNSTABLE_OR_BETTER
predefined-parameters: |
UNIQUE_DOCKER_TAG=$BUILD_TAG
GERRIT_REFSPEC=$GERRIT_REFSPEC
block: true
- trigger-builds:
- - project: '{project-name}-{stream}-project-csit-{review-functionality}'
+ - project: "{jobs_to_trigger}"
condition: UNSTABLE_OR_BETTER
predefined-parameters: |
UNIQUE_DOCKER_TAG=$BUILD_TAG
chmod 755 ./deployment/*.sh
cd ./deployment
-./docker-build.sh ${UNIQUE_DOCKER_TAG}
+./docker-build.sh
- project:
name: music-distributed-kv-store-csit
jobs:
- - '{project-name}-{stream}-project-csit-{functionality}'
- - '{project-name}-unified-review-{stream}-test'
+ - '{project-name}-{stream}-project-csit-{functionality}-PoC'
+ - '{project-name}-unified-review-{stream}-PoC'
project-name: 'music-distributed-kv-store'
project: 'music/distributed-kv-store'
stream: 'master'
mvn-global-settings: global-settings
functionality:
- 'music-distributed-kv-store-test-plan'
- review-functionality: 'music-distributed-kv-store-test-plan'
+ jobs_to_trigger:
+ - 'music-distributed-kv-store-master-project-csit-music-distributed-kv-store-test-plan-PoC'
robot-options: ''
branch: 'master'
jobs:
- '{project-name}-{stream}-verify-golang'
- '{project-name}-{stream}-merge-golang'
- - '{project-name}-{stream}-docker-golang-shell-daily':
+ - '{project-name}-{stream}-docker-golang-snapshot-PoC':
script:
!include-raw-escape: 'build-music-distributed-kv-store-image.sh'
project: 'music/distributed-kv-store'