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

Fix build status and adjust Vault #1074

Merged
merged 18 commits into from
Apr 21, 2021
Merged

Conversation

cachedout
Copy link
Contributor

What does this PR do?

This contains a variety of fixes which related to the Jenkins release job for the apm-java-agent project.

Build Status

The previous step used the standard library to make HTTP requests. However, it was silently failing and returning incorrect results. We change to use our existing HTTP client implementation which works more reliably and returns the correct result.

Make vault credentials configurable

The internal-ci machine is shared between multiple teams and our credentials are namespaced accordingly. Therefore, I modified the Vault implementation to make it possible to pass in specific IDs to use when authenticating to Vault.

Why is it important?

Fixes issues related to the broken release job for the APM Java agent.

Related issues

https://github.com/elastic/observability-robots/issues/463

@cachedout cachedout requested a review from a team April 14, 2021 09:29
@botelastic botelastic bot added the groovy label Apr 14, 2021
@apmmachine
Copy link
Contributor

apmmachine commented Apr 14, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1074 updated

  • Start Time: 2021-04-21T14:07:17.243+0000

  • Duration: 8 min 15 sec

  • Commit: d2d4d26

Test stats 🧪

Test Results
Failed 0
Passed 1116
Skipped 2
Total 1118

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 1116
Skipped 2
Total 1118

vars/getVaultSecret.groovy Outdated Show resolved Hide resolved
@cachedout cachedout requested a review from v1v April 21, 2021 11:13
Copy link
Member

@v1v v1v left a comment

Choose a reason for hiding this comment

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

I did a quick search for https://github.com/search?l=Groovy&q=org%3Aelastic+readSecret&type=Code and I couldn not find any other consumers
+1

@cachedout cachedout merged commit 48709f3 into elastic:master Apr 21, 2021
v1v added a commit that referenced this pull request Apr 21, 2021
…notify-message-template

* upstream/master:
  Fix build status and adjust Vault (#1074)
  Remove super-linter since it takes 20 minutes (#1083)
  Bump elastic stack version automation (#1081)
  feat: step to check if a docker image exists (#1077)
  docs: update CHANGELOG.md
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release v1.1.210
  Enable stage filter argument for the beatsStages (#1076)
v1v referenced this pull request in v1v/apm-pipeline-library Apr 22, 2021
…automation

* upstream/master:
  Add searchIssuesWithFilters action for the lookForGitHubIssues (#1082)
  docs: update CHANGELOG.md
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release v1.1.211
  Fix build status and adjust Vault (#1074)
  Remove super-linter since it takes 20 minutes (#1083)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants