run tests for pipeline step plugin

29 views
Skip to first unread message

Victor Watkins

unread,
Feb 1, 2017, 6:19:40 PM2/1/17
to Jenkins Developers
Hello! 

We're trying to write some plugins to expose pipeline steps and our tests are
failing because it cannot find a directory like /home/watkinsv/src/hello-
workflow/build/jenkins-for-test/WEB-INF/plugins during test execution. 

The tests are modeled after https://github.com/jenkinsci/workflow-basic-steps-plugin/blob/master/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java
and are nearly an exact duplication. The differences are the step's method

name and that it injects a prefix to the given text to echo.

Are there any setup secrets we're missing?

Thanks and best wishes,
Victor Watkins and Gabriela Navarro

Jesse Glick

unread,
Feb 1, 2017, 6:26:59 PM2/1/17
to Jenkins Dev
On Wed, Feb 1, 2017 at 6:19 PM, Victor Watkins <vwatk...@gmail.com> wrote:
> our tests
> are
> failing because it cannot find a directory like /home/watkinsv/src/hello-
> workflow/build/jenkins-for-test/WEB-INF/plugins during test execution.

Odd. Not to insult your intelligence or anything, but did you try

mvn clean test
^^^^^

? Or just running on a different, clean machine?

Victor Watkins

unread,
Feb 2, 2017, 1:13:16 PM2/2/17
to jenkin...@googlegroups.com
No problem! I'm nowhere near insult, being a Ruby convert new to Java. Take nothing for granted; I could be missing anything.

This project is using Gradle but I don't expect that to matter. We tried on a couple different workstations and I explicitly tried gradle clean test this morning. Same thing.

Am I missing some test dependency maybe?

dependencies {
    jenkinsPlugins 'org.jenkins-ci.plugins.workflow:workflow-api:2.8@jar'
    testCompile 'org.jenkins-ci.plugins.workflow:workflow-job:2.1@jar'
    testCompile 'org.jenkins-ci.plugins.workflow:workflow-cps:1.15@jar'
    jenkinsPlugins 'org.jenkins-ci.plugins.workflow:workflow-step-api:2.7@jar'
}


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/wEjBq8tUe4A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2mQBQx30C6EVnu%3D-Br5-gGRBKZ5j2%2BevVexGS%3DmNU0jA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Jesse Glick

unread,
Feb 2, 2017, 1:35:08 PM2/2/17
to Jenkins Dev
On Thu, Feb 2, 2017 at 1:13 PM, Victor Watkins <vwatk...@gmail.com> wrote:
> This project is using Gradle

Ah, sorry, cannot help you then.

Slide

unread,
Feb 2, 2017, 2:33:36 PM2/2/17
to Jenkins Dev
You may want to look at a plugin that is currently using gradle like [1] to see if there is anything you can glean from there

slide


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr32DVeGjZ8HUTbTNC6Rfmj%2BCLJk%2BfZV5wOD03-%2BFHPsDA%40mail.gmail.com.

Victor Watkins

unread,
Feb 2, 2017, 5:24:56 PM2/2/17
to jenkin...@googlegroups.com
Squared away now.

On Thu, Feb 2, 2017 at 12:33 PM, Slide <slide...@gmail.com> wrote:
You may want to look at a plugin that is currently using gradle like [1] to see if there is anything you can glean from there

slide


On Thu, Feb 2, 2017 at 11:35 AM Jesse Glick <jgl...@cloudbees.com> wrote:
On Thu, Feb 2, 2017 at 1:13 PM, Victor Watkins <vwatk...@gmail.com> wrote:
> This project is using Gradle

Ah, sorry, cannot help you then.


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/wEjBq8tUe4A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages