diff --git a/.vsts-ci/releaseBuild.yml b/.vsts-ci/releaseBuild.yml
index 225796fab..a3b794b63 100644
--- a/.vsts-ci/releaseBuild.yml
+++ b/.vsts-ci/releaseBuild.yml
@@ -1,8 +1,6 @@
name: PSReadLine-ModuleBuild-$(Build.BuildId)
-trigger:
- branches:
- include:
- - master
+trigger: none
+pr: none
variables:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
@@ -20,7 +18,9 @@ stages:
- stage: Build
displayName: Build and Sign
pool:
- name: Package ES CodeHub Lab E
+ name: PowerShell1ES
+ demands:
+ - ImageOverride -equals MMS2019
jobs:
- job: build_windows
displayName: Build PSReadLine
@@ -127,10 +127,14 @@ stages:
displayName: Compliance
dependsOn: Build
pool:
- name: Package ES CodeHub Lab E
+ name: PowerShell1ES
+ demands:
+ - ImageOverride -equals MMS2019
jobs:
- job: Compliance_Job
displayName: PSReadLine Compliance
+ variables:
+ - group: APIScan
# APIScan can take a long time
timeoutInMinutes: 240
@@ -176,3 +180,4 @@ stages:
softwareFolder: '$(Pipeline.Workspace)\PSReadLine'
softwareName: 'PSReadLine'
softwareVersion: '$(ModuleVersion)'
+ connectionString: 'RunAs=App;AppId=$(APIScanClient);TenantId=$(APIScanTenant);AppKey=$(APIScanSecret)'
diff --git a/MockPSConsole/MockPSConsole.csproj b/MockPSConsole/MockPSConsole.csproj
index 6f57f1342..ad6fdfc15 100644
--- a/MockPSConsole/MockPSConsole.csproj
+++ b/MockPSConsole/MockPSConsole.csproj
@@ -18,7 +18,7 @@
-
+
diff --git a/PSReadLine/PSReadLine.csproj b/PSReadLine/PSReadLine.csproj
index b1687c5c3..154787bf8 100644
--- a/PSReadLine/PSReadLine.csproj
+++ b/PSReadLine/PSReadLine.csproj
@@ -22,7 +22,7 @@
-
+
diff --git a/Polyfill/Polyfill.csproj b/Polyfill/Polyfill.csproj
index c8334056e..6093b4e0a 100644
--- a/Polyfill/Polyfill.csproj
+++ b/Polyfill/Polyfill.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/test/PSReadLine.Tests.csproj b/test/PSReadLine.Tests.csproj
index f6de2e71f..e4dce6440 100644
--- a/test/PSReadLine.Tests.csproj
+++ b/test/PSReadLine.Tests.csproj
@@ -24,7 +24,7 @@
-
+