-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jenkins-spock when used with gradle #67
base: master
Are you sure you want to change the base?
Conversation
- TODO: - 2 out of 5 tests are failing - logdir_IS_UNDEFINED is being created, presumably because logback configuration is not kicking in
- transitive dependencies are grabbed by plugin - take out unnecessary org.jenkins-ci.plugins dependencies - take out @jar notation
allow getSharedLibraryVariables() to find .groovy scripts in classpath under "vars"
Not sure if your schedule has eased up or if you have had a chance to further pursue this pull request. |
While this works fine in the Gradle build (on CLI), when opening this in IntelliJ (v2020.3.2 CE) I failed to get it working (for a very long time):
It started working when I replaced the usage of Gradle plugin "org.jenkins-ci.jpi":
... AND the Jenkins plugin dependencies:
... with more or less something like this (mind the ugly/tedious transitive dependencies and "@jar" plugin file extension "hint"):
(Not sure if really all of them are needed though) Does that make sense!? (Because IntelliJ by default uses Gradle for test execution too, for some time being.) |
Hm, my problem looks very related to #89 |
@reinholdfuereder : I could never get the Gradle tests to work in IntelliJ, so I cheated and manually created jUnit tests |
- version bump for jenkins-spock to 2.1.5 - version bump for jenkins-core to 2.291 - version bump for workflow-cps-global-lib to 2.19
@corporate-gadfly Thanks for the work, works great for me. |
- version bump for jenkins-core to 2.316 - version bump for groovy-all to 2.5.15 - version bump for logback to 1.2.6 - version bump for workflow-cps to 2.94 - version bump for workflow-durable-task-step to 2.40
Hello, all. Some version bumps in latest commit. |
- version bump for jenkins to 2.329 - version bump for logback to 1.2.10 - version bump for slack to 2.49
Happy new year! Some more version bumps in latest commits. |
- version bump for jenkins-core to 2.335 - version bump for workflow-cps to 2.94.1 - version bump for ssh-agent to 1.24.1 - version bump for workflow-cps-global-lib to 2.21.1
- version bump for jenkins-core to 2.340 - version bump for groovy-all to 2.5.16 - version bump for logback to 1.2.11 - version bump for groovy-cps to 1.32
Happy two year anniversary (opened 2 years ago). |
- jenkins-core to 2.340 - groovy-all to 2.5.17 - workflow-cps to 2725.v7b_c717eb_12ce - workflow-basic-steps to 948.v2c72a_091b_b_68 - workflow-durable-task-step to 1146.v1a_d2e603f929 - ssh-agent to 295.v9ca_a_1c7cc3a_a_ - pipeline-stage-step to 293.v200037eefcd5 - workflow-cps-global-lib to 588.v576c103a_ff86 - slack to 608.v19e3b_44b_b_9ff
how can I run your branch in a project @corporate-gadfly? |
@pablogrs : Thanks for the kind words. Assuming you have a gradle project, you can find 3 gradle examples in my fork. Here's a link to one example. And here is a link to a specific test. |
I have encountered the this Exeaption that was mentioned in you branch. |
I created yet another fork for it |
That's a good find @pablogrs . |
Summary
This pull requests provides several examples for jenkins-spock when used from gradle.
Checklist
Testing
"N/A - no code changes"
Documentation
"N/A - no code changes"