You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by dj...@apache.org on 2021/04/27 18:23:12 UTC

[aries-antora] branch master updated: Add push

This is an automated email from the ASF dual-hosted git repository.

djencks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-antora.git


The following commit(s) were added to refs/heads/master by this push:
     new eb328e1  Add push
eb328e1 is described below

commit eb328e1beac4be1058eff24e2852a20e5790784d
Author: David Jencks <dj...@apache.org>
AuthorDate: Tue Apr 27 11:22:51 2021 -0700

    Add push
---
 Jenkinsfile      | 11 +++++++----
 build-publish.sh |  7 +++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 6be2022..4132dd9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,6 +1,7 @@
 pipeline {
-//    agent { docker { image 'node:14-alpine' } }
-    agent any
+    agent { docker { image 'node:14-alpine' } }
+//    agent any
+// aries-site-pub-PAT
     stages {
         stage('build') {
             steps {
@@ -8,8 +9,10 @@ pipeline {
 		sh 'chmod u+x build-publish.sh'
 		sh 'pwd'
 		sh 'ls -l'
-		sh 'sh build-publish.sh'		
-
+//		sh 'sh build-publish.sh'		
+                withCredentials([usernamePassword(credentialsId: 'aries-site-pub-PAT', passwordVariable: 'password', usernameVariable: 'user')]) {
+		    sh 'sh build-publish.sh'		
+                }
             }
         }
     }
diff --git a/build-publish.sh b/build-publish.sh
index a25bbfe..851ba1d 100644
--- a/build-publish.sh
+++ b/build-publish.sh
@@ -1,7 +1,6 @@
 #!/bin/bash
 
-SITE_REPO=https://github.com/apache/aries-site-pub.git
-#SITE_REPO=file:///Users/david/projects/aries/site-temp/aries-site-pub.git
+SITE_REPO=github.com/apache/aries-site-pub.git
 
 npm run plain-install
 
@@ -9,7 +8,7 @@ rm -rf build
 #mkdir -p build/site
 # clone the aries-site-pub repo
 (
-git clone --depth 1 $SITE_REPO build/site
+git clone --depth 1 https://$SITE_REPO build/site
 cd build/site
 pwd
 ls
@@ -22,5 +21,5 @@ npm run build-noclean
 cd build/site
 git add .
 echo `git commit -m "site build"`
-#git push origin master
+git push https://${user}:${password}$SITE_REPO master
 )