Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a953eb42
Commit
a953eb42
authored
Aug 25, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Aug 25, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #30551 from david-mcmahon/job-cache
Automatic merge from submit-queue Construct a valid json file for the job cache.
parents
f090fd15
399b114c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
upload-to-gcs.sh
hack/jenkins/upload-to-gcs.sh
+10
-1
No files found.
hack/jenkins/upload-to-gcs.sh
View file @
a953eb42
...
...
@@ -151,15 +151,24 @@ function update_job_result_cache() {
mkdir
-p
${
tmp_results
%/*
}
# Construct a valid json file
echo
"["
>
${
tmp_results
}
for
upload_attempt
in
$(
seq
3
)
;
do
echo
"Copying
${
job_results
}
to
${
tmp_results
}
(attempt
${
upload_attempt
}
)"
gsutil
-q
cp
${
job_results
}
${
tmp_results
}
2>&-
||
continue
gsutil
-q
cat
${
job_results
}
2>&- |
\
sed
-n
's/^\({"version".*}\),*/\1,/p'
>>
${
tmp_results
}
||
continue
break
done
echo
"{
\"
version
\"
:
\"
${
version
}
\"
,
\"
buildnumber
\"
:
\"
${
BUILD_NUMBER
}
\"
,"
\
"
\"
result
\"
:
\"
${
build_result
}
\"
}"
>>
${
tmp_results
}
# JSON doesn't like terminating elements to contain a "," separator, so
# terminate the elements with an empty one.
echo
-e
"{}
\n
]"
>>
${
tmp_results
}
for
upload_attempt
in
$(
seq
3
)
;
do
echo
"Copying
${
tmp_results
}
to
${
job_results
}
(attempt
${
upload_attempt
}
)"
gsutil
-q
-h
"Content-Type:application/json"
cp
-a
"
${
gcs_acl
}
"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment