diff options
Diffstat (limited to 'jenkins-helpers.sh')
-rw-r--r-- | jenkins-helpers.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh index b4b1b112..10b7081a 100644 --- a/jenkins-helpers.sh +++ b/jenkins-helpers.sh @@ -35,8 +35,8 @@ fresh_dir () break fi # This assert will trigger if one of keep_patterns doesn't start - # with "$dir". - assert [ "$keep_pattern" != "." ] + # with "$dir": eventually dirname will get to either "/" or ".". + assert [ "$keep_pattern" != "/" -a "$keep_pattern" != "." ] done done @@ -1040,6 +1040,11 @@ run_step_init () run_step_use_baseline=false fi + # We need absolute paths for $run_step_artifacts, which is constructed from + # $run_step_top_artifacts. + mkdir -p "$run_step_top_artifacts" + run_step_top_artifacts=$(cd "$run_step_top_artifacts"; pwd) + rm -f $run_step_top_artifacts/console.log rm -f $run_step_top_artifacts/results } |