3

I use Gradle rather than Maven. How do I get our Jenkins continuous-integration server to not use Maven? I've told Jenkins about Gradle and Jenkins uses it to build the project. Jenkins then insists, however, on rebuilding the project using Maven even though I've removed everything from the project-configuration having to do with Maven.

Steve Emmerson
  • 7,702
  • 5
  • 33
  • 59

1 Answers1

5

It should work fine. Just please make sure that:

  1. Your Jenkins job is a 'free-style software project': job creation screen
  2. You have properly installed and configured Jenkins Gradle plugin.
  3. You have 'invoke Gradle script' as the build step: enter image description here
Artur Nowak
  • 5,254
  • 3
  • 22
  • 32
  • Images got garbled when inserted in the post -- please right click on them and 'open in new tab' or equivalent. This is first time I'm posting image on SO -- sorry for inconvenience. – Artur Nowak Jul 11 '12 at 20:10
  • When I created the project, I intended to use Maven -- so I created it as a maven2/3 project. Is there any way to redo that decision? – Steve Emmerson Jul 12 '12 at 16:47
  • I'm afraid it's not possible. Have a look at [this SO questions](http://stackoverflow.com/questions/7636312/is-it-possible-to-convert-a-jenkins-free-style-job-to-a-multi-configuration-job) and [this answer from Jenkins project lead](http://jenkins.361315.n4.nabble.com/changing-type-of-a-job-td372042.html). – Artur Nowak Jul 12 '12 at 19:26
  • Artur, I created a new, free-style project to work around the issue. Thanks. – Steve Emmerson Jul 13 '12 at 15:58