Skip to content
Permalink
Browse files
Add push
  • Loading branch information
djencks committed Apr 27, 2021
1 parent 22e460d commit eb328e1beac4be1058eff24e2852a20e5790784d
Showing 2 changed files with 10 additions and 8 deletions.
@@ -1,15 +1,18 @@
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 {
sh 'npm --version'
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'
}
}
}
}
@@ -1,15 +1,14 @@
#!/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

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
)

0 comments on commit eb328e1

Please sign in to comment.