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

When variable DOCKERIZED was set to 'false' then 'docker' section was executed #2887

Merged
merged 1 commit into from
Jan 29, 2024
Merged

When variable DOCKERIZED was set to 'false' then 'docker' section was executed #2887

merged 1 commit into from
Jan 29, 2024

Conversation

damianszczepanik
Copy link
Member

@damianszczepanik damianszczepanik commented Jan 29, 2024

Testing done

local-test.sh script works fine when DOCKERIZED variable was undefined or set to true but not when set to false

Submitter checklist

Preview Give feedback

@damianszczepanik damianszczepanik requested a review from a team as a code owner January 29, 2024 21:09
@jglick jglick added the chore Reduces future maintenance label Jan 29, 2024
Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

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

Thanks!

@MarkEWaite MarkEWaite merged commit ee50978 into jenkinsci:master Jan 29, 2024
5 checks passed
@@ -20,7 +22,7 @@ else
EXTRA_MAVEN_PROPERTIES=
fi

if [[ -n ${DOCKERIZED-} ]]; then
if [[ "${DOCKERIZED-}" == "true" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

No need for quotes around the left-hand side in bash:

Suggested change
if [[ "${DOCKERIZED-}" == "true" ]]; then
if [[ ${DOCKERIZED-} == "true" ]]; then

@damianszczepanik damianszczepanik deleted the feature/script-undefined-variable branch January 30, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Reduces future maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants