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 URL to current SapMachine #5126

Merged
merged 13 commits into from
Nov 8, 2024
Merged

Update URL to current SapMachine #5126

merged 13 commits into from
Nov 8, 2024

Conversation

skateball
Copy link
Contributor

@skateball skateball commented Oct 2, 2024

Hi colleagues,

fixes: #5125

11.0.2 in from Jan2019 := 5 years old
use the current version => 11.0.24 (update 25Oct2024: meanwhile the current version is 11.0.25)

Regards Christian@SapMachine

PS:
after some back and forth we have settled on java version 17.0.13

11.0.2 in from Jan2019 := 5 years old
use the recent version => 11.0.24
@skateball skateball requested a review from a team as a code owner October 2, 2024 09:52
Copy link

cla-assistant bot commented Oct 2, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@RealCLanger RealCLanger left a comment

Choose a reason for hiding this comment

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

Makes a lot of sense. I would prefer if we could even bump to 21.0.4 or at least 17.0.12...

@skateball
Copy link
Contributor Author

skateball commented Oct 2, 2024

Makes a lot of sense. I would prefer if we could even bump to 21.0.4 or at least 17.0.12...

sure, if the repo-owners agree the stable links
https://sap.github.io/SapMachine/latest/21/linux-x64/jre/
can be used

@CCFenner
Copy link
Member

@akram8008 @dimaste consider adding yourself into https://github.com/SAP/jenkins-library/blob/master/.github/CODEOWNERS for the sources that are in your responsibility to get notification about open PRs.

meanwhile 11.0.25 is the latest version
@skateball
Copy link
Contributor Author

meanwhile/since last week 11.0.25 is the latest version, wherefore i updated the PR.
independent from that you should consider (compare #5127 ) to switch to the stable link to the latest Long Term Release, that is 21. the Link would be
https://sap.github.io/SapMachine/latest/21/linux-x64/jre/
what I would do in another PR

@RealCLanger
Copy link
Member

Looks even better now :)

@@ -255,7 +255,7 @@ spec:
- PARAMETERS
- STAGES
- STEPS
default: "https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.2/sapmachine-jre-11.0.2_linux-x64_bin.tar.gz"
default: "https://sap.github.io/SapMachine/latest/21/linux-x64/jre/"
Copy link
Member

Choose a reason for hiding this comment

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

this does not look like a tar.gz file. Presumably the code will try and unpack whatever it fetches here. Did you test it?

Copy link
Member

Choose a reason for hiding this comment

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

Please test this once (locally with go run ...) to make sure the redirect happens and the JRE 21 is fine to execute this mend scan.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the given link is a HTTP '302 Temp Redirect' to the latest available release of SapMachine 21 linux-x64 JRE.
requested comment added to
https://github.com/skateball/jenkins-library/blob/master/resources/metadata/whitesourceExecuteScan.yaml#L250
description:
"URL used for downloading the Java Runtime Environment (JRE) required to run the WhiteSource Unified Agent. The URL is a HTTP 302 Temp Redirect to the always latest available SapMachine 21, linux-x64, JRE"

@o-liver
Copy link
Member

o-liver commented Nov 4, 2024

/go-it

Copy link
Member

@o-liver o-liver left a comment

Choose a reason for hiding this comment

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

Please test this once (locally with go run ...) to make sure the redirect happens and the JRE 21 is fine to execute this mend scan.

@aamotharald
Copy link
Contributor

Hi @o-liver ,

go run main.go whitesourceExecuteScan
does not come far enough..

any hint what I can do to test it?
image

@o-liver
Copy link
Member

o-liver commented Nov 4, 2024

Hi @o-liver ,

go run main.go whitesourceExecuteScan does not come far enough..

any hint what I can do to test it? image

I was hoping you had a whitesource project ready that you can test this with. Me neither. I will think of something...

@o-liver o-liver self-requested a review November 7, 2024 08:03
@o-liver o-liver self-requested a review November 7, 2024 08:04
Copy link
Member

@o-liver o-liver left a comment

Choose a reason for hiding this comment

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

I'm trying to dismiss my review, does not seem to work easily anymore.

@o-liver o-liver self-requested a review November 7, 2024 15:28
Copy link
Member

@o-liver o-liver left a comment

Choose a reason for hiding this comment

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

looks good and tested

@o-liver
Copy link
Member

o-liver commented Nov 8, 2024

/it-go

Copy link

sonarqubecloud bot commented Nov 8, 2024

