You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds support to run the Publish to Environment from a PR by passing a
string like "PR_x" in the artifact version input.
A PR with id x will be found, and artifacts from latest successful build
in that PR will be used if it exist.
---------
Co-authored-by: Freddy Kristiansen <[email protected]>
Write-Host"::Warning::Ignoring environment $($deploymentSettings.EnvironmentName), which is a production environment, as test apps can only be deployed to sandbox environments"
Write-Host"::Warning::Ignoring environment $($deploymentSettings.EnvironmentName), which is a production environment, as deploying from a PR is only supported in sandbox environments"
throw"Latest PR build for PR $prId not found, not completed or not successful - Please re-run this workflow when you have a successful build on PR_$prId ($prLink)"
throw"Build artifacts are expired, please re-run the pull request build ($prBuildLink). Note that you can control the retention days of short-lived artifacts using the AL-Go setting ShortLivedArtifactsRetentionDays. See $shortLivedRetentionSettingLink"
93
+
}
94
+
95
+
if ($prArtifacts) {
96
+
OutputMessageAndArray -message "Artifacts from pr build"-arrayOfStrings $prArtifacts.Name
97
+
}
98
+
if ($lastKnownGoodBuildArtifacts) {
99
+
OutputMessageAndArray -message "Artifacts from last known good build"-arrayOfStrings $lastKnownGoodBuildArtifacts.Name
0 commit comments