-
Notifications
You must be signed in to change notification settings - Fork 189
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
rtMaven.run fails with NPE, in jenkins. Using amazoncorretto image to run a project #898
Comments
@yahavi Could you please help me here? |
Hey @rahulks993, |
@rahulks993 If there are Gradle jobs in your Jenkins instance utilizing Gradle versions below 6.8.1, you have the option to upgrade to the latest v3 version, 3.18.12. Otherwise, consider upgrading to the latest major, 4.0.0. By the way, we've introduced a JFrog CLI-based JFrog plugin that can operate alongside the traditional Artifactory plugin. The JFrog CLI is among the favored tools in the community, and I suggest opting for it over the older Jenkins plugin. |
@yahavi I'll try upgrading to 3.18.4 or 3.18.12 and I'll confirm you back whether the issue which we are facing is resolved or not. If it doesn't then I'll consider upgrading to 4.0.0 . However we are not having gradle jobs in our jenkins instance we are still using maven. |
@yahavi Thanks for your recommendation, the issue is resolved now with 3.18.4. You may close this question now |
Hello,
Our Jenkins build is currently encountering failures on multiple projects, and we're uncertain about the root cause of the issue. Previously, we used OpenJDK images for the builds, but since transitioning to Amazon Corretto, we've been experiencing NullPointerException errors while running on an EC2 Jenkins node. I'd like to provide the versions of Jenkins, Artifactory, Java, and Maven in hopes that someone can assist me in resolving this problem.
Jenkins Artifactory Plugin version: 3.18.0
Jenkins version: Jenkins 2.387.1
Java: amazoncorretto-8
JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto
MAVEN_HOME=/usr/share/maven
Jenkins log:
It fails while running this piece of code:
server = Artifactory.server 'Artifactory Pro'
rtMaven = Artifactory.newMavenBuild()
rtMaven.deployer releaseRepo: 'libs-release-local', snapshotRepo: 'libs-snapshot-local', server: server
rtMaven.deployer.deployArtifacts = false
buildInfo = Artifactory.newBuildInfo()
rtMaven.run pom: 'pom.xml', goals: 'clean install -Dmaven.test.skip=true', buildInfo: buildInfo
The text was updated successfully, but these errors were encountered: