blob: 1725af25e4d78fdebb6f5c9edf828a8d74359cbd [file] [log] [blame]
pipeline {
agent {
label 'git-websites'
}
stages {
stage('build') {
steps {
sh 'rm -rf build'
// clone the aries-site-pub repo
sh 'git clone --depth 1 --branch asf-site https://gitbox.apache.org/repos/asf/aries-site-pub.git build/site'
dir('build/site') {
sh 'git rm -r .'
}
sh 'npm run plain-install'
sh 'npm run build-noclean'
dir('build/site') {
sh 'git add .'
sh 'echo `git commit -m "site build"`'
sh 'git push https://gitbox.apache.org/repos/asf/aries-site-pub.git asf-site'
}
}
}
}
}