Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit de63a8b

Browse files
Merge pull request #105 from hmcts/debug-keys
debug azure creds being sent to artefact
2 parents a3dd09e + 0e9d103 commit de63a8b

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

.github/workflows/ci-build-publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: CI Build and Publish
22

33
on:
44
workflow_call:
5+
secrets:
6+
AZURE_DEVOPS_ARTIFACT_USERNAME:
7+
required: true
8+
AZURE_DEVOPS_ARTIFACT_TOKEN:
9+
required: true
10+
HMCTS_ADO_PAT:
11+
required: true
512
inputs:
613
is_release:
714
required: false
@@ -66,12 +73,12 @@ jobs:
6673
run: |
6774
echo "Building with ARTEFACT_VERSION=$ARTEFACT_VERSION"
6875
69-
gradle build -DARTEFACT_VERSION=$ARTEFACT_VERSION
76+
gradle build -DARTEFACT_VERSION=$ARTEFACT_VERSION
7077
7178
if [ -z "AZURE_DEVOPS_ARTIFACT_USERNAME" ]; then
7279
echo "::warning::AZURE_DEVOPS_ARTIFACT_USERNAME is null or not set"
7380
fi
74-
81+
7582
if [ -z "$AZURE_DEVOPS_ARTIFACT_TOKEN" ]; then
7683
echo "::warning::AZURE_DEVOPS_ARTIFACT_TOKEN is null or not set"
7784
fi

.github/workflows/ci-draft.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
jobs:
1414
ci-draft:
1515
uses: ./.github/workflows/ci-build-publish.yml
16+
secrets:
17+
AZURE_DEVOPS_ARTIFACT_USERNAME: ${{ secrets.AZURE_DEVOPS_ARTIFACT_USERNAME }}
18+
AZURE_DEVOPS_ARTIFACT_TOKEN: ${{ secrets.AZURE_DEVOPS_ARTIFACT_TOKEN }}
19+
HMCTS_ADO_PAT: ${{ secrets.HMCTS_ADO_PAT }}
1620
with:
1721
is_publish: ${{ github.event_name == 'push' }}
1822
trigger_docker: ${{ github.event_name == 'push' }}

.github/workflows/ci-released.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
jobs:
99
ci-release:
1010
uses: ./.github/workflows/ci-build-publish.yml
11+
secrets:
12+
AZURE_DEVOPS_ARTIFACT_USERNAME: ${{ secrets.AZURE_DEVOPS_ARTIFACT_USERNAME }}
13+
AZURE_DEVOPS_ARTIFACT_TOKEN: ${{ secrets.AZURE_DEVOPS_ARTIFACT_TOKEN }}
14+
HMCTS_ADO_PAT: ${{ secrets.HMCTS_ADO_PAT }}
1115
with:
1216
is_release: true
1317
is_publish: true

build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ def azureADOArtifactToken = System.getenv("AZURE_DEVOPS_ARTIFACT_TOKEN")
2929
// println " - GITHUB_TOKEN=${githubToken != null ? ' ✔ FOUND' : '❌'}"
3030
// println " - GITHUB_REPOSITORY=${githubRepo != null ? ' ✔ FOUND' : '❌'}"
3131

32-
// println "Azure ADO publishing required environment variables:"
33-
// println " - AZURE_DEVOPS_ARTIFACT_USERNAME=${azureADOArtifactActor != null ? ' ✔ FOUND' : '❌'}"
34-
// println " - AZURE_DEVOPS_ARTIFACT_TOKEN=${azureADOArtifactToken != null ? ' ✔ FOUND' : '❌'}"
35-
32+
//println "Azure ADO publishing required environment variables:"
33+
//println " - AZURE_DEVOPS_ARTIFACT_USERNAME=${!azureADOArtifactActor || azureADOArtifactActor.isBlank() ? '❌NULL or EMPTY' : ' ✔ FOUND'}"
34+
//println " - AZURE_DEVOPS_ARTIFACT_USERNAME=${!azureADOArtifactToken || azureADOArtifactToken.isBlank() ? '❌NULL or EMPTY' : ' ✔ FOUND'}"
3635

3736
java {
3837
sourceCompatibility = JavaVersion.VERSION_21
@@ -226,7 +225,7 @@ dependencies {
226225
compileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion
227226
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion
228227

229-
testImplementation(platform('org.junit:junit-bom:5.13.0'))
228+
testImplementation(platform('org.junit:junit-bom:5.13.1'))
230229
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
231230
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '3.5.0', {
232231
exclude group: 'junit', module: 'junit'

0 commit comments

Comments
 (0)