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
b0d8f361
Commit
b0d8f361
authored
Feb 14, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20969 from justinsb/configurable_status_upload
Auto commit by PR queue bot
parents
f7de1b91
ba19c4e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
upload-finished.sh
hack/jenkins/upload-finished.sh
+9
-1
upload-started.sh
hack/jenkins/upload-started.sh
+9
-1
No files found.
hack/jenkins/upload-finished.sh
View file @
b0d8f361
...
...
@@ -29,9 +29,17 @@ if [[ $# -ne 1 ]]; then
exit
1
fi
# TODO: DRY. Refactor into upload-to-gcs.sh ?
:
${
JENKINS_GCS_LOGS_PATH
:
=
"gs://kubernetes-jenkins/logs"
}
:
${
JENKINS_UPLOAD_TO_GCS
:
=
"y"
}
if
[[
!
${
JENKINS_UPLOAD_TO_GCS
:-}
=
~ ^[yY]
$
]]
;
then
exit
0
fi
readonly
result
=
"
$1
"
readonly
timestamp
=
$(
date
+%s
)
readonly
location
=
"
gs://kubernetes-jenkins/logs
/
${
JOB_NAME
}
/
${
BUILD_NUMBER
}
/finished.json"
readonly
location
=
"
${
JENKINS_GCS_LOGS_PATH
}
/
${
JOB_NAME
}
/
${
BUILD_NUMBER
}
/finished.json"
echo
-n
'Run finished at '
;
date
-d
"@
${
timestamp
}
"
...
...
hack/jenkins/upload-started.sh
View file @
b0d8f361
...
...
@@ -24,9 +24,17 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
# TODO: DRY. Refactor into upload-to-gcs.sh ?
:
${
JENKINS_GCS_LOGS_PATH
:
=
"gs://kubernetes-jenkins/logs"
}
:
${
JENKINS_UPLOAD_TO_GCS
:
=
"y"
}
if
[[
!
${
JENKINS_UPLOAD_TO_GCS
:-}
=
~ ^[yY]
$
]]
;
then
exit
0
fi
version
=
""
readonly
timestamp
=
$(
date
+%s
)
readonly
location
=
"
gs://kubernetes-jenkins/logs
/
${
JOB_NAME
}
/
${
BUILD_NUMBER
}
/started.json"
readonly
location
=
"
${
JENKINS_GCS_LOGS_PATH
}
/
${
JOB_NAME
}
/
${
BUILD_NUMBER
}
/started.json"
echo
-n
'Run starting at '
;
date
-d
"@
${
timestamp
}
"
...
...
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