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) +