Skip to content

Commit

Permalink
Update to valid config.
Browse files Browse the repository at this point in the history
  • Loading branch information
LSDima committed Oct 10, 2024
1 parent d86a0af commit b62c5fb
Showing 1 changed file with 67 additions and 56 deletions.
123 changes: 67 additions & 56 deletions .azure-devops/nova-facade-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ resources:
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

pr: none
trigger:
- main
pr: none
schedules:
- cron: 0 0 * * Mon
displayName: Nova-Facade weekly pipeline validation
Expand All @@ -21,64 +21,75 @@ variables:
- name: tags
value: production,externalfacing
- name: serviceTreeID
value: ade7d667-42f5-485a-91a9-f1dc6482a9b0
value: 6F8CD842-E117-412F-BAE4-56A3B6166594
- name: adoNpmFeedBaseUrl
value: https://pkgs.dev.azure.com/domoreexp/_apis/packaging/feeds/npm-mirror

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
stages:
- stage: Release_And_Compliance
jobs:
- job: compliance
displayName: Compliance checks
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
steps:
- template: ./steps/service-tree.yml@self
parameters:
serviceTreeID: $(serviceTreeID)
- template: ./steps/compliance-steps.yml@self
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates

- job: Release
parameters:
sdl:
sourceAnalysisPool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
stages:
- stage: release
variables:
- group: oss-secrets
dependsOn: Compliance
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: ubuntu-latest
os: linux
templateContext:
type: releaseJob
isProduction: true
steps:
- template: ./steps/service-tree.yml@self
parameters:
serviceTreeID: $(serviceTreeID)
- script: yarn
displayName: yarn
- script: |
yarn ci
displayName: build and test [test]
- script: |
git config user.email "[email protected]"
git config user.name "Graphitation Service Account"
git remote set-url origin https://gql-svc:$(ossGithubPAT)@github.com/microsoft/nova-facade.git
displayName: Configure git for release
- script: yarn release -y -n $(ossNpmToken) --access public
displayName: Release
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 📒 Generate Manifest
inputs:
BuildDropPath: $(System.DefaultWorkingDirectory)
- task: 1ES.PublishPipelineArtifact@1
displayName: 📒 Publish Manifest
inputs:
artifactName: SBom-$(System.JobAttempt)
targetPath: $(System.DefaultWorkingDirectory)/_manifest
- template: ./steps/pierce-ado-npm-mirror-cache.yml@self
parameters:
adoNpmFeedPat: $(adoNpmFeedPat)
adoNpmFeedBaseUrl: $(adoNpmFeedBaseUrl)
# OPTIONAL: Set this varibale to 'true' to enable signing in a target stage.
# Remove if signing is not required.
Build.ESRP.CodeSign.Enabled: true
# OPTIONAL: To disable required tools not applicable in the pipeline set to false.
# Supported values: BinSkim, Roslyn, ESLint, PREFast.
Build.SDL.<Roslyn>.Enabled: false
Build.SDL.<ESLint>.Enabled: true
jobs:
- job: compliance
displayName: Compliance checks
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
steps:
- template: .azure-devops/steps/service-tree.yml@self
parameters:
serviceTreeID: $(serviceTreeID)

- job: Release
variables:
- group: oss-secrets
dependsOn: Compliance
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: ubuntu-latest
os: linux
steps:
- template: .azure-devops/steps/service-tree.yml@self
parameters:
serviceTreeID: $(serviceTreeID)
- script: yarn
displayName: yarn
- script: |
yarn ci
displayName: build and test [test]
- script: |
git config user.email "[email protected]"
git config user.name "Graphitation Service Account"
git remote set-url origin https://gql-svc:$(ossGithubPAT)@github.com/microsoft/nova-facade.git
displayName: Configure git for release
- script: yarn release -y -n $(ossNpmToken) --access public
displayName: Release
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 📒 Generate Manifest
inputs:
BuildDropPath: $(System.DefaultWorkingDirectory)
- task: 1ES.PublishPipelineArtifact@1
displayName: 📒 Publish Manifest
inputs:
artifactName: SBom-$(System.JobAttempt)
targetPath: $(System.DefaultWorkingDirectory)/_manifest
- template: .azure-devops/steps/pierce-ado-npm-mirror-cache.yml@self
parameters:
adoNpmFeedPat: $(adoNpmFeedPat)
adoNpmFeedBaseUrl: $(adoNpmFeedBaseUrl)

0 comments on commit b62c5fb

Please sign in to comment.