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

CI improvements #253

Merged
merged 2 commits into from
Nov 22, 2019
Merged

CI improvements #253

merged 2 commits into from
Nov 22, 2019

Conversation

jglick
Copy link
Member

@jglick jglick commented Nov 14, 2019

// TODO Azure mirror
ansiColor('xterm') {
withEnv(['MAVEN_OPTS=-Djansi.force=true']) {
sh 'mvn -B -Dstyle.color=always -ntp -Prun-plugin-pom-its clean verify'
Copy link
Member

Choose a reason for hiding this comment

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

Could we use runMaven instead? Mirros & Co

Copy link
Member Author

Choose a reason for hiding this comment

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

runMaven does not set up mirrors, nor has it been updated for -ntp, and does a bunch of stuff which is useless in an ACI agent. I prefer to keep things more transparent and explicit.

Copy link
Member

Choose a reason for hiding this comment

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

runMaven does not set up mirrors, nor has it been updated for -ntp, and does a bunch of stuff which is useless in an ACI agent

Hm? https://github.com/jenkins-infra/pipeline-library/blob/master/vars/infra.groovy#L69-L89

Maybe you are talking about the Pipeline Maven Plugin. Sorry, I meant infra.runMaven. We can add -ntp there and any ACI agent tweaks if needed there

Copy link
Member Author

Choose a reason for hiding this comment

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

Can be done in a follow-up, though I would still prefer to call retrieveMavenSettingsFile directly and avoid runMaven: nicer to have a single command you can copy and paste into a local shell to check build failures. Excessive Groovy functions just obscures what is actually being run.

@jglick jglick merged commit 7cceadf into jenkinsci:master Nov 22, 2019
@jglick jglick deleted the ci branch November 22, 2019 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants