Closed ORASTARK closed 4 years ago
We moved the following line out of checkoutAndInitLibrary:
https://github.com/SAP/cloud-s4-sdk-pipeline-lib/blob/master/vars/stageInitS4sdkPipeline.groovy#L17
Thus, I think you would also have to put this call also into the node('master')
block.
However, this change is already two month old.
If this does not help, could you please describe a little more what you setup it, e.g. by using the following template: https://github.com/SAP/cloud-s4-sdk-pipeline/issues/new?assignees=&labels=&template=pipeline-issue.md&title=
Issue was fixed by reverting to curl.
I used to overwrite following node with slave node label to for this stage running in slave node, but it will fail all the time and change back to master node. [Pre-condition]
[worked solution previously] Modification in stageInitS4sdkPipeline.groovy node('slave1') { deleteDir() checkoutAndInitLibrary(script: script, customDefaults: parameters.customDefaults) ...
[Current Error message] showing when running initS4sdkPipeline, it is changed back to master node. [Pipeline] echo 10:24:37 [artifactSetVersion] Sending telemetry data is disabled. [Pipeline] node 10:24:38 Running on Jenkins in /var/jenkins_home/workspace/PipelineJava_master [Pipeline] { [Pipeline] } [Pipeline] // node [Pipeline] echo 10:24:38 --- Begin library step of: mavenExecute --- [Pipeline] echo 10:24:38 Unstash content: piper-bin [Pipeline] unstash [Pipeline] echo 10:24:38 Unstash failed: piper-bin (No such saved stash ‘piper-bin’) [Pipeline] httpRequest 10:24:38 HttpMethod: GET 10:24:38 URL: https://github.com/SAP/jenkins-library/releases/download/v1.39.0/piper 10:24:38 Sending request to url: https://github.com/SAP/jenkins-library/releases/download/v1.39.0/piper 10:24:38 Treating UnknownHostException(github.com: Name or service not known) as 404 Not Found