Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions macro/agnostic/publication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ ppl--publication.tag-git-version() {
"may be you re-executed an old run?"
}

if [ "${snapshotVersionTag:0:1}" = "v" ]; then
snapshotVersionTag="${snapshotVersionTag}-merge"
fi

__git_add_tag -f "$snapshotVersionTag" "$PPL_RUN_ID" "$PPL_COMMIT_ID"
__git push origin "$snapshotVersionTag" -f

Expand Down
2 changes: 1 addition & 1 deletion test/agnostic/test_full_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test_flow_pr_check() {
ppl--publication tag-git-version --lcd "local-clone" || _SOE

cd local-clone
ASSERT -v SNAPSHOT-TAG "$(git tag | grep "ENG-")" = "v10.9.8.0-ENG-2471-PR-154+BB-develop"
ASSERT -v SNAPSHOT-TAG "$(git tag | grep "ENG-")" = "v10.9.8.0-ENG-2471-PR-154+BB-develop-merge"
) || _SOE

#~
Expand Down
3 changes: 3 additions & 0 deletions test/test_misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ test__ppl_extract_branch_name_from_ref() {
ASSERT RES = "epic/an-epic-branch"
_ppl_extract_branch_name_from_ref RES "refs/tags/TEST/v7.0.0-ENG-3002-PR-166"
ASSERT RES = "TEST/v7.0.0-ENG-3002-PR-166"
_ppl_extract_branch_name_from_ref RES "refs/tags/v7.0.0-ENG-3002-PR-166+BB-develop"
ASSERT RES = "develop"

}

#TEST:lib
Expand Down