1 Star 0 Fork 2

openwms / org.openwms.core.uaa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Jenkinsfile 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env groovy
import hudson.model.*
import hudson.EnvVars
import groovy.json.JsonSlurperClassic
import groovy.json.JsonBuilder
import groovy.json.JsonOutput
import java.net.URL
node {
try {
def mvnHome
stage('\u27A1 Preparation') {
git 'git@github.com:openwms/org.openwms.core.uaa.git'
mvnHome = tool 'M3'
}
stage('\u27A1 Build') {
configFileProvider(
[configFile(fileId: 'maven-local-settings', variable: 'MAVEN_SETTINGS')]) {
sh "'${mvnHome}/bin/mvn' -s $MAVEN_SETTINGS clean install -Ddocumentation.dir=${WORKSPACE}/target -Psordocs,sonatype -U"
}
}
stage('\u27A1 Results') {
archive '**/target/*.jar'
}
stage('\u27A1 Heroku Staging') {
sh '''
if git remote | grep heroku > /dev/null; then
git remote rm heroku
fi
git remote add heroku https://:${DGMXCH_HEROKU_API_KEY}@git.heroku.com/openwms-core-uaa.git
git push heroku master -f
'''
}
stage('\u27A1 Documentation') {
configFileProvider(
[configFile(fileId: 'maven-local-settings', variable: 'MAVEN_SETTINGS')]) {
sh "'${mvnHome}/bin/mvn' -s $MAVEN_SETTINGS install site site:deploy -Dci.buildNumber=${BUILD_NUMBER} -Ddocumentation.dir=${WORKSPACE}/target -Psonatype"
}
}
stage('\u27A1 Sonar') {
sh "'${mvnHome}/bin/mvn' clean org.jacoco:jacoco-maven-plugin:prepare-agent verify -Dci.buildNumber=${BUILD_NUMBER} -Ddocumentation.dir=${WORKSPACE}/target -Pjenkins"
sh "'${mvnHome}/bin/mvn' sonar:sonar -Pjenkins"
}
} finally {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/TEST-*.xml'
}
}
1
https://gitee.com/comk1/org.openwms.core.uaa.git
git@gitee.com:comk1/org.openwms.core.uaa.git
comk1
org.openwms.core.uaa
org.openwms.core.uaa
master

搜索帮助