From e6756cef72d95cc7e5f3e40697e5adb070638892 Mon Sep 17 00:00:00 2001 From: Joyeeta Pal Date: Mon, 14 Oct 2024 15:55:54 +0530 Subject: [PATCH] migrating fluentui-system-icons build pipeline to 1es-pt (#761) --- android/azure-maven-publish-1espt.yml | 64 +++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 android/azure-maven-publish-1espt.yml diff --git a/android/azure-maven-publish-1espt.yml b/android/azure-maven-publish-1espt.yml new file mode 100644 index 0000000000..4792ad2813 --- /dev/null +++ b/android/azure-maven-publish-1espt.yml @@ -0,0 +1,64 @@ +pr: none +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + 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)" \ No newline at end of file