From 2fdda8b48e064dc8175f7fff54f7f9349055923d Mon Sep 17 00:00:00 2001 From: Plakhota <90543395+Plakhota@users.noreply.github.com> Date: Mon, 12 Jun 2023 21:03:03 +0300 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aeb1fc5..057cf16 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,14 +25,18 @@ steps: eyesBaseUrl: "https://testeyes.applitools.com" env: APPLITOOLS_SERVER_URL: "https://testeyes.applitools.com" - - script: | + export ADO_BATCH_ID=$APPLITOOLS_BATCH_ID + export APPLITOOLS_BATCH_ID=$APPLITOOLS_BATCH_ID_FOR_GH + 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_SHOW_LOGS=true npm test #npm run build - displayName: 'npm install and build ' + displayName: 'npm install and build' env: APPLITOOLS_API_KEY: $(_testeyes_applitools_api_key) # APPLITOOLS_BATCH_ID: $(System.PullRequest.SourceCommitId) APPLITOOLS_SERVER_URL: "https://testeyes.applitools.com" + APPLITOOLS_BATCH_ID_FOR_GH: $(azure-pipelines-System.PullRequest.SourceCommitId) +