-
Notifications
You must be signed in to change notification settings - Fork 16
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
cannot build job-dsl-plugin #44
Comments
Decided to try this tool out today, and ran into the same issue with the docker build.
Managed to get the build to happen by...
NOTE: I have not yet been able to test functionality, just that the Docker build actually returned successful. Ran docker build with --no-cache
|
While I did manage to get the docker build to work, it didn't appear to give me a usable DSL file as output. Not sure if I'm using it wrong, or what at this point. When I tried running Seed Job ... it fails a the line starting with Out of time to troubleshoot on this for now. Maybe revisit later if time presents itself.
|
Hi @jyanko. First off, thanks again for looking at jenkins-xml-to-jobdsl. Outputting invalid groovy is known and expected behavior when encountering a node type that is unknown to jenkins-xml-to-jobdsl. To fix this, you would need to figure out how to describe hudson.plugins.jira.JiraProjectProperty with groovy and then add code to handle this property. |
you likely need to handle this property type in this switch case: https://github.com/visualphoenix/jenkins-xml-to-jobdsl/blob/develop/jenkins-xml-to-jobdsl.rb#L360 |
Thanks @visualphoenix - been a long while since since I've visited this project, and recently had a reason to check it out again. Assuming the initial docker build failure is related to the fact that Ubuntu latest has changed since back in 2016 (and likely other dependencies). From your comment above, the "invalid groovy"...
...in this case effectively a block that the tool currently does not know how to handle. Is the syntax of My options appear to be...
|
Getting a build failure when building :FAILURE: Build failed with an exception.
Where:
Build file '/jdsl/job-dsl-plugin/build.gradle' line: 83
What went wrong:
A problem occurred evaluating project ':job-dsl-plugin'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 53s
The text was updated successfully, but these errors were encountered: