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

Use a var for the images file path in the RHTAP gather-deploy-images task #1240

Merged

Conversation

simonbaird
Copy link
Contributor

Short explanation: Clean up the code a little by using a variable.

Long explanation: This task gets converted to a bash script and wrapped by a Jenkins shared library in the brand new RHTAP Jenkins pipeline sample templates. When testing the RHTAP Jenkins pipeline I found the default Jenkins user could not write to /tmp/, so I wanted to change the location of the file. This refactor makes that just a single line change, rather than having to change the path in three places.

See also
redhat-appstudio/tssc-sample-jenkins#1 where this PR was suggested by @mmorhun, and also
redhat-appstudio/tssc-dev-multi-ci#2 where the cosign, Enterprise Contract, and promote pipeline support was being added to the RHTAP Jenkins templates.

Short explanation: Clean up the code a little by using a variable.

Long explanation: This task gets converted to a bash script and
wrapped by a Jenkins shared library in the brand new RHTAP Jenkins
pipeline sample templates. When testing the RHTAP Jenkins pipeline I
found the default Jenkins user could not write to /tmp/, so I wanted
to change the location of the file. This refactor makes that just a
single line change, rather than having to change the path in three
places.

See also
redhat-appstudio/tssc-sample-jenkins#1
where this PR was suggested by @mmorhun, and also
redhat-appstudio/tssc-dev-multi-ci#2 where the cosign,
Enterprise Contract, and promote pipeline support was being added to
the RHTAP Jenkins templates.
Copy link
Contributor

@lcarva lcarva left a comment

Choose a reason for hiding this comment

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

/lgtm

@lcarva lcarva added this pull request to the merge queue Aug 5, 2024
Merged via the queue into konflux-ci:main with commit 589299a Aug 5, 2024
9 checks passed
simonbaird added a commit to simonbaird/tssc-dev-multi-ci that referenced this pull request Aug 5, 2024
- Do some handling of the Rekor options
- Pull in the public key from the environment var created from the
  credential as it is done in the build pipeline.
- Fix some bash typos and syntax errors
- Use a different location for the /tmp/all-images.txt since my
  Jenkins user was not permitted to write to /tmp.
- Add a way to provide your own list of images to verify to help
  debug the ec verification.
- Use github url for configuration instead of a named ECP cluster
  record

See also konflux-ci/build-definitions#1240
which back-ports one of the changes introduced here to the
original source of the gather-deploy-images task.

Ref: https://issues.redhat.com/browse/EC-745
simonbaird added a commit to simonbaird/tssc-dev-multi-ci that referenced this pull request Aug 5, 2024
- Do some handling of the Rekor options
- Pull in the public key from the environment var created from the
  credential as it is done in the build pipeline.
- Fix some bash typos and syntax errors
- Use a different location for the /tmp/all-images.txt since my
  Jenkins user was not permitted to write to /tmp.
- Add a way to provide your own list of images to verify to help
  debug the ec verification.
- Use github url for configuration instead of a named ECP cluster
  record

See also konflux-ci/build-definitions#1240
which back-ports one of the changes introduced here to the
original source of the gather-deploy-images task.

Ref: https://issues.redhat.com/browse/EC-745
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