From 296f534ad2f869f2cf842b9cc9e65903948dc320 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Mon, 1 Aug 2016 16:51:32 +0100 Subject: [PATCH] Implement new signing process. --- build.xml | 896 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 891 insertions(+), 5 deletions(-) diff --git a/build.xml b/build.xml index ea0ba890..6f95b9a0 100644 --- a/build.xml +++ b/build.xml @@ -3,14 +3,40 @@ + + + + + + + + + + + + Stage 0 Success: Test aggregates built successfully from deferred branch. + + + + + Stage 1 (normal) Success: Lockfile created, API paused, deferred branch merged into immediate and then into master. + + + + + Stage 1 (emergency) Success: Lockfile created, API paused, immediate branch merged into master. + + + + + Stage 1 (manual) Success: Lockfile created, API paused. + + + + + Stage 2 Success: Unsigned aggregates created, copied to orchestrator. Message sent to start signing. + + + + + Stage 3.0 Success: Output directory on keymaster cleared. + + + + + Stage 3.1 Success: Aggregates send to keymaster for processing. + + + + + Stage 3.2 Success: Aggregates signed and verified". + + + + + Stage 3.3 Success: Signed aggregates and stats file comitted to data repository, pushed to origin. + + + + + Stage 4 Success: MDQ cache created (not yet implemented!); all files comitted to data repository. + + + + + Stage 5 Success: Master branch pushed to origin, new tag created and pushed, message sent to start publication. + + + + + Stage 6 Success: Aggregates and MDQ cache pushed and verified. + + + + + + + + + + + + + + + + + + + + + + Checking for presence of lockfile... + + + + + + -> No lockfile, continuing... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + All branches on all repositories, reset HARD. + + + + + Pulling the latest state from all Git repositories (all branches). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Merging deferred branch into immediate branch of data repository. + + + + + + + + + + + + + + + Merging immediate branch into master branch of data repository. + + + + + + + + + + + + + + + Merging master branch into immediate branch of data repository. + + + + + + + + + + + + + + + Merging immediate branch into deferred branch of data repository. + + + + + + + + + + + + + + + Merging master branch into deferred branch of data repository. + + + + + + + + + + + + + + + Merging deferred branch into master branch of data repository. + + + + + + + + + + + + + + + Switching to deferred branch in data repository. + + + + + + + + + Switching to deferred branch in data repository. + + + + + + + + + Switching to immediate branch in data repository. + + + + + + + + + Pushing all branches of data repository to origin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pushing master branch of products repository to origin + + + + + + + + + + + + + + + Pushing master branch of data repository to origin + + + + + + + + + + + + + + + Pushing immediate branch of data repository to origin + + + + + + + + + + + + + + + Pushing deferred branch of data repository to origin + + + + + + + + + + + + + + + Adding all new files in aggregates/ directory of products repository into Git working set. + + + + + + + + + Commiting all changes in products repository. + + + + + + + + + + Commiting all changes in products repository. + + + + + + + + + + Creating new Tag in master branch of products repository. + + + + + + + + + + + + + + + + + + + + + + + Commiting all changes in products repository. + + + + + + + + + + + + + Triggering Jenkins signing job + + + + + + Triggering Jenkins publication Job. + + + + + Clearing output directory. + + + + + + + CPing other files that should be checked into git into orchestrator's aggregates dir. + + + + + + + + + SCPing unsigned files and stats file from output dir to orchestrator's build dir. + + + + + + + + + + + + + + + + SCPing unsigned aggregates from orchestrator's output dir to keymaster's build.dir. + + + + + + + + + + + + + + + SCPing signed aggregates from keymaster's output dir into orchestrator's aggregates dir. + + + + + + + + + + + + + + Creating MDQ cache. + -> Not yet implemented. This is not a failure, other than a moral one + + + + + + + Sending Purge command to Azure CDN. + -> Not yet implemented. This is not a failure, other than a moral one + + + + + + + + Pushing UK Federation metadata files to MD dist. + -> MD1 + + + + + + -> MD2 + + + + + + -> MD3 + + + + + + + + + + Pushing UK Federation other files to web site. + -> Web1 + + + + + + + +