Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Conversation

@ghost
Copy link

@ghost ghost commented Feb 15, 2022

Create a cached UA Maven example for Azure DevOps.

Create a cached UA Maven example for Azure DevOps.
Copy link
Contributor

@samq-ws samq-ws left a comment

Choose a reason for hiding this comment

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

@lukebroganws Can you explain where in the script the UA is being pulled from a cache? I do not see it anywhere

Adding UA integrity check.
@ghost
Copy link
Author

ghost commented Apr 3, 2022

Hey @samq-ws - this script is designed the same way as the following example in GitLab:
https://github.com/whitesource-ft/ws-examples/blob/main/CI-CD/GitLab/gitlab-maven-cached-ua.yml

The script simply queries the UA repository of releases, taking the date of the last released UA and then compares it to the existing JAR in the pipeline, if a newer date exists, a new UA is downloaded. If there is no UA, it will simply download the latest one.

Adding UA integrity check.
@samq-ws
Copy link
Contributor

samq-ws commented Apr 3, 2022

Hey @samq-ws - this script is designed the same way as the following example in GitLab: https://github.com/whitesource-ft/ws-examples/blob/main/CI-CD/GitLab/gitlab-maven-cached-ua.yml

The script simply queries the UA repository of releases, taking the date of the last released UA and then compares it to the existing JAR in the pipeline, if a newer date exists, a new UA is downloaded. If there is no UA, it will simply download the latest one.

Let's take this offline as this is not caching the UA. It is just updating a previously existing UA. The PS team has already created a utility for this, so I'd like to take this offline and understand why we are duplicating efforts.

@tidharm
Copy link

tidharm commented Aug 7, 2022

@lukebroganws, @samq-ws, I'd like to close this PR, and if needed, migrate it into a new PR in mend-toolkit/mend-examples.

Where are we in this discussion? Do we agree on the need for this example and on its validity?
Should I copy these changes to a new PR in the new org, or close this PR without further action?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants