stage('Deploy to Nexus') {
steps {
nexusArtifactUploader(artifactId: 'my.war',
credentialsId: 'f3105m60-c38c-4cfd-b68f-3f6ecb5e7d60',
file: '/var/lib/jenkins/workspace/gws/rewards-build/target/my.war',
groupId: 'nexus',
nexusUrl: 'myserver:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'jenkins',
type: 'war',
version: '1.1')
}
}
Checking status of SonarQube task 'AV9U8M0rYD1UpHX38FNZ' on server 'Sonar6.5' SonarQube task 'AV9U8M0rYD1UpHX38FNZ' status is 'PENDING' [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy to Nexus) [Pipeline] nexusArtifactUploader [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy to Dev) Stage 'Deploy to Dev' skipped due to earlier failure(s)
Here are the Failure
[Bitbucket] Notifying commit build result [Bitbucket] Build result notified java.lang.NullPointerException at sp.sd.nexusartifactuploader.steps.NexusArtifactUploaderStep$Execution.run(NexusArtifactUploaderStep.java:238) at sp.sd.nexusartifactuploader.steps.NexusArtifactUploaderStep$Execution.run(NexusArtifactUploaderStep.java:217) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) at hudson.security.ACL.impersonate(ACL.java:260) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Finished: FAILURE
Any help in sovling this issuw would be greately appriciated.
Regards