提交 54a6086f authored 作者: xingxiaofeng's avatar xingxiaofeng

jenkinsfile

上级 6a8b2c3d
pipeline {
pipeline
{
agent any
stages {
stage('Build') {
stages
{
stage('SonarQube')
{
steps{
withSonarQubeEnv('sonar')
{
}
}
}
stage('Build')
{
steps {
// 使用Shell脚本执行构建命令
// 这里以Maven构建Java项目为例
......@@ -10,4 +20,7 @@ pipeline {
sh 'mvn clean package'
}
}
}
\ No newline at end of file
}
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论