Skip to content

Commit

Permalink
Revert "Update azure-maven-publish.yml for Azure Pipelines to be 1ESP…
Browse files Browse the repository at this point in the history
…T Compli…" (#714)

This reverts commit 89f11f2.
  • Loading branch information
praveen970 committed Apr 30, 2024
1 parent 0128d79 commit ad25294
Showing 1 changed file with 48 additions and 62 deletions.
110 changes: 48 additions & 62 deletions android/azure-maven-publish.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,50 @@
pr: none
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
jobs:
- job: Build
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: stage
jobs:
- job: Build
variables:
- name: BUILDSECMON_OPT_IN
value: true
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish library artifact to pipeline'
targetPath: 'android/library/build/artifacts/com/microsoft/design'
artifactName: 'aar'
publishLocation: 'pipeline'
steps:
- task: Bash@3
displayName: "Base64 decodes and pipes the GPG key content into the secret file"
env:
GPG_KEY_CONTENT: $(gpgContent)
SIGNING_SECRET_KEY_RING_FILE: $(gpgSecretFilePath)
inputs:
targetType: "inline"
script: |
# Write your commands here
sudo bash -c "echo '$GPG_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
ls
- task: Gradle@3
inputs:
gradleWrapperFile: "android/gradlew"
workingDirectory: 'android'
tasks: "assembleRelease"
options: "-PversionName=$(VERSION_NAME)"
publishJUnitResults: false
javaHomeOption: "JDKVersion"
jdkVersionOption: "$(jdkVersion)"
sonarQubeRunAnalysis: false
spotBugsAnalysis: false
- task: Gradle@2
displayName: Gradle publish
inputs:
gradleWrapperFile: 'android/gradlew'
workingDirectory: 'android'
tasks: 'publish'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: "$(jdkVersion)"
sonarQubeRunAnalysis: false
options: "-PGPGSigningKeyID=$(gpgSignKey) -PGPGSigningPassword=$(gpgSignPassword) -PSigningSecretKeyRingFile=$(gpgSecretFileParentPath)"
vmImage: ubuntu-latest
variables:
- name: BUILDSECMON_OPT_IN
value: true
steps:
- task: Bash@3
displayName: "Base64 decodes and pipes the GPG key content into the secret file"
env:
GPG_KEY_CONTENT: $(gpgContent)
SIGNING_SECRET_KEY_RING_FILE: $(gpgSecretFilePath)
inputs:
targetType: "inline"
script: |
# Write your commands here
sudo bash -c "echo '$GPG_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
ls
- task: Gradle@3
inputs:
gradleWrapperFile: "android/gradlew"
workingDirectory: 'android'
tasks: "assembleRelease"
options: "-PversionName=$(VERSION_NAME)"
publishJUnitResults: false
javaHomeOption: "JDKVersion"
jdkVersionOption: "$(jdkVersion)"
sonarQubeRunAnalysis: false
spotBugsAnalysis: false
- task: Gradle@2
displayName: Gradle publish
inputs:
gradleWrapperFile: 'android/gradlew'
workingDirectory: 'android'
tasks: 'publish'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: "$(jdkVersion)"
sonarQubeRunAnalysis: false
options: "-PGPGSigningKeyID=$(gpgSignKey) -PGPGSigningPassword=$(gpgSignPassword) -PSigningSecretKeyRingFile=$(gpgSecretFileParentPath)"

- task: PublishPipelineArtifact@1
displayName: Publish library artifact to pipeline
inputs:
targetPath: 'android/library/build/artifacts/com/microsoft/design'
artifact: 'aar'
publishLocation: 'pipeline'

0 comments on commit ad25294

Please sign in to comment.