From e55ff73f3878da53b0260225c1aaee7d7bdd01b7 Mon Sep 17 00:00:00 2001 From: Joyeeta Pal Date: Mon, 3 Feb 2025 13:40:45 +0530 Subject: [PATCH] Update azure-maven-publish-1espt.yml for Azure Pipelines (#767) * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish.yml * Update azure-maven-publish.yml * Update azure-maven-publish.yml * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines * Update azure-maven-publish-1espt.yml for Azure Pipelines --- android/azure-maven-publish-1espt.yml | 25 ++++++++++++++----------- android/azure-maven-publish.yml | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/android/azure-maven-publish-1espt.yml b/android/azure-maven-publish-1espt.yml index 7d02071399..6ceda90816 100644 --- a/android/azure-maven-publish-1espt.yml +++ b/android/azure-maven-publish-1espt.yml @@ -8,6 +8,9 @@ resources: extends: template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates parameters: + sdl: + spotBugs: + enabled: false pool: name: Azure-Pipelines-1ESPT-ExDShared image: windows-2022 @@ -21,13 +24,6 @@ extends: variables: - name: BUILDSECMON_OPT_IN value: true - templateContext: - outputs: - - output: pipelineArtifact - displayName: 'Publish library artifact to pipeline' - targetPath: '$(Build.ArtifactStagingDirectory)' - artifactName: 'aar' - publishLocation: 'pipeline' steps: - task: Bash@3 displayName: "Base64 decodes and pipes the GPG key content into the secret file" @@ -51,14 +47,21 @@ extends: jdkVersionOption: "$(jdkVersion)" sonarQubeRunAnalysis: false spotBugsAnalysis: false - - task: Gradle@2 - displayName: Gradle publish + - task: Gradle@3 + displayName: "generate artifacts and publish to feed" inputs: - gradleWrapperFile: 'android/gradlew' + gradleWrapperFile: "android/gradlew" workingDirectory: 'android' tasks: 'publish' publishJUnitResults: false javaHomeOption: 'JDKVersion' jdkVersionOption: "$(jdkVersion)" sonarQubeRunAnalysis: false - options: "-PGPGSigningKeyID=$(gpgSignKey) -PGPGSigningPassword=$(gpgSignPassword) -PSigningSecretKeyRingFile=$(gpgSecretFileParentPath)" \ No newline at end of file + options: "-PGPGSigningKeyID=$(gpgSignKey) -PGPGSigningPassword=$(gpgSignPassword) -PSigningSecretKeyRingFile=$(gpgSecretFileParentPath)" + templateContext: + outputs: + - output: pipelineArtifact + displayName: 'Publish library artifact to pipeline' + targetPath: 'android/library/build/artifacts/com/microsoft/design' + artifactName: 'aar' + publishLocation: 'pipeline' \ No newline at end of file diff --git a/android/azure-maven-publish.yml b/android/azure-maven-publish.yml index b83f55f51f..edf67ad0ab 100644 --- a/android/azure-maven-publish.yml +++ b/android/azure-maven-publish.yml @@ -28,7 +28,7 @@ jobs: javaHomeOption: "JDKVersion" jdkVersionOption: "$(jdkVersion)" sonarQubeRunAnalysis: false - spotBugsAnalysis: false + spotBugsAnalysis: false - task: Gradle@2 displayName: Gradle publish inputs: