[JIRA] (JENKINS-37554) NullPointerException in Nexus Artifact Uploader 2.3

15 views
Skip to first unread message

jirong.hu@gmail.com (JIRA)

unread,
Aug 19, 2016, 9:50:01 AM8/19/16
to jenkinsc...@googlegroups.com
Jirong Hu created an issue
 
Jenkins / Bug JENKINS-37554
NullPointerException in Nexus Artifact Uploader 2.3
Issue Type: Bug Bug
Assignee: Suresh Kumar
Components: nexus-artifact-uploader-plugin
Created: 2016/Aug/19 1:49 PM
Environment: Jenkins 2.7.1, with https://wiki.jenkins-ci.org/display/JENKINS/Nexus+Artifact+Uploader, v2.3, on Windows 2012.
Priority: Blocker Blocker
Reporter: Jirong Hu

When we use this plugin in the pipeline, we got a NullPointerException, we want to use credentials (created in the same folder as the pipeline project so other people can't use), as shown below. We are using Jenkins 2.7.1.

stage 'Promote'

nexusArtifactUploader artifactId: a, credentialsId: '03061789-shortened-1ed6f456', file: a + '.zip', groupId: g, nexusPassword: '', nexusUrl: 'invnexus.mycompany.com/nexus', nexusUser: '', packaging: 'zip', protocol: 'http', repository: 'otpp-releases', version: new_version

D:\public\workspace\Release\Promote@2>Powershell -Command "Add-Type -Assembly System.IO.Compression.FileSystem; System.IO.Compression.ZipFile::CreateFromDirectory(\"stage\", \"pmer.zip\", System.IO.Compression.CompressionLevel::Optimal, $false)" Pipeline nexusArtifactUploader
Pipeline }
Pipeline // ws
Pipeline }
Pipeline // node
Pipeline End of Pipeline
java.lang.NullPointerException
at sp.sd.nexusartifactuploader.steps.NexusArtifactUploaderStep.getUsername(NexusArtifactUploaderStep.java:153)
at sp.sd.nexusartifactuploader.steps.NexusArtifactUploaderStep$Execution.run(NexusArtifactUploaderStep.java:276)
at sp.sd.nexusartifactuploader.steps.NexusArtifactUploaderStep$Execution.run(NexusArtifactUploaderStep.java:250)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
at hudson.security.ACL.impersonate(ACL.java:213)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

pskumar448@gmail.com (JIRA)

unread,
Aug 19, 2016, 10:22:02 AM8/19/16
to jenkinsc...@googlegroups.com
Suresh Kumar commented on Bug JENKINS-37554
 
Re: NullPointerException in Nexus Artifact Uploader 2.3

Jirong Hu
This issue has been fixed and checked in below is the commit id for the fix
https://github.com/jenkinsci/nexus-artifact-uploader-plugin/commit/f3632183e3cb7a4a5337cd5c7856a995ac810029

Planning to release tomorrow after having one more round test.

pskumar448@gmail.com (JIRA)

unread,
Aug 19, 2016, 10:24:01 AM8/19/16
to jenkinsc...@googlegroups.com
Suresh Kumar closed an issue as Fixed
 
Change By: Suresh Kumar
Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages