Started by user admin
[Pipeline] stage
[Pipeline] { (Run AppScan Source)
[Pipeline] node
Running on local_slave in d:\jenkins\workspace\Jenkins Pipeline Example - AppScan Source
[Pipeline] {
[Pipeline] step
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
ERROR: The AppScan Source build step requires to be launched on a node
Finished: FAILURE
Specifically with line 95:
Computer computer = Computer.currentComputer();
and line 99:
computer.getNode()
I think it is expected in a pipeline for currentComputer() to return null, and it always seems to. Instead, I think this value needs to be set via the @StepContextParameter annotation (see: https://jenkins.io/blog/2016/05/25/update-plugin-for-pipeline/).
The fix therefore should be to remove line 95 (or possibly only execute it when node is null), and add:
From a user:
Specifically with line 95:
Computer computer = Computer.currentComputer();
and line 99:computer.getNode()
I think it is expected in a pipeline forcurrentComputer()
to return null, and it always seems to. Instead, I think this value needs to be set via the @StepContextParameter annotation (see: https://jenkins.io/blog/2016/05/25/update-plugin-for-pipeline/).The fix therefore should be to remove line 95 (or possibly only execute it when node is null), and add:
as a class variable. A team member tried this, but did not see the plugin in Jenkins post-install. We did not have time to debug.