我已启用了一个有以下文字的Jenkins管道。 管道报告成功运行,但申请根本没有答复。 请帮助我。
这是我的管道。
pipeline {
agent any
stages {
stage( Checkout ) {
steps {
script {
git credentialsId: 3 ,
url: git@github.com:myusername/myproject.git
sh "git checkout master"
}
}
}
stage( Build ) {
steps {
sh mvn clean package
sh mvn package -Dmaven.test.skip=true
sh mv target/my-project-0.0.1.jar target/my-project.jar
}
}
stage( Deploy ) {
steps {
sh java -jar target/my-project.jar > /dev/null 2>&1 &
}
}
}
}
这是最后线标:
[Pipeline] sh
+ mv target/my-project-0.0.1.jar target/my-project.jar
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy)
[Pipeline] sh
+ java -jar target/my-project.jar
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS