From adb2477c1cb3934214e77da09bdff448164685b4 Mon Sep 17 00:00:00 2001 From: Plakhota <90543395+Plakhota@users.noreply.github.com> Date: Thu, 15 Jun 2023 20:08:58 +0300 Subject: [PATCH 1/2] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c2dc0a0..1b9b818 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,7 +56,7 @@ steps: # APPLITOOLS_BATCH_ID: $(System.PullRequest.SourceCommitId) APPLITOOLS_SERVER_URL: "https://testeyesAPI.applitools.com" # APPLITOOLS_BATCH_ID_FOR_GH: $(azure-pipelines-System.PullRequest.SourceCommitId) - APPLITOOLS_BATCH_ID_FOR_GH: $(commitSha) + APPLITOOLS_BATCH_ID_FOR_GH: $(SYSTEM_PULLREQUEST_SOURCECOMMITID) From 0ac79ba1f49aed19f3ea7d1b0ffea8a29ca464ee Mon Sep 17 00:00:00 2001 From: Plakhota <90543395+Plakhota@users.noreply.github.com> Date: Thu, 15 Jun 2023 20:26:20 +0300 Subject: [PATCH 2/2] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1b9b818..9238d9e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -44,9 +44,11 @@ steps: - script: | echo "ENV vars list " env - echo ADO_BATCH_ID=$APPLITOOLS_BATCH_ID - echo APPLITOOLS_BATCH_ID=$APPLITOOLS_BATCH_ID_FOR_GH - curl --location "https://testeyes.applitools.com/api/sessions/batches/bindpointers/${APPLITOOLS_BATCH_ID_FOR_GH}?apiKey=${APPLITOOLS_API_KEY}" --header 'Content-Type: application/json' --data "{ "secondaryBatchPointerId": \"$APPLITOOLS_BATCH_ID\"}" + export ADO_BATCH_ID=$APPLITOOLS_BATCH_ID + export APPLITOOLS_BATCH_ID=$APPLITOOLS_BATCH_ID_FOR_GH + echo ADO_BATCH_ID=$ADO_BATCH_ID + echo APPLITOOLS_BATCH_ID=$APPLITOOLS_BATCH_ID + curl --location "https://testeyes.applitools.com/api/sessions/batches/bindpointers/${APPLITOOLS_BATCH_ID}?apiKey=${APPLITOOLS_API_KEY}" --header 'Content-Type: application/json' --data "{ "secondaryBatchPointerId": \"$ADO_BATCH_ID\"}" npm install APPLITOOLS_BATCH_ID=$APPLITOOLS_BATCH_ID_FOR_GH APPLITOOLS_SHOW_LOGS=true npm test #npm run build @@ -56,7 +58,7 @@ steps: # APPLITOOLS_BATCH_ID: $(System.PullRequest.SourceCommitId) APPLITOOLS_SERVER_URL: "https://testeyesAPI.applitools.com" # APPLITOOLS_BATCH_ID_FOR_GH: $(azure-pipelines-System.PullRequest.SourceCommitId) - APPLITOOLS_BATCH_ID_FOR_GH: $(SYSTEM_PULLREQUEST_SOURCECOMMITID) + APPLITOOLS_BATCH_ID_FOR_GH: $(System.PullRequest.SourceCommitId)