Closed byjg closed 6 years ago
The current master branch of example code depends on jervis-1.1-SNAPSHOT.jar. I could modify the VM to utilize it. Right now I manually copy the jar to the /var/lib/jenkins/.groovy/grape/*/jervis-1.0.jar
to "trick" the pipeline into using it. You can copy it there so the missing features become available. I plan to release so this will be less of an issue.
In general, Jervis is very much in flux at the moment. I just implemented full pipeline support and am working on enhancing it.
Your other alternative is to depend on the tags. Update the pipeline library in the global config to use the 1.0 tag. This is normal at the moment since master is considered unstable.
Switch the global shared library to use the 1.0 tag. 1.1 will be out soon providing tons of better pipeline support. Refer to the CHANGELOG.md for a preview of what's to come in 1.1.
Actually, you hit a bug I just fixed.
Fixes critical bug where users who do not define collecting any artifacts in YAML will cause their job to fail to build.
You can work around it with collecting something like an artifact. Or at the very least make it non-null.
Example:
jenkins:
collect: {}
Using 1.0 tag won't help. Will be fixed in 1.1.
I'll try to release 1.1 before Weds.
Next time I close this, it will be fixed.
Thank you for your quickly answer.
I implemented what you suggested as workaround. The Empty "collect" does not work at all for me, but I collected a real file:
jenkins:
pipeline_jenkinsfile: Jenkinsfile
collect:
artifacts: target/*.war
I'll wait for the version 1.1
1.1 is released. See release notes/changelog.
Great. I'll test it.
Em ter, 17 de abr de 2018 12:42, Sam Gleske notifications@github.com escreveu:
1.1 is released
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/samrocketman/jenkins-bootstrap-jervis/issues/21#issuecomment-382040053, or mute the thread https://github.com/notifications/unsubscribe-auth/AA77pMSyAixXaMbxvBHDwkGnF79C3x1Tks5tpg1SgaJpZM4TNatM .
I sucessfully installed the Jenkis Bootstrap on my local machine and already generate the image
jervis-docker-jvm
. I setup the build nodes to run as much as possible.I setup a public project (https://github.com/byjg/demojervis) with the follow .jervis.yml:
Apparently everything is working because the build download my master branch and build correctly the project.
But the last log lines are:
Questions:
Thank you.