Skip to content
Permalink
Browse files
Try to set up a Jenkinsfile to run a build-publish script
  • Loading branch information
djencks committed Apr 21, 2021
1 parent a1ef43b commit 6f8e53675923445874acc7407229224e1cb17d60
Showing 4 changed files with 2,242 additions and 3 deletions.
@@ -1,5 +1,4 @@
/build/
package-lock.json
node
node_modules
.cache
@@ -0,0 +1,12 @@
pipeline {
agent { docker { image 'node:14-alpine' } }
stages {
stage('build') {
steps {
sh 'npm --version'
sh 'chmod u+x build-publish.sh'
sh './build-publish.sh'
}
}
}
}
@@ -1,13 +1,16 @@
#!/bin/bash

SITE_REPO=git@github.com:apache/aries-site-pub.git
#SITE_REPO=file:///Users/david/projects/aries/site-temp/aries-site-pub.git

npm run clean-install

rm -rf build
mkdir -p build/site
# clone the aries-site-pub repo
(
cd build/site
git clone --depth 1 git@github.com:apache/aries-site-pub.git .
git clone --depth 1 $SITE_REPO .
git rm -r .
)

@@ -17,5 +20,5 @@ npm run build-noclean
cd build/site
git add .
git commit -m "site build"
git push origin master
#git push origin master
)

0 comments on commit 6f8e536

Please sign in to comment.