@@ -153,6 +153,7 @@ spk hld install-manifest-pipeline --org-name $AZDO_ORG -d $AZDO_PROJECT --person
153
153
# Will no longer be needed once install-manifest-pipeline supports adding a VG
154
154
# #################################
155
155
cd $hld_dir
156
+ hld_repo_commit_id=$( git log --format=" %H" -n 1)
156
157
spk hld append-variable-group $vg_name
157
158
git add .
158
159
git commit -m " Adding variable group $vg_name to pipeline"
@@ -163,7 +164,7 @@ echo "Successfully added variable group $vg_name to hld pipeline"
163
164
pipeline_created=$( az pipelines show --name $hld_to_manifest_pipeline_name --org $AZDO_ORG_URL --p $AZDO_PROJECT )
164
165
165
166
# Verify hld to manifest pipeline run was successful
166
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 1
167
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 $hld_repo_commit_id
167
168
168
169
# #################################
169
170
# External Helm Chart Repo Setup START
@@ -275,7 +276,8 @@ spk project install-lifecycle-pipeline --org-name $AZDO_ORG --devops-project $AZ
275
276
pipeline_created=$( az pipelines show --name $lifecycle_pipeline_name --org $AZDO_ORG_URL --p $AZDO_PROJECT )
276
277
277
278
# Verify lifecycle pipeline run was successful
278
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 180 15 1
279
+ mono_repo_commit_id=$( git log --format=" %H" -n 1)
280
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 180 15 $mono_repo_commit_id
279
281
280
282
# Approve pull request from lifecycle pipeline
281
283
echo " Finding pull request that $lifecycle_pipeline_name pipeline created..."
@@ -297,7 +299,7 @@ spk service install-build-pipeline --org-name $AZDO_ORG -u $remote_repo_url -d $
297
299
pipeline_created=$( az pipelines show --name $frontend_pipeline_name --org $AZDO_ORG_URL --p $AZDO_PROJECT )
298
300
299
301
# Verify frontend service pipeline run was successful
300
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $frontend_pipeline_name 300 15 1
302
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $frontend_pipeline_name 300 15 $mono_repo_commit_id
301
303
302
304
echo " Finding pull request that $frontend_pipeline_name pipeline created..."
303
305
approve_pull_request $AZDO_ORG_URL $AZDO_PROJECT " Updating $FrontEnd image tag to master"
@@ -360,11 +362,13 @@ pipeline1id=$(az pipelines build list --definition-ids $pipeline_id --organizati
360
362
# App Mono Repo create ring
361
363
# #################################
362
364
echo " Create ring in mono repo"
363
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 400 15 1
364
365
365
366
# Wait for fabrikam-hld-to-fabrikam-manifests pipeline to finish
366
367
echo " Wait for fabrikam-hld-to-fabrikam-manifests pipeline"
367
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 500 15 3
368
+ cd $TEST_WORKSPACE /$hld_dir
369
+ git pull
370
+ hld_repo_commit_id=$( git log --format=" %H" -n 1)
371
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 500 15 $hld_repo_commit_id
368
372
ring_name=qa-ring
369
373
370
374
cd $TEST_WORKSPACE
@@ -379,12 +383,16 @@ git commit -m "Adding test ring"
379
383
git push -u origin --all
380
384
381
385
# Wait for the lifecycle pipeline to finish and approve the pull request
382
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 300 15 2
386
+ mono_repo_commit_id=$( git log --format=" %H" -n 1)
387
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 300 15 $mono_repo_commit_id
383
388
echo " Finding pull request that $lifecycle_pipeline_name pipeline created..."
384
389
approve_pull_request $AZDO_ORG_URL $AZDO_PROJECT " Reconciling HLD"
385
390
386
391
# Wait for fabrikam-hld-to-fabrikam-manifests pipeline to finish
387
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 4
392
+ cd $TEST_WORKSPACE /$hld_dir
393
+ git pull
394
+ hld_repo_commit_id=$( git log --format=" %H" -n 1)
395
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 $hld_repo_commit_id
388
396
389
397
# Verify the file was added in the manifest repository
390
398
cd $TEST_WORKSPACE
@@ -417,16 +425,20 @@ echo "Ring doc" >> ringDoc.md
417
425
git add ringDoc.md
418
426
git commit -m " Adding ring doc file"
419
427
git push --set-upstream origin $ring_name
428
+ mono_repo_commit_id=$( git log --format=" %H" -n 1)
420
429
421
430
# Verify frontend service pipeline run was successful
422
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $frontend_pipeline_name 300 15 3
431
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $frontend_pipeline_name 300 15 $mono_repo_commit_id
423
432
# complete merge
424
433
echo " Finding pull request that $frontend_pipeline_name pipeline created..."
425
434
approve_pull_request $AZDO_ORG_URL $AZDO_PROJECT " Updating fabrikam.acme.frontend image tag to qa-ring"
426
435
427
436
# Wait for fabrikam-hld-to-fabrikam-manifests pipeline to finish
428
437
echo " Wait for hld to fabrikam manifests"
429
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 400 15 5
438
+ cd $TEST_WORKSPACE /$hld_dir
439
+ git pull
440
+ hld_repo_commit_id=$( git log --format=" %H" -n 1)
441
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 400 15 $hld_repo_commit_id
430
442
431
443
echo " Validating ring image tag in manifest repo"
432
444
cd $TEST_WORKSPACE /$hld_dir
@@ -451,7 +463,10 @@ echo "Successfully reached the end of the service validations scripts."
451
463
452
464
# Verify hld to manifest pipeline run was successful, to verify the full end-end capture of
453
465
# introspection data
454
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 5
466
+ cd $TEST_WORKSPACE /$hld_dir
467
+ git pull
468
+ hld_repo_commit_id=$( git log --format=" %H" -n 1)
469
+ verify_pipeline_with_poll_and_source_version $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 $hld_repo_commit_id
455
470
456
471
cd $TEST_WORKSPACE
457
472
cd ..
0 commit comments