Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Last version breaks Jenkins pipeline (not multibranch) #68

Closed
sebastienvas opened this issue Apr 10, 2017 · 7 comments
Closed

Last version breaks Jenkins pipeline (not multibranch) #68

sebastienvas opened this issue Apr 10, 2017 · 7 comments

Comments

@sebastienvas
Copy link

[mixer] Running shell script

/ | | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / ` |/ _ / / _ \ \ / /
| |
| (
) | (
| | __/ (
| (
) \ V /
______/ _,|_|____/ _/
Bash-e4a745b

==> Jenkins CI detected.

And then nothing else. After some investigation I think the issue is in here
https://github.com/codecov/codecov-bash/blob/e4a745b/codecov#L416

I also find it really weird that the script still checks for CI even though I am passing in the arguments.

The last working version for us is:
https://github.com/codecov/codecov-bash/blob/d642346/codecov#L406

@ypconstante
Copy link

I started to use Codecov today and had this same problem.
The version in commit d642346 also solved the problem for me.

@sebastienvas
Copy link
Author

I ended up changing my pipeline libraries to set GIT_COMMIT and GIT_BRANCH when checking out the code. More details at istio/test-infra@96c1bdb

@stevepeak
Copy link
Contributor

Thank you for reporting. Do you have a suggestion on how to resolve this?

@sebastienvas
Copy link
Author

One of the issues is that CI detection is happening regardless of argument passed in. Since I passed in arguments I did not expect CI detection to fail.

The second issues would be to update
https://github.com/codecov/codecov-bash/blob/master/codecov#L418
from :
[ ! -z "$BRANCH_NAME" ] && echo "$BRANCH_NAME")
to
|| echo "$BRANCH_NAME")
as it is done in here:
https://github.com/codecov/codecov-bash/blob/master/codecov#L420 for GIT_COMMIT

@richistron
Copy link

I'm having the same problem

@drazisil drazisil added this to To do in Change Tracking Nov 18, 2019
@thomasrockhu
Copy link
Contributor

Is this still an issue @sebastienvas @richistron?

@sebastienvas
Copy link
Author

sebastienvas commented Sep 23, 2020 via email

Change Tracking automation moved this from To do to Done Nov 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

No branches or pull requests

5 participants