@@ -152,7 +152,7 @@ spk hld install-manifest-pipeline --org-name $AZDO_ORG -d $AZDO_PROJECT --person
152
152
pipeline_created=$( az pipelines show --name $hld_to_manifest_pipeline_name --org $AZDO_ORG_URL --p $AZDO_PROJECT )
153
153
154
154
# Verify hld to manifest pipeline run was successful
155
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15
155
+ verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 1
156
156
157
157
# #################################
158
158
# External Helm Chart Repo Setup START
@@ -266,7 +266,7 @@ spk project install-lifecycle-pipeline --org-name $AZDO_ORG --devops-project $AZ
266
266
pipeline_created=$( az pipelines show --name $lifecycle_pipeline_name --org $AZDO_ORG_URL --p $AZDO_PROJECT )
267
267
268
268
# Verify lifecycle pipeline run was successful
269
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 180 15
269
+ verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 180 15 1
270
270
271
271
# Approve pull request from lifecycle pipeline
272
272
echo " Finding pull request that $lifecycle_pipeline_name pipeline created..."
@@ -288,7 +288,7 @@ spk service install-build-pipeline --org-name $AZDO_ORG -u $remote_repo_url -d $
288
288
pipeline_created=$( az pipelines show --name $frontend_pipeline_name --org $AZDO_ORG_URL --p $AZDO_PROJECT )
289
289
290
290
# Verify frontend service pipeline run was successful
291
- verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $frontend_pipeline_name 300 15
291
+ verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $frontend_pipeline_name 300 15 1
292
292
293
293
echo " Finding pull request that $frontend_pipeline_name pipeline created..."
294
294
approve_pull_request $AZDO_ORG_URL $AZDO_PROJECT " Updating $FrontEnd image tag to master"
@@ -297,6 +297,8 @@ approve_pull_request $AZDO_ORG_URL $AZDO_PROJECT "Updating $FrontEnd image tag t
297
297
# #################################
298
298
# App Mono Repo Service Revision START
299
299
# #################################
300
+ cd $TEST_WORKSPACE
301
+ cd $mono_repo_dir
300
302
301
303
echo " Creating service revision"
302
304
git branch $branchName
@@ -342,6 +344,65 @@ validate_file "$TEST_WORKSPACE/$manifests_dir/prod/$mono_repo_dir/$FrontEndCompl
342
344
# Eventually add rings as some stage....
343
345
# --------------------------------
344
346
347
+ # Get the current pipeline/build id at this stage. This will be used by the introspection integration test.
348
+ pipeline1id=$( az pipelines build list --definition-ids $pipeline_id --organization $AZDO_ORG_URL --project $AZDO_PROJECT | jq ' .[0].id' )
349
+
350
+ # #################################
351
+ # App Mono Repo create ring
352
+ # #################################
353
+ # verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 400 15 2
354
+ # echo "Finding pull request that $lifecycle_pipeline_name pipeline created..."
355
+ # approve_pull_request $AZDO_ORG_URL $AZDO_PROJECT "Reconciling HLD"
356
+
357
+ # # Wait for fabrikam-hld-to-fabrikam-manifests pipeline to finish
358
+ # verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 400 15 4
359
+ # ring_name=qa-ring
360
+
361
+ # cd $TEST_WORKSPACE
362
+ # cd $mono_repo_dir
363
+
364
+ # echo "Create ring"
365
+ # git checkout master
366
+ # git pull origin master
367
+ # spk ring create $ring_name
368
+ # git add -A
369
+ # git commit -m "Adding test ring"
370
+ # git push -u origin --all
371
+
372
+ # # Wait for the lifecycle pipeline to finish and approve the pull request
373
+ # verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $lifecycle_pipeline_name 300 15 3
374
+ # echo "Finding pull request that $lifecycle_pipeline_name pipeline created..."
375
+ # approve_pull_request $AZDO_ORG_URL $AZDO_PROJECT "Reconciling HLD"
376
+
377
+ # # Wait for fabrikam-hld-to-fabrikam-manifests pipeline to finish
378
+ # verify_pipeline_with_poll $AZDO_ORG_URL $AZDO_PROJECT $hld_to_manifest_pipeline_name 300 15 5
379
+
380
+ # # Verify the file was added in the manifest repository
381
+ # cd $TEST_WORKSPACE
382
+ # cd $manifests_dir
383
+
384
+ # git pull origin master
385
+
386
+ # ring_dir="prod/$mono_repo_dir/fabrikam-acme-frontend/$ring_name"
387
+ # if [ ! -d "$ring_dir" ]; then
388
+ # echo "Directory '$ring_dir' does not exist"
389
+ # exit 1
390
+ # fi
391
+
392
+ # echo "Validating ingress routes"
393
+
394
+ # validate_file "$ring_dir/static.yaml" "'PathPrefix(\`/fabrikam-acme-frontend\`) && Headers(\`Ring\`, \`qa-ring\`)'"
395
+
396
+ # echo "Successfully created a ring."
397
+
398
+ # --------------------------------
399
+ # Push the ring branch
400
+ # git branch $ring_name
401
+ # git checkout $ring_name
402
+
403
+
404
+ # --------------------------------
405
+
345
406
echo " Successfully reached the end of the service validations scripts."
346
407
347
408
# ##################################
365
426
fi
366
427
367
428
# Compare $pipeline_id with the data returned by get.
368
- pipeline1id= $( az pipelines build list --definition-ids $pipeline_id --organization $AZDO_ORG_URL --project $AZDO_PROJECT | jq ' .[0].id ' )
429
+
369
430
listofIds=$( cat file.json | jq ' .[].srcToDockerBuild.id' )
370
431
371
432
if [[ $listofIds == * " $pipeline1id " * ]]; then
0 commit comments