sheehan / job-dsl-rest-example

An example Job DSL project that shows how to make Job DSL updates via the Jenkins REST API.
Apache License 2.0
15 stars 11 forks source link

example gradlew rest doesn't work #1

Closed aris-vlasakakis-ck closed 6 years ago

aris-vlasakakis-ck commented 6 years ago

running against a local installation with username and password, the gradle tasks completes with no errors, and it doesn't work.

This is to create the seed job from your job-dsl-gradle-examples repository

Example:

$ ./gradlew rest -Dpattern="jobs/seed.groovy" -DbaseUrl="http://127.0.0.1:8080" -Dusername=admin -Dpassword=admin
:compileJava NO-SOURCE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:rest

BUILD SUCCESSFUL

Total time: 1.552 secs

...and nothing happened in the Jenkins installation as well!

sheehan commented 6 years ago

Hi @aris-vlasakakis-ck. It should be -Dpattern="src/jobs/seed.groovy"