-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins 636
Integrity Plugin 1.36
generating a checkout command with the snippet generator with disabled "include in polling" and "include in changelog" options, leads to this:
checkout changelog: false, poll: false, scm: [$class: 'IntegritySCM', checkpointBeforeBuild: false, cleanCopy: true, configPath: '#myproject', configurationName: '56a316f1-7b69-4fc0-abad-dfee5a928552', deleteNonMembers: false, fetchChangedWorkspaceFiles: false, restoreTimestamp: false, serverConfig: '8b451f48-dd2e-4630-a4d4-bf19fb51f117', skipAuthorInfo: false]
This will lead to a null pointer exception
java.lang.NullPointerException at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:788) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) 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)
If I change the command to
checkout ([$class: 'IntegritySCM', changelog: false, poll: false, checkpointBeforeBuild: false, cleanCopy: true, configPath: '#myproject', configurationName: '56a316f1-7b69-4fc0-abad-dfee5a928552', deleteNonMembers: false, fetchChangedWorkspaceFiles: false, restoreTimestamp: false, serverConfig: '8b451f48-dd2e-4630-a4d4-bf19fb51f117', skipAuthorInfo: false])
it is executed, but the options seem to be ignored.