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

git 22.0 tag is not standard and jenkins fails #173

Closed
paskino opened this issue Jul 11, 2022 · 1 comment
Closed

git 22.0 tag is not standard and jenkins fails #173

paskino opened this issue Jul 11, 2022 · 1 comment

Comments

@paskino
Copy link
Contributor

paskino commented Jul 11, 2022

Jenkins determines the number of commits from the latest tag with these lines

https://github.com/vais-ral/CCPi-VirtualMachine/blob/40bc2d32a16db85974775a00789333f3b01b433f/scripts/jenkins-build.sh#L50-L51

export CIL_TAG_PREV=$(git describe --tags --abbrev=0 | tr -d '/s/v//g' )
ncommits=$(git rev-list v${CIL_TAG_PREV}..HEAD --count)

In particular the second line assumes that the tag has a v in it as first character. Since the latest tag is 22.0, this fails.

@paskino
Copy link
Contributor Author

paskino commented Jul 11, 2022

@paskino paskino closed this as completed Jul 11, 2022
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

No branches or pull requests

1 participant