Xiang Dai
36065c6dd7
delete all duplicate empty blanks
...
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-23 10:28:04 +08:00
Roy Lenferink
6df3deb4bc
Bash script syntax improvements
2019-01-19 13:58:58 +01:00
Matthias Bertschy
9b15af19b2
Update all script to use /usr/bin/env bash in shebang
2018-04-19 13:20:13 +02:00
Erick Fejta
32e2f22019
Require BOOTSTRAP_MIGRATION, JENKINS_BUILD_STARTED or JENKINS_BUILD_FINISHED
2016-11-16 17:20:04 -08:00
Erick Fejta
3c22444b47
Set version and job version in started.json/metadata.json
2016-11-11 08:43:26 -08:00
David McMahon
c5a61a6f99
Increase job cache limit to 300 and leave a TODO.
2016-10-13 12:09:06 -07:00
Ryan Hitchman
9b7f347e93
Make upload-to-gcs.sh use a different prefix for tests in other repos.
...
For kubernetes/test-infra#476 .
Also, put the repo in the build metadata so Gubernator can link to the
right thing for postsubmit jobs.
For PR #$NUM in a given repo, the logs will go to these places:
kubernetes/kubernetes => /pr-logs/pull/$NUM
kubernetes/test-infra => /pr-logs/pull/test-infra/$NUM
google/cadvisor => /pr-logs/pull/google_cadvisor/$NUM
Tested with a manual harness. Note that this leaves the latest/indirect
untouched as well as postsubmit jobs-- *job names* are still unique, the
main issue was that PR numbers might collide. Disturbing as little
structure as possible reduces how many things will break.
2016-09-26 12:42:49 -07:00
Ryan Hitchman
90f9c83d98
Make upload-to-gcs.sh include BUILD_METADATA_* env vars in started.json.
...
This is initially intended for storing GCI image versions.
Example output:
$ TEST_STARTED_JSON=1 BUILD_METADATA_GCE_IMAGE=m53 \
BUILD_METADATA_VARIANT=reliableforreal BUILD_NUMBER=123 \
WORKSPACE="blaga" JOB_NAME="test-e2e" hack/jenkins/upload-to-gcs.sh
{
"version": "v1.5.0-alpha.0.806+fa943089125df4-dirty",
"timestamp": 1473894301,
"metadata": {
"gce_image": "m53",
"variant": "reliableforreal"
},
"jenkins-node": ""
}
2016-09-14 16:41:03 -07:00
David McMahon
55bfc885db
Fix the creation of the jobResultsCache.json file.
2016-08-25 17:27:05 -07:00
David McMahon
399b114c04
Construct a valid json file for the job cache.
2016-08-16 15:56:46 -07:00
David McMahon
c99a18e31c
Get version from started.json.
2016-08-10 13:12:25 -07:00
David McMahon
2a06a8f416
Figure out where kubernetes is in the various scopes this is called from.
2016-08-09 17:22:34 -07:00
Kubernetes Submit Queue
cdee52e5e7
Merge pull request #26790 from rmmh/bash-range
...
Automatic merge from submit-queue
Use bash ranges "{1..3}" instead of "$(seq 1 3)".
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel )]()
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/26790 )
<!-- Reviewable:end -->
2016-08-09 15:18:30 -07:00
Ryan Hitchman
5508e49ef5
Use bash ranges "{1..3}" instead of "$(seq 1 3)".
2016-08-08 16:23:39 -07:00
David McMahon
8697254350
Add update_job_result_cache() to uploader for storing last 200 results in a single file.
2016-08-04 18:33:28 -07:00
Daniel Smith
e91c5d048b
run e2e with flake detection
2016-07-15 23:58:29 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Joe Finney
771cdccbd3
Upload build-log.txt if it exists.
2016-06-03 14:26:27 -07:00
Joe Finney
52f758e38a
Add NODE_NAME to started.json.
2016-05-16 16:21:45 -07:00
Matt Liggett
42b8fa8ca6
Stop using storage.cloud.google.com in test logs.
2016-04-06 12:59:53 -07:00
Jeff Grafton
f83a6f1665
Refactor upload-started.sh and upload-finished.sh into upload-to-gcs.sh.
2016-03-31 13:45:23 -07:00
Jeff Grafton
03ec0e12d2
Clean up upload-to-gcs.sh to remove unnecessary cruft
2016-02-12 11:58:37 -08:00
Jeff Grafton
3cec673a4b
Use PR# rather than git sha1 for PR log path
2016-01-26 11:11:54 -08:00
Jeff Grafton
7151b54a20
Pull variable definitions out of loop so retries work
2015-12-03 18:28:14 -08:00
Jeff Grafton
10bcd3ef36
Don't fail if the console log doesn't exist.
2015-11-03 18:03:59 -08:00
Jeff Grafton
6bd450ba05
Update comment on how to use script
2015-11-03 18:01:24 -08:00
Jeff Grafton
f03b3c9171
Print out URL of where to find uploaded logs and artifacts.
2015-11-03 18:01:24 -08:00
Jeff Grafton
623cbb5bd6
Only try to upload artifacts if they really exist.
2015-10-30 14:51:35 -07:00
Jeff Grafton
35db467216
Remove extraneous newline
2015-10-15 12:49:57 -07:00
Jeff Grafton
23fb8a8b76
Add script to upload test artifacts and log to GCS using gsutil
...
This new script is designed to be source'd by Jenkins jobs. It'll
automatically upload all test artifacts and the console log to GCS on
exit.
2015-10-15 11:32:11 -07:00