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

Make sure docker is only checked on non-windows gradle check #3817

Closed
wants to merge 2 commits into from

Conversation

peterzhuamazon
Copy link
Member

Description

Make sure docker is only checked on non-windows gradle check

Issues Resolved

#3816

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.

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #3817 (60e51b1) into main (c94badd) will increase coverage by 0.08%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3817      +/-   ##
==========================================
+ Coverage   91.54%   91.63%   +0.08%     
==========================================
  Files         182      182              
  Lines        5420     5441      +21     
==========================================
+ Hits         4962     4986      +24     
+ Misses        458      455       -3     

see 2 files with indirect coverage changes

else {
currentBuild.description = """runner: ${agent_name}<br><a href="${pr_url}">PR #${pr_number}</a>: ${pr_title}"""
}
if ( ! params.AGENT_LABEL.toLowerCase().contains('windows')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: What happens when the platform is windows?

Copy link
Member Author

Choose a reason for hiding this comment

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

As of now windows does not have docker equipped.
However, I have recently add some new development in opensearch-project/opensearch-ci#281 so this PR might not need any changes anymore.

if (!env.BUILD_CAUSE.contains('Started by user') && !env.BUILD_CAUSE.contains('Started by timer')) {
def pr_url = "${pr_to_clone_url}".replace(".git", "/pull/${pr_number}")
println("Triggered by GitHub: ${pr_to_clone_url}")
if ("$pr_number" == "Null") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Didn't understand this case?
Can a PR not have a PR number or is this some other trigger?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is just changed due to spacing, the old itself is not changed for months.
It literally just to determine whether if this is triggered by PR then assign number of that PR in description, else dont.

@peterzhuamazon
Copy link
Member Author

We can close this now as I have new solutions since we have implemented Windows containers now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cicd distinguished-contributor jenkins Jenkins related issue
Projects
Development

Successfully merging this pull request may close these issues.

2 participants