Started by user admin
Obtained Jenkinsfile from git https://<repo>
Running in Durability level: MAX_SURVIVABILITY
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 65: Expected a step @ line 65, column 17.
yarn command: 'install --cache-folder .yarn', workspaceSubdirectory 'ui'
^
WorkflowScript: 66: Expected a step @ line 66, column 17.
yarn command: 'lint --fix', workspaceSubdirectory 'ui'
^
WorkflowScript: 67: Expected a step @ line 67, column 17.
yarn command: 'jest --coverage', workspaceSubdirectory 'ui'
^
3 errors
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:571)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:523)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:337)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
There seemed to be some issue with the workspaceSubdirectory being recognised so changed it to
...
[Pipeline] End of Pipeline
java.lang.NullPointerException
at io.interrogate.npmyarnwrappersteps.plugin.NodeStep.setUpNVM(NodeStep.java:54)
at io.interrogate.npmyarnwrappersteps.plugin.YarnStep.perform(YarnStep.java:48)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE
Version report
Jenkins and plugins versions report:
Reproduction steps
Trying to run yarn commands from a declarative pipelines build, following the documentation at https://plugins.jenkins.io/npm-yarn-wrapper-steps/#documentation I originally I tried this step:
But got:
There seemed to be some issue with the
workspaceSubdirectory
being recognised so changed it toAnd now get a NullPointer:
Results
Expected result:
Yarn commands get run successfully,
Actual result:
Errors detailed above.