[JIRA] (JENKINS-37536) Null pointer exception when passing credentials stored in folder

111 views
Skip to first unread message

pskumar448@gmail.com (JIRA)

unread,
Aug 18, 2016, 10:39:02 PM8/18/16
to jenkinsc...@googlegroups.com
Suresh Kumar created an issue
 
Jenkins / Task JENKINS-37536
Null pointer exception when passing credentials stored in folder
Issue Type: Task Task
Assignee: Suresh Kumar
Components: nexus-artifact-uploader-plugin
Created: 2016/Aug/19 2:38 AM
Priority: Major Major
Reporter: Suresh Kumar

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

Reported by Jirong Hu

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 18, 2016, 10:56:01 PM8/18/16
to jenkinsc...@googlegroups.com
Suresh Kumar closed an issue as Fixed
 

Fixed.

Change By: Suresh Kumar
Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages