-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[QA] [Code Coverage] Add Three Dot Compare Url #70525
Conversation
pass it through to the ingestion, and process it in the itemizeVcs fn.
💚 Build SucceededBuild metrics
To update your PR or re-run it, just comment with: |
|
||
''', title) | ||
|
||
def previous = sh(script: 'cat downloaded_previous.txt', label: '### Capture Previous Sha', returnStdout: true).trim() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just do def previous = readFile(file: 'downloaded_previous.txt')
. Shelling out to cat
works too, but there's a built-in step for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I knew you'd have an insight on this! Thanks B!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Grab the previous sha from the downloadPrevious fn,
pass it through to the ingestion,
and process it in the itemizeVcs fn.
In order to provide the three dot compare url,
this pr uploads the last sha to gcp.
Then on subsequent ci runs, it downloads the "old" previous
and uses in the three dot url.