X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Foran-jjb%2Foran-shell-jobs.yaml;h=f4a236c91e1eabef533491451dfb6c68a06175f0;hb=fa6d9e70c64c9d94cfd140388914bded08f9cdc7;hp=56d966d7183e05923cb23d7bb091df923dabe25a;hpb=2984c9e65fe37171f233822a2ea92f29992460df;p=ci-management.git diff --git a/jjb/oran-jjb/oran-shell-jobs.yaml b/jjb/oran-jjb/oran-shell-jobs.yaml index 56d966d7..f4a236c9 100644 --- a/jjb/oran-jjb/oran-shell-jobs.yaml +++ b/jjb/oran-jjb/oran-shell-jobs.yaml @@ -177,3 +177,50 @@ - branch-compare-type: ANT branch-pattern: '**/{branch}' file-paths: '{obj:gerrit_trigger_file_paths}' + +# Build and publish artifact from gerrit by shell script. +# Triggered automatically by merging specific release file; +# can be run on any branch. +# +# Required parameters: +# build-node: label (flavor) of jenkins build minion +# project: git repository +# project-name: Jenkins job name prefix +# script: shell script to execute +# Optional parameters: +# branch: git branch pattern, defaults to master +# stream: friendly stream name (often same as branch), defaults to master +# gerrit_release_file_paths: Pathname pattern of the release file to trigger this job +- job-template: + name: '{project-name}-shell-release-{stream}' + id: oran-shell-release + <<: *oran_shell_common + + gerrit_release_file_paths: + - compare-type: REG_EXP + pattern: 'releases\/oran-shell-release.*\.yaml' + + scm: + - lf-infra-gerrit-scm: + jenkins-ssh-credential: '{jenkins-ssh-credential}' + git-url: '{git-url}' + refspec: '$GERRIT_REFSPEC' + branch: '$GERRIT_BRANCH' + submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + submodule-disable: '{submodule-disable}' + choosing-strategy: default + + triggers: + - gerrit: + server-name: '{gerrit-server-name}' + trigger-on: + - change-merged-event + projects: + - project-compare-type: ANT + project-pattern: '{project}' + branches: + - branch-compare-type: ANT + branch-pattern: '**/{branch}' + file-paths: '{obj:gerrit_release_file_paths}' +