I have a pipeline job created in Jenkins and I need to create a pipeline script that displays the failure and unstable builds in developement stage. What are the steps to create this in Jenkins 2.0 or Is there any sample pipeline script
Asked
Active
Viewed 618 times
1 Answers
1
For start just follow steps from tutorial, ex
node {
git url: 'https://github.com/joe_user/simple-maven-project-with-tests.git'
def mvnHome = tool 'M3'
sh "${mvnHome}/bin/mvn -B verify"
}
And you can change build status using currentBuild.result
variable.

luka5z
- 7,525
- 6
- 29
- 52
-
Thanks for the solution. Is it possible to have the pipeline with the projects running on Subversion and ANT – Eliyas May 02 '16 at 06:22
-
Subversion is supported, and Ant could be used similarly like Maven is, with `sh` step. – luka5z May 02 '16 at 06:49