-
Notifications
You must be signed in to change notification settings - Fork 148
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
[Ci] Fix DRA artifacts permissions #5175
Changes from all commits
f803d48
3ce6955
3b7bac1
5f6356a
24990dd
2e38e39
ee3e09b
f591e83
fa0e113
416485f
e07a3b4
f3b4e05
73a6078
33eb785
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,11 @@ if [[ -z "${WORKSPACE-""}" ]]; then | |
WORKSPACE=$(git rev-parse --show-toplevel) | ||
export WORKSPACE | ||
fi | ||
PIPELINE="${WORKSPACE}/.buildkite/pipeline.elastic-agent-package.yml" | ||
if [[ -z "${SETUP_MAGE_VERSION-""}" ]]; then | ||
SETUP_MAGE_VERSION=$(grep -oe "SETUP_MAGE_VERSION\: [\"'].*[\"']" "$PIPELINE" | awk '{print $2}' | sed "s/'//g" ) | ||
SETUP_MAGE_VERSION="1.14.0" | ||
fi | ||
if [[ -z "${SETUP_GVM_VERSION-""}" ]]; then | ||
SETUP_GVM_VERSION=$(grep -oe "SETUP_GVM_VERSION\: [\"'].*[\"']" "$PIPELINE" | awk '{print $2}' | sed "s/'//g" ) | ||
SETUP_GVM_VERSION="v0.5.0" # https://github.com/andrewkroh/gvm/issues/44#issuecomment-1013231151 | ||
Comment on lines
+10
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How are these version changes related to the permissions problem? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's indirectly related to the issue. Go installation started to fail. It tried to extract the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks 👍 |
||
fi | ||
BEAT_VERSION=$(grep -oE '[0-9]+\.[0-9]+\.[0-9]+(\-[a-zA-Z]+[0-9]+)?' "${WORKSPACE}/version/version.go") | ||
export BEAT_VERSION | ||
|
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'm confused. The switch to
$$
would output the PID, right? So everywhere this is used, the string being checked will be non-null.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.
before any pipeline execution builkite agent uploads the pipeline yaml with
buildkite-agent pipeline upload
. It interpolates the yaml; if it finds$somethig
it considers it a variable and tries to resolve it during the upload.${MANIFEST_URL}
will be resolved to""
(empty string). The$$
is used to avoid variable substitution.I still don't understand why it worked before.
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.
Ah, thanks for explaining. I guess I haven't noticed this because most pipelines have the command logic in separate .sh files.