Skip to content

Commit

Permalink
Jenkinsfile: add description for the GCP uploaded image
Browse files Browse the repository at this point in the history
For public images GCP would like for the description of the image to be
in the format: `DISTRO, DISTRO RELEASE, VERSION, INFO` so that information
can get pulled into web UIs and documentation. Let's start with something
like:

```
Fedora CoreOS, Fedora CoreOS stable, 31.20200310.3.0, x86_64 published on 2020-03-25
```
  • Loading branch information
dustymabe committed Apr 8, 2020
1 parent 3b13f26 commit 54a894b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,15 @@ lock(resource: "build-${params.STREAM}") {
utils.shwrap("""
# pick up the project to use from the config
gcp_project=\$(jq -r .project_id \${GCP_IMAGE_UPLOAD_CONFIG})
today=\$(date +%Y-%m-%d)
cosa buildextend-gcp \
--build=${newBuildID} \
--upload \
--family fedora-coreos-${params.STREAM} \
--project=\${gcp_project} \
--bucket gs://${gcp_gs_bucket}/image-import \
--json \${GCP_IMAGE_UPLOAD_CONFIG}
--json \${GCP_IMAGE_UPLOAD_CONFIG} \
--description=\"Fedora CoreOS, Fedora CoreOS ${params.STREAM}, ${newBuildID}, ${basearch} published on \$today\"
""")
}
}
Expand Down

0 comments on commit 54a894b

Please sign in to comment.