-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Handle quotes in gradle arguments #128548
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
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/es-delivery (Team:Delivery) |
@@ -41,4 +41,4 @@ else | |||
fi | |||
|
|||
set -e | |||
$GRADLEW -S --max-workers=$MAX_WORKERS $@ | |||
$GRADLEW -S --max-workers=$MAX_WORKERS "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if additional testing (besides main pipeline) is required for this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me. Have you tested running the pipeline that caused this issue to verify it fixes your problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. have you manually triggered the pipeline that failed from the patch branch to verify the fix works here too?
@@ -41,4 +41,4 @@ else | |||
fi | |||
|
|||
set -e | |||
$GRADLEW -S --max-workers=$MAX_WORKERS $@ | |||
$GRADLEW -S --max-workers=$MAX_WORKERS "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. have you manually triggered the pipeline that failed from the patch branch to verify the fix works here too?
@@ -1,7 +1,7 @@ | |||
steps: | |||
- label: periodic-micro-benchmarks | |||
command: | | |||
.ci/scripts/run-gradle.sh -p benchmarks/ run --args 'org.elasticsearch.benchmark._nightly -rf json -rff build/result.json' | |||
.ci/scripts/run-gradle.sh :benchmarks:run --args 'org.elasticsearch.benchmark._nightly -rf json -rff build/result.json' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I've asked @brianseeders to have a look at this too as his bash foo is beyond mine and he authored that initially i think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that should be quoted. Thank you.
When executing
.ci/scripts/run-gradle.sh -p benchmarks/ run --args 'org.elasticsearch.benchmark._nightly -rf json -rff build/result.json'
I was getting following error:I believe this is happening due to quotes in the command. unlike
$@
,"$@"
should preserve quotes.