Skip to content

Support environment variables in Jenkins #140

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

Closed
wants to merge 2 commits into from

Conversation

tnevrlka
Copy link
Member

Follow-up to #137 which should be merged first (using a cherry-picked commit from it)

Currently, every environment variable is treated as a credential and
thus masked in the logs.
Some of the environment variables should be visible in the logs.
Update the hack/jenkins-set-secrets (and rename it to hack/jenkins-set-variables) to set both unmasked variables and secrets.
Change the templates so they use global variables in Jenkins when secrets are not needed

@tnevrlka tnevrlka force-pushed the jenkins-env-vars branch 3 times, most recently from 78e484f to da05a5a Compare February 27, 2025 13:58
@tnevrlka
Copy link
Member Author

generated-file-freshness check is failing due to changes introduced in 540a406 which affect GitHub Actions and result in changes in files in the generated/ directory.

The affected files are re-generated in #137 and not included in this pull request since they are not relevant to Jenkins. Once #137 is merged and this PR is rebased, the check should start to pass

@tnevrlka tnevrlka force-pushed the jenkins-env-vars branch 2 times, most recently from 68e07a4 to 73a59e5 Compare March 5, 2025 11:38
@tnevrlka tnevrlka marked this pull request as ready for review March 31, 2025 22:49
tnevrlka added 2 commits April 1, 2025 15:06
All variables are being created as credentials in Jenkins.
Credentials get masked in Jenkins logs which is unwanted for non-secret
variables that should be exposed to users via EYECATCHER.

Add a script for creating a Jenkins global variable and use it in the
existing hack script for setup

Signed-off-by: Tomáš Nevrlka <[email protected]>
Currently, every environment variable is treated as a credential and
thus masked in the logs.
Some of the environment variables should be visible in the logs.
Change the templates so they use global variables in Jenkins for them.

Signed-off-by: Tomáš Nevrlka <[email protected]>
@tnevrlka tnevrlka closed this May 20, 2025
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