We run tests against our job-dsl code using gradle before kicking off the dsl processing job. For dsl code referencing various plugins, we include the dependancies via build.gradle
when including build-monitor-plugin:
I get an error saying:
> Could not resolve org.jenkins-ci.plugins:build-monitor-plugin:1.11+build.201701152243.
> Could not parse POM http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/build-monitor-plugin/1.11+build.201701152243/build-monitor-plugin-1.11+build.201701152243.pom
> Could not find org.jenkins-ci.plugins:build-monitor:1.11+build.201701152243.
After a little digging, it appears the pom is not set-up per https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-pom.xml
I was able to add the pom & hpi to our local repository and successfully got the tests running by making the following changes:
This was set to <artifactId>build-monitor</artifactId> - which doesn't seem to exist.
With the required jenkins version in the correct place (the parent), a separate verison tag needs to be added:
A version for the hamcrest dependancy was needed for it to be correctly found