• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jenkins conditional steps for maven project

 
varun srivastv
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I use Jenkins for continuous integration.

How can I run conditional steps with Maven projects ? For free style projects I am able to set up conditional steps but this seems not available with Maven projects.

Additionally I also want to publish findbugs/pmd reports conditionally in maven projects. Again this looks possible using flexible publish plugin only for free style projects.

Any help would be highly appreciated.

-Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17639
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven is designed with the idea that essentially all builds are identical. The concept of "conditional" building is mostly foreign to it, although I admit I've done the occasional POM that allowed me to build for a specific deployment target.

Regardless, you can customize a Maven build by setting command-line definitions such as profile specifications and Jenkins has a place to provide such options.

In the case of testing, you may also be able to control the process by selecting specific Maven goals. Once again, they will be passed to the Maven "command line" by Jenkins.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic