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 break by attaching jvm image detection to an agent node #791

Merged
merged 3 commits into from
Oct 22, 2021

Conversation

peternied
Copy link
Member

@peternied peternied commented Oct 22, 2021

Description

Attached the jvm detection logic inside of an docker container.

We have a requirement to not run jobs on the main jenkins node for security concerns. We enforce running in a container to keep jobs resource isolated since many build tools use shared system caches/components.

Issues

Testing

Full build with this change under my one-off build pipeline

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@peternied peternied requested review from dblock and gaiksaya October 22, 2021 18:05
@peternied peternied added the bug Something isn't working label Oct 22, 2021
@peternied peternied self-assigned this Oct 22, 2021
@kavilla
Copy link
Member

kavilla commented Oct 22, 2021

Can dashboards get it as well? I verified in my own pipeline that adding this will fix the problem for Dashboards too.

@peternied
Copy link
Member Author

@kavilla Almost fixed it before you noticed :)

Signed-off-by: Peter Nied <[email protected]>
@peternied peternied merged commit 6bcdf16 into opensearch-project:main Oct 22, 2021
@peternied peternied deleted the missing-agent branch October 22, 2021 18:43
agent {
docker {
label 'Jenkins-Agent-al2-x64-c54xlarge-Docker-Host'
image 'opensearchstaging/ci-runner:centos7-x64-arm64-jdk14-node10.24.1-cypress6.9.1-20211005'
Copy link
Member

Choose a reason for hiding this comment

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

This is not very important, but we can probably use a minimal image for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Jenkinsfile docker stage requires an agent but agent is none
4 participants