Repository navigation
Commit a4c0a8f
committed
test(ci): match the daemon restore step inside the wrapped post block
9f26f16 wrapped the Jenkinsfile post/always restore step in
script { try { sh ... } finally { cleanWs(...) } } so workspaces are
cleaned after every build. tests/test_jenkins_daemon_recovery.py, which
the pipeline runs as its first step, still expected sh to follow always {
directly. Its regex therefore found nothing, and every Jenkins build since
then failed before any other stage ran.
Allow wrapper content before the first sh step inside always { }. The
test still extracts and runs the real restore script against its mock CLI.1 parent 1224b2b commit a4c0a8f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments