Merge pull request #25043 from spxtr/node-name

Automatic merge from submit-queue

Add NODE_NAME to started.json.

Sometimes a single Jenkins node gets borked. Lets upload what node we're on before running tests. See [this list of env vars that Jenkins sets for us.](https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables) I think this info should be added to gubernator.
This commit is contained in:
k8s-merge-robot 2016-05-16 18:58:03 -07:00
commit 445deb21e6

View File

@ -85,7 +85,8 @@ function upload_version() {
gsutil -q -h "Content-Type:application/json" cp -a "${gcs_acl}" <(
echo "{"
echo " \"version\": \"${version}\","
echo " \"timestamp\": ${timestamp}"
echo " \"timestamp\": ${timestamp},"
echo " \"jenkins-node\": \"${NODE_NAME:-}\""
echo "}"
) "${json_file}" || continue
break