Added uglify options to dist, added documentation. Added Jenkinsfile options to build a master branch dist

This commit is contained in:
Jeremy Smitherman
2018-12-26 14:45:49 -06:00
parent 9e4b734eb8
commit 967bf6570e
6 changed files with 100 additions and 41 deletions
Vendored
+11 -4
View File
@@ -4,17 +4,24 @@ pipeline {
stages {
stage('Build') {
steps {
sh '/opt/squish/bin/squish --no-minify'
sh 'squish --uglify'
sh "ldoc ${env.WORKSPACE}"
}
}
stage('Deploy') {
stage('Deploy') {
when {
tag 'release-*'
anyOf { tag 'release-*'; branch 'master' }
}
steps {
sh "python3 /opt/hoggit_releaser/releaser.py ${env.WORKSPACE} ${env.TAG_NAME}"
script {
if (env.TAG_NAME && env.TAG_NAME =~ /release-/) {
TAG = env.TAG_NAME
} else {
TAG = env.BRANCH_NAME
}
}
sh "python3 /opt/hoggit_releaser/releaser.py ${env.WORKSPACE} ${TAG}"
}
}
}