From 5f00c5b2005a18711f411de9963d7e9279411ab0 Mon Sep 17 00:00:00 2001 From: "Prabha S (ps)" Date: Thu, 11 Sep 2025 00:20:16 -0700 Subject: [PATCH 1/4] Update the release version and change the azure subscription of SafeguardBuildSecrets keyvault --- build-publish.yml | 4 ++-- pipeline-templates/global-variables.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-publish.yml b/build-publish.yml index 2428d35c..1822495a 100644 --- a/build-publish.yml +++ b/build-publish.yml @@ -75,7 +75,7 @@ jobs: - template: pipeline-templates/linux-build-steps.yml - task: AzureKeyVault@2 inputs: - azureSubscription: 'OneIdentity.RD.SBox.Safeguard-ServiceConnection' + azureSubscription: 'SafeguardOpenSource' KeyVaultName: 'SafeguardBuildSecrets' SecretsFilter: 'DockerHubAccessToken,DockerHubPassword' displayName: 'Get Docker Hub Access Token from Sandbox Azure Key Vault' @@ -109,7 +109,7 @@ jobs: - template: pipeline-templates/linux-build-steps.yml - task: AzureKeyVault@2 inputs: - azureSubscription: 'OneIdentity.RD.SBox.Safeguard-ServiceConnection' + azureSubscription: 'SafeguardOpenSource' KeyVaultName: 'SafeguardBuildSecrets' SecretsFilter: 'DockerHubAccessToken,DockerHubPassword' displayName: 'Get Docker Hub Access Token from Sandbox Azure Key Vault' diff --git a/pipeline-templates/global-variables.yml b/pipeline-templates/global-variables.yml index 301be949..b15445c1 100644 --- a/pipeline-templates/global-variables.yml +++ b/pipeline-templates/global-variables.yml @@ -12,9 +12,9 @@ # azure pipeline Reached heap limit Allocation failed - JavaScript heap out of memory The command "npm install" exited with code 134 variables: - name: semanticVersion - value: "8.0.0" + value: "8.2.0" - name: isPrerelease - value: ${{ true }} + value: ${{ false }} - name: isReleaseBranch value: $[ or( eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release-') ) ] - name: NODE_OPTIONS From 8d4a99bceecf91824b8cb7420cf94b181d092317 Mon Sep 17 00:00:00 2001 From: "Prabha S (ps)" Date: Thu, 11 Sep 2025 20:26:30 -0700 Subject: [PATCH 2/4] Fix the docker pipeline failure issue --- build-publish.yml | 3 --- pipeline-templates/linux-build-steps.yml | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/build-publish.yml b/build-publish.yml index 1822495a..d66464db 100644 --- a/build-publish.yml +++ b/build-publish.yml @@ -87,8 +87,6 @@ jobs: script: | docker login -u danpetersonoi --password-stdin <<<$(DockerHubAccessToken) 2>/dev/null - docker tag oneidentity/safeguard-devops:$(VersionString)-alpine3.12 oneidentity/safeguard-devops:$(VersionString)-alpine - docker tag oneidentity/safeguard-devops:$(VersionString)-alpine3.12 oneidentity/safeguard-devops:latest docker push oneidentity/safeguard-devops:$(VersionString)-alpine3.12 docker push oneidentity/safeguard-devops:$(VersionString)-alpine docker push oneidentity/safeguard-devops:latest @@ -121,7 +119,6 @@ jobs: script: | docker login -u danpetersonoi --password-stdin <<<$(DockerHubAccessToken) 2>/dev/null - docker tag oneidentity/safeguard-devops:$(VersionString)-ubuntu20.04 oneidentity/safeguard-devops:$(VersionString)-ubuntu docker push oneidentity/safeguard-devops:$(VersionString)-ubuntu20.04 docker push oneidentity/safeguard-devops:$(VersionString)-ubuntu diff --git a/pipeline-templates/linux-build-steps.yml b/pipeline-templates/linux-build-steps.yml index 7ff6a942..3d8ac132 100644 --- a/pipeline-templates/linux-build-steps.yml +++ b/pipeline-templates/linux-build-steps.yml @@ -14,8 +14,9 @@ steps: - task: Bash@3 inputs: - targetType: 'filePath' - filePath: '$(System.DefaultWorkingDirectory)/build-docker.sh' - arguments: $(imageType) $(VersionString) + targetType: 'inline' + script: | + $(System.DefaultWorkingDirectory)/build-docker.sh $(imageType) $(VersionString) + docker tag oneidentity/safeguard-devops:$(VersionString)-$(imageType) oneidentity/safeguard-devops:latest failOnStderr: true displayName: 'Building docker image' From ba54ff9e08d2b886df25e118709eb349d86572fa Mon Sep 17 00:00:00 2001 From: "Prabha S (ps)" Date: Mon, 15 Sep 2025 03:53:30 -0700 Subject: [PATCH 3/4] Fixed the Docker pipeline failure --- build-publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/build-publish.yml b/build-publish.yml index d66464db..97e7f20c 100644 --- a/build-publish.yml +++ b/build-publish.yml @@ -87,7 +87,6 @@ jobs: script: | docker login -u danpetersonoi --password-stdin <<<$(DockerHubAccessToken) 2>/dev/null - docker push oneidentity/safeguard-devops:$(VersionString)-alpine3.12 docker push oneidentity/safeguard-devops:$(VersionString)-alpine docker push oneidentity/safeguard-devops:latest @@ -119,7 +118,6 @@ jobs: script: | docker login -u danpetersonoi --password-stdin <<<$(DockerHubAccessToken) 2>/dev/null - docker push oneidentity/safeguard-devops:$(VersionString)-ubuntu20.04 docker push oneidentity/safeguard-devops:$(VersionString)-ubuntu docker logout From ef080c976e4af9aa65881b0e66b03811d8c47c5e Mon Sep 17 00:00:00 2001 From: "Prabha S (ps)" Date: Tue, 16 Sep 2025 02:29:30 -0700 Subject: [PATCH 4/4] Reset the isPrerelease --- pipeline-templates/global-variables.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline-templates/global-variables.yml b/pipeline-templates/global-variables.yml index b15445c1..3e0bbcf2 100644 --- a/pipeline-templates/global-variables.yml +++ b/pipeline-templates/global-variables.yml @@ -14,7 +14,7 @@ variables: - name: semanticVersion value: "8.2.0" - name: isPrerelease - value: ${{ false }} + value: ${{ true }} - name: isReleaseBranch value: $[ or( eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release-') ) ] - name: NODE_OPTIONS