Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating fluentui-system-icons build pipeline to 1es-pt #761

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions android/azure-maven-publish-1espt.yml
Original file line number Diff line number Diff line change
@@ -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
joyeeta26 marked this conversation as resolved.
Show resolved Hide resolved
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)"
Loading