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

what is different between 1.5.1 and 1.7.1 #151

Open
soloturn opened this issue Feb 21, 2021 · 3 comments
Open

what is different between 1.5.1 and 1.7.1 #151

soloturn opened this issue Feb 21, 2021 · 3 comments

Comments

@soloturn
Copy link

tried to use the newest version 1.7.1 and jenkins builds behaved different than before. when creating an annotated tag called 1.0.0 it builds.

with 1.5.1. the behaviour is the same running local and running on jenkins. it creates myjar-1.0.0.jar out of a tag with name 1.0.0 on the current build. for jenkins, one needs to make sure it retrieves the tags, whihc is not the default. then it would build myjar-1.0.0.jar, just as local.

with 1.7.1 the behaviour changed slightly. local it continues to build myjar-1.0.0.jar. but on jenkins it creates 1.0.1-SNAPSHOT out of the same commit.

i tried to make out what changed from 1.5.1 to 1.7.1 but could not see the cause immediate. would you know where this different behaviour might come from?

@McFoggy
Copy link
Contributor

McFoggy commented Feb 22, 2021

might come from jgitver/jgitver#106. related commits:

@Brixomatic
Copy link

"with 1.7.1 the behaviour changed slightly. local it continues to build myjar-1.0.0.jar. but on jenkins it creates 1.0.1-SNAPSHOT out of the same commit."

Does the Jenkins build contain/create local changes to resources tracked by git?
If so, this might be where the snapshot comes from.

@McFoggy
Copy link
Contributor

McFoggy commented Mar 4, 2021

Does the Jenkins build contain/create local changes to resources tracked by git?

a simple git status before calling mvn would help understand the state of the repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants