Timeline for Jenkinsfile script to waitUntil a folder is created
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 19, 2023 at 15:52 | comment | added | Peter Kahn | Beware of using java or groovy File exists method and prefer fileExists or shell. Pipeline steps figure out that they should work on the agent. The File methods may execute on controller where file is not. CPS can be a challenge | |
May 9, 2020 at 13:53 | comment | added | rodee |
I worked it around with waitUntil { def r = sh script: "[[ -d 'A/B' ]]", returnStatus: true return r == 0}
|
|
May 9, 2020 at 13:51 | comment | added | rodee |
Same, I changed timeout to 10, and pointed folder to a known existing dir, it keeps waiting for 10 mins and timesout.
|
|
May 8, 2020 at 16:06 | history | answered | jayhendren | CC BY-SA 4.0 |