-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
33 lines (32 loc) · 897 Bytes
/
bitbucket-pipelines.yml
File metadata and controls
33 lines (32 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
image: mcr.microsoft.com/powershell:alpine-3.14
pipelines:
default:
- step:
name: Unit Tests
script:
- pwsh -File ./Run-UnitTests.ps1
custom:
branch-restrictions:
- variables:
- name: "RepositoryPattern"
- name: "BranchPattern"
default: master
allowed-values:
- feature/*
- master
- main
- name: "AllowedGroup"
default: developers
allowed-values:
- administrators
- developers
- step:
name: "Apply branch restrictions"
max-time: 120
trigger: automatic
size: "1x"
script:
- scripts/Update-BitbucketBrachRestrictions.ps1
-Repository $RepositoryPattern
-Branch $BranchPattern
-Groups $AllowedGroup