File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,7 @@ node {
52
52
! wget --timeout=5 -qO past-jobs.json "$JOB_URL/lastSuccessfulBuild/artifact/past-jobs.json" \\
53
53
|| ! jq ' empty ' past-jobs.json \\
54
54
; then
55
- # temporary migration of old data
56
- if ! wget -- timeout = 5 - qO past - jobs .json "$JOB_URL / lastSuccessfulBuild / artifact / pastFailedJobs .json " || ! jq ' empty' past - jobs .json ; then
57
- echo ' {}' > past - jobs .json
58
- fi
55
+ echo ' {}' > past - jobs .json
59
56
fi
60
57
jq - c - L .scripts -- slurpfile pastJobs past - jobs .json '
61
58
include "jenkins";
@@ -210,8 +207,10 @@ node {
210
207
set - Eeuo pipefail - x
211
208
212
209
jq << < "$currentJobsJson " '
210
+ # save firstTime if it is not set yet
211
+ map_values (.firstTime // = .lastTime)
213
212
# merge the two objects recursively , preferring data from "buildCompletionDataJson "
214
- . * ( env .buildCompletionDataJson | fromjson )
213
+ | . * ( env .buildCompletionDataJson | fromjson )
215
214
' | tee past-jobs.json
216
215
' ' '
217
216
archiveArtifacts(
You can’t perform that action at this time.
0 commit comments