From ff8519732eb34d955df1de784b6abb1e02f90042 Mon Sep 17 00:00:00 2001 From: Ieuan Byers Date: Mon, 1 Jun 2026 09:54:31 +0100 Subject: [PATCH] docs: add note on jenkins deployment controls --- .DS_Store | Bin 0 -> 6148 bytes docs/index.md | 70 ++++++++++++++++++++++++++------------------------ 2 files changed, 36 insertions(+), 34 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..822178ed4667b32cb3dc52dbd01f38621777d72a GIT binary patch literal 6148 zcmeHKy-ve05I&axK`?Y=^j-<6ZxGt>1bqRNMrx57xe|0l@_={13#ma#(UPC9?d{rE0ls$5M(YP70{M13O4p^Uu~EL(*AtR3kE%NbDd9*fy(>}yO}RtrLeTgn_*?fSJvbpL/!U@8ftCUOK4>Uo5zu;cpAIbU2ms7rc7kg@ zOK^@3SOl~l;ejZh3iPQe95Iwnhh2xbBB1r?(@D9?*e6t0;e?`Gb=b8FCslZqRTvNk zQU(tEZJ+1=)$a3unk09^fH3f{7*JU`DMxsuFk3qh$Fo*Luc0g)XFawlxNxHwu{?^; bp-y1ed;u&1T92?m **Note:** Before your repository will appear in Jenkins, it must be added to the [Jenkins deployment controls allowlist](https://hmcts.github.io/cloud-native-platform/onboarding/team/jenkins.html). Follow the onboarding steps there to raise a pull request adding your repository to `deployment-controls.yml`. + 1. Log in to Sandbox Jenkins and select [HMCTS - J to Z](https://sandbox-build.platform.hmcts.net/job/HMCTS_j_to_z_Sandbox/) folder. Check if your repository is there, if it's not then scan the organization by clicking on `Scan Organization Now`. -The new repository should be listed under repositories after the scan finishes. -Logs can be monitored under `Scan Organization Log`. + The new repository should be listed under repositories after the scan finishes. + Logs can be monitored under `Scan Organization Log`. 2. Click on your repository name. @@ -106,25 +108,25 @@ More information on how we configure Azure Front Door can be found in [The HMCTS 3. Click the pencil icon to edit the file in GitHub. 4. Add the below snippet to the `public_lb_config` and remember to put a comma after the previous entry. - ``` - { - name = "labs-YourGitHubUsername-nodejs" - ports = [80] - } - ``` + ``` + { + name = "labs-YourGitHubUsername-nodejs" + ports = [80] + } + ``` 5. Add the below snippet to the `aks_config` and remember to put a comma after the previous entry and increment the index to the next available, otherwise the pipeline will fail on apply. You can get the IP of the frontend app gateway from [here](https://github.com/hmcts/azure-platform-terraform/blob/6f0b867e75b7e9cee9e7adc87084f6911eb5373d/environments/sbox/sbox.tfvars#L20). - ``` - { - name : "labs-YourGitHubUsername-nodejs", - palo_ips : { - "uksouth" : "", - }, - port : [80, ] - index : 9 - } - ``` + ``` + { + name : "labs-YourGitHubUsername-nodejs", + palo_ips : { + "uksouth" : "", + }, + port : [80, ] + index : 9 + } + ``` 6. Scroll down to the bottom to the 'Commit changes' section. Select `Create a new branch for this commit and start a pull request` and give your branch a name. Commit the file and create a pull request. 7. To complete this section you will need your pull request to be approved, someone on your team should be able to do this. If you get stuck, try asking in #platops-code-review on Slack. Once approved and the build has passed then merge your pull request. If you have a permissions issue then ask in #golden-path on Slack. @@ -182,9 +184,9 @@ If all went well, your application should be accessable now. The URL will be (update the GitHub username variable): - ```text - http://labs-$YourGitHubUsername-nodejs.sandbox.platform.hmcts.net - ``` +```text +http://labs-$YourGitHubUsername-nodejs.sandbox.platform.hmcts.net +``` Open this in your browser, you should see: ![Default Page Template](images/DefaultPageTemplate.png) @@ -203,7 +205,7 @@ We are going to update the application by changing the text on the home page. 8. Ask someone in your team to review your pull request and then merge it. 9. Run the Jenkins pipeline against the master branch (this will trigger automatically on the production Jenkins instance). 10. Reload your application in your browser and check it now shows your change to the heading: -![Hello World](images/HelloWorld.png) + ![Hello World](images/HelloWorld.png) ## Feedback