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

Add support for Jenkins Blue Ocean #55

@rochdev

Description

@rochdev

Blue Ocean supports pull requests directly and uses a new version of the SCM plugin. This new version has changed the following environment variables used by codecov:

GIT_BRANCH has been replaced with BRANCH_NAME
GIT_COMMIT has no direct replacement (accessible only with Groovy)

SInce Blue Ocean no longer uses the GitHub Pull Request Builder plugin, all ghprb prefixed variables are not longer defined either, so:

ghrpbSourceBranch has been replaced with BRANCH_NAME
ghrpbActualCommit has no direct replacement (accessible only with Groovy)
ghprbPullId has been replaced with CHANGE_ID

The other environment variables are still available as before.

Here is a working Groovy implementation from the Docker team:
https://github.com/docker/jenkins-pipeline-scripts/blob/master/vars/codecov.groovy

References:
https://jenkins.io/projects/blueocean/
https://jenkins.io/doc/book/pipeline/multibranch/#additional-environment-variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions