Skip to content

chore: update pipeline to trigger only on PRs to dev branch #1

chore: update pipeline to trigger only on PRs to dev branch

chore: update pipeline to trigger only on PRs to dev branch #1

Workflow file for this run

trigger: none
pr:
branches:
include:
- dev
variables:
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
LinuxContainerImage: "mcr.microsoft.com/onebranch/cbl-mariner/build:2.0" # Docker image which is used to build the project https://aka.ms/obpipelines/containers
WindowsContainerImage: "onebranch.azurecr.io/windows/ltsc2019/vse2022:latest" # Docker image which is used to build the project https://aka.ms/obpipelines/containers
DEBIAN_FRONTEND: noninteractive
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}:
sourceBranchName: ${{ replace(variables['Build.SourceBranch'], 'refs/heads/', '') }}
${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }}:
sourceBranchName: ${{ replace(variables['System.PullRequest.SourceBranch'], 'refs/heads/', '') }}
resources:
repositories:
- repository: templates
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
- repository: 1P
type: git
name: IDDP/msal-javascript-1p
ref: master
extends:
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
parameters:
globalSdl:
policheck:
break: true
stages:
- stage: build_and_test
displayName: "MSAL JS Build and Test"
variables:
Codeql.Enabled: true
jobs:
- template: .pipelines/templates/ci-template.yml@1P
parameters:
libName: msal-common
path: "lib/"
- template: .pipelines/templates/ci-template.yml@1P
parameters:
libName: msal-browser
path: "lib/"
- template: .pipelines/templates/ci-template.yml@1P
parameters:
libName: msal-browser-1p
subdirectory: ""
- template: .pipelines/templates/ci-template.yml@1P
parameters:
libName: msal-node
path: "lib/"
- template: .pipelines/templates/ci-template.yml@1P
parameters:
libName: msal-react
path: "lib/"
- template: .pipelines/templates/ci-template.yml@1P
parameters:
libName: msal-angular
path: "lib/"
- template: .pipelines/templates/ci-template.yml@1P
parameters:
libName: msal-node-extensions
path: "extensions/"
os: ["linux", "windows", "macOs"]