Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to push CI artifacts to gs://kubernetes-release/ci #3238

Merged
merged 1 commit into from
Jan 7, 2015

Conversation

zmerlynn
Copy link
Member

@zmerlynn zmerlynn commented Jan 6, 2015

This pushes artifacts in a similar manner to the official release,
except that instead of release/vFOO, it goes to ci/$(git describe),
e.g.: gs://kubernetes-release/ci/v0.7.0-315-gcae5722

It also pushes a text file to gs://kubernetes-release/ci/latest.txt,
so anyone can do, for instance:

gsutil ls gs://kubernetes-release/ci/$(gsutil cat gs://kubernetes-release/ci/latest.txt)

(In a parallel change, I'm going to flip the jenkins scripts over to
use git describe, since it's shorter and a little more descriptive)

…s-release/ci

This pushes artifacts in a similar manner to the official release,
except that instead of release/vFOO, it goes to ci/$(git describe),
e.g.: gs://kubernetes-release/ci/v0.7.0-315-gcae5722

It also pushes a text file to gs://kubernetes-release/ci/latest.txt,
so anyone can do, for instance:

gsutil ls gs://kubernetes-release/ci/$(gsutil cat gs://kubernetes-release/ci/latest.txt)

(In a parallel change, I'm going to flip the jenkins scripts over to
use git describe, since it's shorter and a little more descriptive)
@zmerlynn
Copy link
Member Author

zmerlynn commented Jan 7, 2015

@jbeda: Ping? About to have an internal GKE commit that relies on this, too.

@@ -851,3 +852,20 @@ function kube::release::gcs::copy_release_artifacts() {

gsutil ls -lhr "${gcs_destination}"
}

function kube::release::gcs::publish_latest() {
local latest_file_dst="gs://${KUBE_GCS_RELEASE_BUCKET}/${KUBE_GCS_LATEST_FILE}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to put this under `gs://${KUBE_GCS_RELEASE_BUCKET}/${KUBE_GCS_RELEASE_PREFIX}. That is the "series" of release and the real root of the release tree.

Actually, we probably need a new variable that is "release root" vs. "release version". Assuming that the bucket is the root means we can't have multiple "series" of releases in the same bucket.

Ah -- I see you encode the release root into ${KUBE_GCS_LATEST_FILE}. Ignore me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignored!

@jbeda
Copy link
Contributor

jbeda commented Jan 7, 2015

LGTM -- feel free to tweak based on my (half assed) comments and self merge when you are ready.

@zmerlynn
Copy link
Member Author

zmerlynn commented Jan 7, 2015

Self-merging after verbal LGTM from @jbeda.

zmerlynn added a commit that referenced this pull request Jan 7, 2015
Add script to push CI artifacts to gs://kubernetes-release/ci
@zmerlynn zmerlynn merged commit fd9d2df into kubernetes:master Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants