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

Update customUrl to dynamically use Jenkins domain #5289

Merged
merged 1 commit into from May 16, 2024

Conversation

annaibm
Copy link
Contributor

@annaibm annaibm commented May 7, 2024

  • Dynamically build the customUrl using the extracted domain using getJenkinsDomain()

resolves:#5286

@annaibm
Copy link
Contributor Author

annaibm commented May 7, 2024

jenkinsDomain = "openj9-jenkins.osuosl.org"
}
def customUrl = "https://${jenkinsDomain}/job/test.getDependency/lastSuccessfulBuild/artifact/"
echo "Custom URL: ${customUrl}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please create a function for this. We should not duplicate the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created function to avoid duplicate code.
Grinder link:
https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/40359/

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move echo "Custom URL: ${customUrl}" in getCustomUrl()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, moved it into getCustomUrl().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@llxia
Copy link
Contributor

llxia commented May 8, 2024

Please run a Grinder via Adoptium Jenkins https://ci.adoptium.net/view/Test_grinder/job/Grinder/

@llxia
Copy link
Contributor

llxia commented May 8, 2024

@smlambert could you grant Anna access to Adoptium Grinder? She needs to run some PR testing. Thanks

@smlambert
Copy link
Contributor

@annaibm - you should see a GitHub invitation to a test-triage team, once you accept it, you will have access to run Grinder jobs at ci-adoptium.net

@annaibm
Copy link
Contributor Author

annaibm commented May 8, 2024

@ShelleyLambert I have received the invitation and accepted it. I could run the Grinder job. Thanks!

@annaibm
Copy link
Contributor Author

annaibm commented May 8, 2024

Please run a Grinder via Adoptium Jenkins https://ci.adoptium.net/view/Test_grinder/job/Grinder/
@llxia Please find the Grinder via Adoptium.
https://ci.adoptium.net/view/Test_grinder/job/Grinder/9887/
https://ci.adoptium.net/view/Test_grinder/job/Grinder/9888/
image

@llxia
Copy link
Contributor

llxia commented May 9, 2024

https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/3570/

00:01:56.887  Custom URL: https://openj9-jenkins.osuosl.org//job/test.getDependency/lastSuccessfulBuild/artifact/
[Pipeline] sh
00:02:00.535  + perl ./aqa-tests/TKG/scripts/getDependencies.pl -path /home/jenkins/workspace/Grinder/../../testDependency/lib -task default -customUrl https://openj9-jenkins.osuosl.org//job/test.getDependency/lastSuccessfulBuild/artifact/
00:02:00.535  --------------------------------------------
00:02:00.535  path is set to /home/jenkins/workspace/Grinder/../../testDependency/lib
00:02:00.535  task is set to default
00:02:00.535  dependencyList is set to all
00:02:00.535  --------------------------------------------
00:02:00.535  Starting download third party dependent jars
00:02:00.535  --------------------------------------------
00:02:00.535  downloading dependent third party jars to /home/jenkins/workspace/Grinder/../../testDependency/lib
00:02:00.535  /home/jenkins/workspace/Grinder/../../testDependency/lib/openj9jtregtimeouthandler.jar exists with correct hash, not downloading
...

@llxia
Copy link
Contributor

llxia commented May 15, 2024

@annaibm can you move this out of draft? Thanks

@annaibm annaibm marked this pull request as ready for review May 15, 2024 20:27
- Dynamically build the customUrl using the extracted domain using getJenkinsDomain()

resolves:adoptium#5286

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

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

Thanks @annaibm

@llxia llxia requested a review from smlambert May 16, 2024 12:15
Copy link
Contributor

@smlambert smlambert left a comment

Choose a reason for hiding this comment

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

This LGTM, though you may want to consider a more specific method name than getCustomUrl(), as it is really getCustomUrlForLastSuccessfulArtifacts()

I could envision a future scenario, where we'd want to build other custom Jenkins links. The name can be updated when/if those scenarios arise.

@karianna karianna merged commit 5685ea4 into adoptium:master May 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants