Cscott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173046

Change subject: Add travis-set-env.sh helper for travis integration.
......................................................................

Add travis-set-env.sh helper for travis integration.

Change-Id: I04adc1ed8b80bdf893cb6315d50f58685d202de4
---
A bin/travis-set-env.sh
1 file changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/jenkins 
refs/changes/46/173046/1

diff --git a/bin/travis-set-env.sh b/bin/travis-set-env.sh
new file mode 100644
index 0000000..9181563
--- /dev/null
+++ b/bin/travis-set-env.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -x
+#
+# Script to set custom environment variables for 'npm-travis' jobs.
+# Runs gerrit push as the 'npmjenkins' user.
+#
+
+GERRIT_PROJECT="$1"
+GERRIT_USER='npmjenkins'
+REPO_SSH="ssh://${GERRIT_USER}@gerrit.wikimedia.org:29418/${GERRIT_PROJECT}.git"
+
+git remote add gerrit "${REPO_SSH}"
+
+if [[ "$USER" != "jenkins" ]]; then
+       echo "Must be run as 'jenkins' user to access $GERRIT_USER SSH 
credentials"
+       exit 1
+fi
+export GERRIT_USER_SSH_IDENTITY="/var/lib/jenkins/.ssh/${GERRIT_USER}_id_rsa"
+export 
GIT_SSH="/srv/deployment/integration/slave-scripts/bin/ssh-jenkins-mwext-sync.sh"

-- 
To view, visit https://gerrit.wikimedia.org/r/173046
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I04adc1ed8b80bdf893cb6315d50f58685d202de4
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to