This is needed for jobs that want to trigger against cross-project
Git systems such as global-jjb and lftools.
Change-Id: I28035e22532c1e81e363e59a5e57a1b09b5ae1b8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Optional parameters:
**branch**: is the git branch to build from.
Optional parameters:
**branch**: is the git branch to build from.
+**git-url**: is used to override the GIT_URL environment variable. Should not
+ be necessary in most cases. Mainly used by LF projects such as
+ global-jjb and lftools.
**jjb-version**: is the version of JJB to install in the build minion.
## Archiving logs in Jobs
**jjb-version**: is the version of JJB to install in the build minion.
## Archiving logs in Jobs
# yamllint disable-line rule:key-duplicates
<<: *lf_jjb_merge_builders
# yamllint disable-line rule:key-duplicates
<<: *lf_jjb_merge_builders
+ ######################
+ # Default parameters #
+ ######################
+
+ git-url: '$GIT_URL/$GERRIT_PROJECT'
+
+ #####################
+ # Job Configuration #
+ #####################
+
scm:
- lf-infra-gerrit-scm:
scm:
- lf-infra-gerrit-scm:
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
refspec: ''
branch: '{branch}'
submodule-recursive: '{submodule-recursive}'
choosing-strategy: default
refspec: ''
branch: '{branch}'
submodule-recursive: '{submodule-recursive}'
choosing-strategy: default
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
# yamllint disable-line rule:key-duplicates
<<: *lf_jjb_verify_builders
# yamllint disable-line rule:key-duplicates
<<: *lf_jjb_verify_builders
+ ######################
+ # Default parameters #
+ ######################
+
+ git-url: '$GIT_URL/$GERRIT_PROJECT'
+
+ #####################
+ # Job Configuration #
+ #####################
+
scm:
- lf-infra-gerrit-scm:
scm:
- lf-infra-gerrit-scm:
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: '{submodule-recursive}'
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: '{submodule-recursive}'
scm:
- git:
credentials-id: '{jenkins-ssh-credential}'
scm:
- git:
credentials-id: '{jenkins-ssh-credential}'
- url: '$GIT_URL/$GERRIT_PROJECT'
refspec: '{refspec}'
branches:
- 'refs/heads/{branch}'
refspec: '{refspec}'
branches:
- 'refs/heads/{branch}'