Skip to content

Fossa for tags

David Diederich requested to merge fossa-for-tags into master

So, when starting the tagging process for v0.4.0, I noticed all the FOSSA steps were failing.

This was because my last round of improvements on FOSSA used the CI_COMMIT_BRANCH variable to know the branch name. I had not considered at the time that pipelines generated from tags do not have this variable defined.

This MR sets the CI_COMMIT_BRANCH to be CI_COMMIT_TAG whenever it is missing. Theory goes, if one is blank, try the other. If it still fails, then let it fail and we'll look at it again in the new context.

Test Case for a Branch: https://community.opengroup.org/osdu/platform/system/lib/core/os-core-common/-/pipelines/14939

Test Case for a Tag: https://community.opengroup.org/osdu/platform/system/lib/core/os-core-common/-/pipelines/14940

Edited by David Diederich

Merge request reports