Skip to content

Enable build scans and build cache in Jenkinsfile and list build scans in a GitHub check #8016

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

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Mar 21, 2024

Oddly, it seems the build cache and, more annoyingly, build scans, were not enabled in the Jenkinsfile. So this fixes that. Note that for pull requests, we use a different access key which is not able to push to the build cache -- for security reasons.

Also, this enables a new feature in hibernate-github-bot that basically adds a GitHub check next to the existing ones for GitHub Actions or Jenkins, and inside that check is a list of build scans, along with some context (tags, ...).

Note this works best when build scans are tagged properly, e.g. you add a postgresql tag to CI runs against postgresql. So I adjusted GitHub Actions workflows and the Jenkinsfile accordingly.

image

image

See hibernate/hibernate-github-bot#227

@yrodiere
Copy link
Member Author

Note you won't see the Develocity check in this PR, because only the bot config from the main branch is taken into account. So any change to the bot config in this PR will have to get merged before it's taken into account.

@yrodiere
Copy link
Member Author

Sorry -- much better if I actually push all the commits :]

Using hibernate-github-bot.
It doesn't seem to work as we get "JOB null" on every build scan.
Even if it worked, it would most likely only display the top-level job,
e.g. `hibernate-orm-pipeline` on Jenkins, which doesn't give much
information.
@sebersole
Copy link
Member

Wow, nice! Looking...

@sebersole sebersole merged commit b344621 into hibernate:main Mar 21, 2024
@yrodiere
Copy link
Member Author

So, looks like Gradle's Develocity integration does not add the Git commit id custom value to build scans: https://ge.hibernate.org/s/xdhwmr2vvdxyu/custom-values That will be a problem... I'll look into adding it manually.

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.

2 participants