提交 6a84cf26 authored 作者: xingxiaofeng's avatar xingxiaofeng

测试

上级 34709e04
...@@ -6,10 +6,13 @@ pipeline ...@@ -6,10 +6,13 @@ pipeline
stage('SonarQube') stage('SonarQube')
{ {
steps{ steps{
echo 'mvn withSonarQubeEnv'
/**
withSonarQubeEnv('sonar') withSonarQubeEnv('sonar')
{ {
// sh "mvn sonar:sonar -Dsonar.java.binaries=target/sonar" // sh "mvn sonar:sonar -Dsonar.java.binaries=target/sonar"
} }
**/
} }
} }
stage('Build') stage('Build')
...@@ -17,8 +20,9 @@ pipeline ...@@ -17,8 +20,9 @@ pipeline
steps { steps {
// 使用Shell脚本执行构建命令 // 使用Shell脚本执行构建命令
// 这里以Maven构建Java项目为例 // 这里以Maven构建Java项目为例
echo 'mvn clean package'
script { script {
echo 'mvn clean package'
// sh 'mvn clean package' // sh 'mvn clean package'
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论