加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 995 Bytes
一键复制 编辑 原始数据 按行查看 历史
Heiko Scherrer 提交于 2017-05-28 23:04 . removed non existing profile
#!groovy
node {
try {
def mvnHome
stage('\u27A1 Preparation') {
git 'git@github.com:openwms/org.openwms.git'
mvnHome = tool 'M3'
}
stage('\u27A1 Build & Deploy') {
configFileProvider(
[configFile(fileId: 'maven-local-settings', variable: 'MAVEN_SETTINGS')]) {
sh "'${mvnHome}/bin/mvn' -s $MAVEN_SETTINGS clean deploy -Dci.buildNumber=${BUILD_NUMBER} -Ddocumentation.dir=${WORKSPACE}/target -Psonatype -U"
}
}
stage('\u27A1 Sonar') {
configFileProvider(
[configFile(fileId: 'maven-local-settings', variable: 'MAVEN_SETTINGS')]) {
sh "'${mvnHome}/bin/mvn' -s $MAVEN_SETTINGS org.jacoco:jacoco-maven-plugin:prepare-agent sonar:sonar -Dci.buildNumber=${BUILD_NUMBER} -Ddocumentation.dir=${WORKSPACE}/target -Pjenkins"
}
}
stage('\u27A1 Results') {
archive '**/target/*.jar'
}
} finally {
junit allowEmptyResults: true, testResults: '**/*/target/surefire-reports/TEST-*.xml'
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化