Commit d6247872 authored by Jan Kiene's avatar Jan Kiene
Browse files

store commit hash in compare jobs

parent a19d4088
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1261,6 +1261,9 @@ renderer-pytest-on-merge-request:
    # - ref_using_target=$(grep -c --ignore-case "\[ref[ -]*using[ -]*target\]" tmp.txt) || true
    - ref_using_target=0

    # store the current commit hash
    - source_branch_commit_sha=$(git rev-parse HEAD)

    ### If ref_using_target is not set, checkout the source branch to use scripts and input from there
    - if [ $ref_using_target == 0 ]; then git checkout $source_branch_commit_sha; fi

@@ -1315,6 +1318,9 @@ ivas-pytest-on-merge-request:
    # - ref_using_target=$(grep -c --ignore-case "\[ref[ -]*using[ -]*target\]" tmp.txt) || true
    - ref_using_target=0

    # store the current commit hash
    - source_branch_commit_sha=$(git rev-parse HEAD)

    ### If ref_using_target is not set, checkout the source branch to use scripts and input from there
    - if [ $ref_using_target == 0 ]; then git checkout $source_branch_commit_sha; fi