Skip to content

Commit f7402d9

Browse files
spasalfgheyselsstijnmoreels
authored
docs: updated Azure DevOps feature docs regarding installing Arcus packages in pipelines (#285)
Co-authored-by: Frederik Gheysels <frederik.gheysels@telenet.be> Co-authored-by: Stijn Moreels <9039753+stijnmoreels@users.noreply.github.com> Co-authored-by: Alex Spassov Simeonov <alex.spassov@codit.eu>
1 parent 695d69a commit f7402d9

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

docs/preview/02-Features/powershell/azure-devops.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ This module provides the following capabilities:
1919
To have access to the following features, you have to import the module:
2020

2121
```powershell
22-
PS> Install-Module -Name Arcus.Scripting.DevOps
22+
PS> Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
23+
PS> Install-Module -Name Arcus.Scripting.DevOps -Repository PSGallery -AllowClobber
2324
```
2425

2526
## Setting a variable in an Azure DevOps pipeline
@@ -90,6 +91,8 @@ To be able to use this variable, it must be explicitly added to the environment-
9091

9192
> ⚠ When you are using a Linux agent, you need to pass other environment variables that you want to use as well, because these are not available. To be able to use the `ArmOutputs` environment variable, it must be explicitly added to the environment-variables.
9293
94+
> 💡 We have seen a much better performance when using Linux agents, and would recommend using Linux agents when possible.
95+
9396
Example of how to use this function in an Azure DevOps pipeline:
9497

9598
```yaml
@@ -101,7 +104,8 @@ Example of how to use this function in an Azure DevOps pipeline:
101104
inputs:
102105
targetType: 'inline'
103106
script: |
104-
Install-Module -Name Arcus.Scripting.DevOps -Force
107+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
108+
Install-Module -Name Arcus.Scripting.DevOps -Repository PSGallery -AllowClobber
105109
106110
Set-AzDevOpsArmOutputsToVariableGroup -VariableGroupName "my-variable-group"
107111
```
@@ -144,6 +148,8 @@ This function is intended to be used from an Azure DevOps pipeline.
144148

145149
> ⚠ When you are using a Linux agent, you need to pass other environment variables that you want to use as well, because these are not available. To be able to use the `ArmOutputs` environment variable, it must be explicitly added to the environment-variables.
146150

151+
> 💡 We have seen a much better performance when using Linux agents, and would recommend using Linux agents when possible.
152+
147153
Example of how to use this function in an Azure DevOps pipeline:
148154

149155
```yaml
@@ -154,7 +160,8 @@ Example of how to use this function in an Azure DevOps pipeline:
154160
inputs:
155161
targetType: 'inline'
156162
script: |
157-
Install-Module -Name Arcus.Scripting.DevOps -Force
163+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
164+
Install-Module -Name Arcus.Scripting.DevOps -Repository PSGallery -AllowClobber
158165
159166
Set-AzDevOpsArmOutputsToPipelineVariables
160167
```
@@ -192,7 +199,8 @@ Example of how to use this function in an Azure DevOps pipeline:
192199
targetType: 'inline'
193200
pwsh: true
194201
script: |
195-
Install-Module -Name Arcus.Scripting.DevOps -Force
202+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
203+
Install-Module -Name Arcus.Scripting.DevOps -Repository PSGallery -AllowClobber
196204
197205
$project = "$(System.TeamProjectId)"
198206
$buildId = $(Build.BuildId)

0 commit comments

Comments
 (0)