zipkin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abe...@apache.org
Subject [incubator-zipkin-website] branch master updated: [Jenkinsfile] Still trying to fix Publish step
Date Mon, 22 Apr 2019 08:03:34 GMT
This is an automated email from the ASF dual-hosted git repository.

abesto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-zipkin-website.git


The following commit(s) were added to refs/heads/master by this push:
     new d73ffc5  [Jenkinsfile] Still trying to fix Publish step
d73ffc5 is described below

commit d73ffc5be090409797051231b617f15fd72e5c9d
Author: Zoltan Nagy <abesto0@gmail.com>
AuthorDate: Mon Apr 22 09:03:13 2019 +0100

    [Jenkinsfile] Still trying to fix Publish step
---
 Jenkinsfile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index a43d0e0..249ebeb 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -82,6 +82,10 @@ pipeline {
 			when {
 				branch 'master'
 			}
+			environment {
+				// GH Personal access token @abesto
+				GITUSER = credentials('2d27b827-20c2-4173-ac84-f3abc308fc88')
+			}
 			steps {
 				sh '''
 				set -xeuo pipefail
@@ -108,6 +112,7 @@ pipeline {
 				if [ -z "$(git status --porcelain)" ]; then
 					echo 'No changes to commit/push'
 				else
+					sh 'git config --local credential.helper "!p() { echo username=\\$GITUSER_USR; echo
password=\\$GITUSER_PSW; }; p"'
 					git commit -m "$commitmsg"
 					git log asf-site -3
 					git push origin asf-site


Mime
View raw message