@o-liver o-liver merged commit 1edf829 into SAP:master Nov 8, 2024
12 checks passed
maxatsap added a commit to maxatsap/jenkins-library that referenced this pull request Nov 20, 2024
…ix-fix

* origin/master: (43 commits)
  fix handle new naming strategy for Central Build stage name if extension is used (SAP#5178)
  Remove commit message from project-metadata.toml (SAP#5176)
  handle new naming strategy for Central Build stage name (SAP#5171)
  Update URL to current SapMachine (SAP#5126)
  checkmarxOneExecuteScan - Fix report generation in CxOne 3.20 (SAP#5170)
  docs: update pr template to include inner source update reminder (SAP#5169)
  handle error while fetching working directory (SAP#5168)
  Final round of adding quoting to prevent command injection (SAP#5167)
  feat: add build artifacts metadata for mtaBuild (SAP#5166)
  Fix more potential command injection via quoting (SAP#5164)
  Add identifier data to create uuid in events (SAP#5165)
  Update version of org.cyclonedx:cyclonedx-maven-plugin (SAP#5156)
  Fix: validate app name (SAP#5155)
  fix: command injection vulnerability (SAP#5161)
  fix deadlock and add more logging (SAP#5160)
  fix(sonar): allign groovy part of Sonar step with common piperExecuteBin (SAP#5157)
  modify logging (SAP#5158)
  Detect script version 9 (SAP#5154)
  feat(vault): not allowing batch token revoke (SAP#4918)
  refactor(vault): Refactor vault package (SAP#5148)
  ...
maxatsap added a commit to maxatsap/jenkins-library that referenced this pull request Nov 20, 2024
* origin/master: (43 commits)
  fix handle new naming strategy for Central Build stage name if extension is used (SAP#5178)
  Remove commit message from project-metadata.toml (SAP#5176)
  handle new naming strategy for Central Build stage name (SAP#5171)
  Update URL to current SapMachine (SAP#5126)
  checkmarxOneExecuteScan - Fix report generation in CxOne 3.20 (SAP#5170)
  docs: update pr template to include inner source update reminder (SAP#5169)
  handle error while fetching working directory (SAP#5168)
  Final round of adding quoting to prevent command injection (SAP#5167)
  feat: add build artifacts metadata for mtaBuild (SAP#5166)
  Fix more potential command injection via quoting (SAP#5164)
  Add identifier data to create uuid in events (SAP#5165)
  Update version of org.cyclonedx:cyclonedx-maven-plugin (SAP#5156)
  Fix: validate app name (SAP#5155)
  fix: command injection vulnerability (SAP#5161)
  fix deadlock and add more logging (SAP#5160)
  fix(sonar): allign groovy part of Sonar step with common piperExecuteBin (SAP#5157)
  modify logging (SAP#5158)
  Detect script version 9 (SAP#5154)
  feat(vault): not allowing batch token revoke (SAP#4918)
  refactor(vault): Refactor vault package (SAP#5148)
  ...
maxatsap added a commit to maxatsap/jenkins-library that referenced this pull request Nov 20, 2024
…fig-fix

* origin/master: (43 commits)
  fix handle new naming strategy for Central Build stage name if extension is used (SAP#5178)
  Remove commit message from project-metadata.toml (SAP#5176)
  handle new naming strategy for Central Build stage name (SAP#5171)
  Update URL to current SapMachine (SAP#5126)
  checkmarxOneExecuteScan - Fix report generation in CxOne 3.20 (SAP#5170)
  docs: update pr template to include inner source update reminder (SAP#5169)
  handle error while fetching working directory (SAP#5168)
  Final round of adding quoting to prevent command injection (SAP#5167)
  feat: add build artifacts metadata for mtaBuild (SAP#5166)
  Fix more potential command injection via quoting (SAP#5164)
  Add identifier data to create uuid in events (SAP#5165)
  Update version of org.cyclonedx:cyclonedx-maven-plugin (SAP#5156)
  Fix: validate app name (SAP#5155)
  fix: command injection vulnerability (SAP#5161)
  fix deadlock and add more logging (SAP#5160)
  fix(sonar): allign groovy part of Sonar step with common piperExecuteBin (SAP#5157)
  modify logging (SAP#5158)
  Detect script version 9 (SAP#5154)
  feat(vault): not allowing batch token revoke (SAP#4918)
  refactor(vault): Refactor vault package (SAP#5148)
  ...
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.

Replace 5 year old version of JAVA with current one
5 participants