Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/84928
Change subject: default and macro to be used on labs
......................................................................
default and macro to be used on labs
The labs instances are not receiving any Gerrit replication, we have to
fetch the content from Gerrit directly instead of /srv/ssd/gerrit/*
The default 'use-remote-zuul-noreplication' will set up the git scm for
us.
Change-Id: I57a21ed0d96ff823699365067159e1d31b9b4345
---
M defaults.yaml
M macro-scm.yaml
2 files changed, 33 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/integration/jenkins-job-builder-config
refs/changes/28/84928/1
diff --git a/defaults.yaml b/defaults.yaml
index 6fe2855..1ce7973 100644
--- a/defaults.yaml
+++ b/defaults.yaml
@@ -67,6 +67,27 @@
- ansicolor
- defaults:
+ name: use-remote-zuul-noreplication
+ # defaults: global
+
+ description: |
+ <p>Job is managed by <a
href="https://www.mediawiki.org/wiki/CI/JJB">Jenkins Job Builder</a>.</p>
+ <p>This job is triggered by Zuul</p>
+
+ project-type: freestyle
+
+ scm:
+ - git-remote-zuul-noreplica
+
+ wrappers:
+ - timeout:
+ timeout: 360
+ fail: true
+ - timestamps
+ - ansicolor
+
+
+- defaults:
name: use-zuul-for-mw-ext
# defaults: global
diff --git a/macro-scm.yaml b/macro-scm.yaml
index 53d5150..c31beff 100644
--- a/macro-scm.yaml
+++ b/macro-scm.yaml
@@ -52,3 +52,15 @@
branches:
- '$ZUUL_COMMIT'
refspec: '$ZUUL_REF'
+
+# Suitable when the job is running on labs where we do not have
+# any Gerrit replication. Fetch over https directly from Gerrit.
+- scm:
+ name: git-remote-zuul-noreplica
+ scm:
+ - git:
+ url: 'git://integration.wikimedia.org/$ZUUL_PROJECT'
+ reference-repo: 'https://gerrit.wikimedia.org/r/p/$ZUUL_PROJECT.git'
+ branches:
+ - '$ZUUL_COMMIT'
+ refspec: '$ZUUL_REF'
--
To view, visit https://gerrit.wikimedia.org/r/84928
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I57a21ed0d96ff823699365067159e1d31b9b4345
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins-job-builder-config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits