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

Add Independent Agent alternate upload step in pipeline #287

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

dwhyrock
Copy link
Collaborator

This PR adds an alternate step in the elastic-stack-installers that the Independent Agent Release will use in order to get only the Elastic Agent windows installer (.msi) built.

The new pipeline step uses a new script that does the following:

  • Retrieve the MSI artifacts from the Build step
  • Moves the MSI artifacts to a new directory
  • Creates a .sha512 file for the MSI file
  • Saves the MSI and .sha512 artifacts using Buildkite's built-in upload functionality
  • Sets metadata in the calling pipeline if the TRIGGER_JOB_ID is set
    • The calling pipeline will then use this metadata to download the saved artifacts

This PR incorporates the changes from these two PRs, which should be closed in favor of this PR:

This PR is being used instead of the "fork" version: #286

Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM great work!

#
# This is a much easier way to pull back artifacts from a triggered build than using
# a Buildkite token that we then have to manage via vault, etc.
# See: https://forum.buildkite.community/t/how-to-download-artifacts-back-from-triggered-pipeline/3480/2
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

Copy link

@gogochan gogochan left a comment

Choose a reason for hiding this comment

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

This was confirmed working.

@dwhyrock dwhyrock merged commit 372cbc7 into main Jul 12, 2024
3 checks passed
@dwhyrock dwhyrock deleted the ind-agent-new-upload-pipeline branch July 12, 2024 15:44
dwhyrock added a commit that referenced this pull request Jul 12, 2024
* Add Independent Agent alternate upload step in pipeline

* empty commit to trigger CI
dwhyrock added a commit that referenced this pull request Jul 12, 2024
* Add Independent Agent alternate upload step in pipeline

* empty commit to trigger CI
dliappis pushed a commit that referenced this pull request Jul 15, 2024
…#288)

Backport of #287

This PR adds an alternate step in the elastic-stack-installers that the Independent Agent Release will use in order to get only the Elastic Agent windows installer (.msi) built.

The new pipeline step uses a new script that does the following:

Retrieve the MSI artifacts from the Build step
Moves the MSI artifacts to a new directory
Creates a .sha512 file for the MSI file
Saves the MSI and .sha512 artifacts using Buildkite's built-in upload functionality
Sets metadata in the calling pipeline if the TRIGGER_JOB_ID is set
The calling pipeline will then use this metadata to download the saved artifacts
dliappis pushed a commit that referenced this pull request Jul 15, 2024
…#289)

Backport of #287

This PR adds an alternate step in the elastic-stack-installers that the Independent Agent Release will use in order to get only the Elastic Agent windows installer (.msi) built.

The new pipeline step uses a new script that does the following:

Retrieve the MSI artifacts from the Build step
Moves the MSI artifacts to a new directory
Creates a .sha512 file for the MSI file
Saves the MSI and .sha512 artifacts using Buildkite's built-in upload functionality
Sets metadata in the calling pipeline if the TRIGGER_JOB_ID is set
The calling pipeline will then use this metadata to download the saved artifacts

Merged, bypassing checks due to #277
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.

4 participants