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

Job 1_openmq-build-and-stage uses grep to determine existence of release branch #728

Open
pzygielo opened this issue Dec 1, 2020 · 3 comments
Labels

Comments

@pzygielo
Copy link
Contributor

pzygielo commented Dec 1, 2020

https://ci.eclipse.org/openmq/job/1_openmq-build-and-stage/64/:

+ echo 'Current version: 6.0.0-SNAPSHOT'
Current version: 6.0.0-SNAPSHOT
+ echo 'Release version: 6.0.0'
Release version: 6.0.0
+ echo 'Next version:    6.0.1-SNAPSHOT'
Next version:    6.0.1-SNAPSHOT
+ echo 'Release tag:     6.0.0-RELEASE'
Release tag:     6.0.0-RELEASE
+ '[' -z 6.0.0-SNAPSHOT -o -z 6.0.0 -o -z 6.0.1-SNAPSHOT ']'
+ '[' false = true ']'
+ MVN_DEPLOY_ARGS=nexus-staging:deploy
++ git remote
+ GIT_ORIGIN=origin
+ echo '-[ Prepare branch ]-------------------------------------------------------------'
-[ Prepare branch ]-------------------------------------------------------------
++ git branch -r
++ grep origin/6.0.0
+ [[ -n   origin/6.0.0-RC3 ]]
+ '[' false = true ']'
+ echo 'Error: origin/6.0.0 branch already exists'
Error: origin/6.0.0 branch already exists
+ exit 1

Unfortunately - 6.0.0-RC3 matches and causes failure.

@arjantijms
Copy link
Contributor

Hmmm, indeed, it should be a line by line comparison of the lines returned by git branch -r.

There's a few more of those greps in the standard scripts that at some points must cause issues (like grepping the entire pom etc).

@pzygielo
Copy link
Contributor Author

pzygielo commented Dec 1, 2020

I hope one day we'll find cycles to update them as well 😄
For now - I've just deleted the offending branch.

@arjantijms
Copy link
Contributor

Best for now, thx!

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

No branches or pull requests

2 participants