blueocean nexus artifact uploader pipeline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
nav
Reply | Threaded
Open this post in threaded view
|

blueocean nexus artifact uploader pipeline

nav
Hi, 

Has anyone been able to successfully deploy the artifact to Nexus from Jenkins using blueocean pipeline? 

I have tried the following pipeline getting failure, but in my log file for stage Deploy to Nexus does not show any errors. 


    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

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d2d1dea8-b7a7-4140-944d-d18d1cd8f182%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.