diff --git a/dictionary-octopus.txt b/dictionary-octopus.txt
index 21405cefd8..efa01c60a2 100644
--- a/dictionary-octopus.txt
+++ b/dictionary-octopus.txt
@@ -1,40 +1,74 @@
+actionid
apikey
+apikeys
+argparse
astro
bootstrap
bootstrapped
bootstrapper
+bufio
+COMPUTERNAME
+createartifact
+cryptodome
cscfg
cspkg
+csvfile
cutover
datetime
+dateutil
deallocate
deallocated
deploymentprocess
deploymentprocesses
DONTVALIDATEPATH
+echoerror
+elif
+environmentids
+eprintfn
Fargate
+fieldnames
+filedata
FIPS
+getenv
+hasattr
+Hashtable
HKEY
HKLM
hotfix
hotfixes
HSTS
+icontains
+IGNORECASE
+includesystem
+ioutil
+Itoa
ITSM
jwks
kustomization
kustomize
+libraryset
+librarysets
+libraryvariablesets
lifecycles
+Linq
+lstrip
+machinepolicies
+machinepolicy
maxage
+mozroots
msiexec
MTTR
Netscaler
nologs
noninteractive
+notcontains
NTLM
nupkg
+O_WRONLY
Octo
octobak
Octopub
+octopusartifact
octopusdeploy
octopusid
octopuslabs
@@ -46,29 +80,65 @@ OIDC
onlylogs
passout
pkcs
+printfn
+printhighlight
+Println
+printverbose
+printwait
+printwarning
PROGRAMFILES
+projectgroup
+projectgroups
+projecttriggers
+querystring
quickstart
reprioritize
reprovisioned
reprovisioning
RSASSA
+rstrip
Runbook
runbook
+runbookprocesses
+runbookruns
runbooks
+runbooksnapshot
+runbooksnapshots
+runbooksnapshottemplate
Schannel
+scopeduserrole
+scopeduserroles
SIEM
signingkeys
+Sprintf
sthumb
+strconv
+struct
swaggerui
systemprofile
tabpanel
+tagset
+tagsets
+Tasklogs
Trivy
+typeof
+unmarshal
upgradelog
+upgrader
+urllib
+userrole
+userroles
+utcnow
+variableset
+Voltron
WCAG
webfonts
WEBSVR
WIXUI
+woah
workertools
+writeheader
+writerow
xlarge
xmark
xvzf
diff --git a/src/pages/docs/deployments/custom-scripts/index.md b/src/pages/docs/deployments/custom-scripts/index.md
index 985a917fd2..f0c1722570 100644
--- a/src/pages/docs/deployments/custom-scripts/index.md
+++ b/src/pages/docs/deployments/custom-scripts/index.md
@@ -1,9 +1,9 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Custom scripts
-description: Custom scripts allows you to script anything you want using PowerShell, ScriptCS, F#, Python, or Bash.
+description: Custom scripts allows you to script anything you want using PowerShell, Dotnet Script, F#, Python, or Bash.
navOrder: 120
---
@@ -16,7 +16,7 @@ Octopus supports the following scripting environments:
- PowerShell scripts (.ps1)
- Bash scripts (.sh)
- Python scripts (.py)
- - C# scripts (.csx) using [ScriptCS](https://github.com/scriptcs/scriptcs)
+ - C# scripts (.csx) using [dotnet-script](https://github.com/dotnet-script/dotnet-script)
- F# scripts (.fsx)
Octopus can run these scripts on almost any operating system as long as the script runtime is installed and configured correctly.
@@ -66,13 +66,13 @@ The precise details depend on the context within which your script is running, h
4. Any artifacts published by your scripts are transferred back to the Octopus Server.
5. The temporary work directory is cleaned up.
-### Working directories {#Customscripts-Workingdirectories}
+### Working directories
When Calamari executes your scripts, it does so within the context of a working directory. The working directory is a temporary location stored under the home folder you configure when setting up a deployment target or worker.
If you're executing a script contained within a package, the package contents will be uncompressed and copied to this directory, but the working directory is the directory containing the script within it. After the script has finished executing, the working directory will be cleaned up. Learn about [copying the contents of the working directory](/docs/support/copy-working-directory).
-### Security and permissions {#Customscripts-Securityandpermissions}
+### Security and permissions
When scripts are executed, it is in the context of the account that the Tentacle agent or SSH session is running as. Learn about [running Tentacle as a different user account](/docs/infrastructure/deployment-targets/tentacle/windows/running-tentacle-under-a-specific-user-account).
@@ -88,7 +88,7 @@ For example, when Calamari invokes PowerShell.exe, it uses the `Unrestricted` ex
Learn about [script integrity](/docs/security/script-integrity).
-### Developing and testing scripts {#Customscripts-Testingscripts}
+### Developing and testing scripts
We recommend the following approaches for developing and testing your scripts, in order of preference:
@@ -104,7 +104,7 @@ We recommend the following approaches for developing and testing your scripts, i
1. If you are using PowerShell, Octopus has built-in support for PowerShell debugging. Learn about [debugging PowerShell scripts on remote machines using Octopus](/docs/deployments/custom-scripts/debugging-powershell-scripts/debugging-powershell-scripts-on-remote-machines).
2. For all scripting languages, you can tell Octopus to preserve the script and its entire working directory so you can run it interactively. Learn about [copying the working directory](/docs/support/copy-working-directory).
-### Scripts that block deployments {#Customscripts-Scriptsthatblockdeployments}
+### Scripts that block deployments
Sometimes a script launches a service or application that runs continuously. In this case the script does not complete until the application is terminated. When the script is run in an Octopus process, the Octopus task will continue executing until the script exits. In most cases this is undesirable. In order to avoid this behavior the service or application should be launched in a separate process or session, allowing the rest of the process to continue executing. For example:
diff --git a/src/pages/docs/deployments/custom-scripts/logging-messages-in-scripts.md b/src/pages/docs/deployments/custom-scripts/logging-messages-in-scripts.md
index 8b6c93d8dd..aa8a88268d 100644
--- a/src/pages/docs/deployments/custom-scripts/logging-messages-in-scripts.md
+++ b/src/pages/docs/deployments/custom-scripts/logging-messages-in-scripts.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-07-18
+modDate: 2023-10-11
title: Logging messages from scripts
description: When your scripts emit messages Octopus will display the messages in the Task Logs at the most appropriate level for the message.
navOrder: 50
@@ -30,10 +30,10 @@ Write-Error "This will be logged as an Error and may cause your script to stop r
Console.WriteLine("This will be logged as Information");
Console.Out.WriteLine("This will be logged as Information too!");
Console.Error.WriteLine("This will be logged as an Error.");
-Octopus.WriteVerbose("Verbose!!!");
-Octopus.WriteHighlight("This is a highlight");
-Octopus.WriteWait("Deployment is waiting on something");
-Octopus.WriteWarning("Warning");
+WriteVerbose("Verbose!!!");
+WriteHighlight("This is a highlight");
+WriteWait("Deployment is waiting on something");
+WriteWarning("Warning");
```
@@ -96,7 +96,7 @@ Progress messages will display and update a progress bar on your deployment task
PowerShell
-```ps PowerShell
+```powershell
Update-Progress 10
Update-Progress 50 "Woah, we're halfway there!"
```
@@ -106,8 +106,8 @@ Update-Progress 50 "Woah, we're halfway there!"
C#
```csharp
-Octopus.UpdateProgress(10);
-Octopus.UpdateProgress(50, "Woah, we're halfway there!");
+UpdateProgress(10);
+UpdateProgress(50, "Woah, we're halfway there!");
```
@@ -133,8 +133,8 @@ Octopus.updateProgress 50 "Woah, we're halfway there!"
Python3
```python
-updateprogress(10)
-updateprogress(50, 'Woah, we\'re halfway there!')
+update_progress(10)
+update_progress(50, 'Woah, we\'re halfway there!')
```
@@ -176,7 +176,7 @@ let updateProgress (percentage: int) message =
def encode(value):
return base64.b64encode(value.encode('utf-8')).decode('utf-8')
-def updateprogress(progress, message=None):
+def update_progress(progress, message=None):
encodedProgress = encode(str(progress))
encodedMessage = encode(message)
@@ -188,12 +188,12 @@ def updateprogress(progress, message=None):
Bash
```bash
-function encode_servicemessagevalue
+function encode_service_message_value
{
echo -n "$1" | openssl enc -base64 -A
}
-echo "##octopus[progress percentage='$(encode_servicemessagevalue "$1")' message='$(encode_servicemessagevalue "$2")']"
+echo "##octopus[progress percentage='$(encode_service_message_value "$1")' message='$(encode_service_message_value "$2")']"
```
diff --git a/src/pages/docs/deployments/custom-scripts/output-variables.md b/src/pages/docs/deployments/custom-scripts/output-variables.md
index fa17709167..acaf50dde8 100644
--- a/src/pages/docs/deployments/custom-scripts/output-variables.md
+++ b/src/pages/docs/deployments/custom-scripts/output-variables.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Output variables
description: Your scripts can emit variables that are available in subsequent deployment steps.
navOrder: 70
@@ -31,7 +31,7 @@ Set-OctopusVariable -name "AppInstanceName" -value "MyAppInstance"
C#
```csharp
-Octopus.SetVariable("AppInstanceName", "MyAppInstance");
+SetVariable("AppInstanceName", "MyAppInstance");
```
@@ -74,7 +74,7 @@ $appInstanceName = $OctopusParameters["Octopus.Action[Determine App Instance Nam
C#
```csharp
-var appInstanceName = Octopus.Parameters["Octopus.Action[Determine App Instance Name].Output.AppInstanceName"]
+var appInstanceName = OctopusParameters["Octopus.Action[Determine App Instance Name].Output.AppInstanceName"]
```
diff --git a/src/pages/docs/deployments/custom-scripts/passing-parameters-to-scripts.md b/src/pages/docs/deployments/custom-scripts/passing-parameters-to-scripts.md
index 459a8bb8b9..807cca66ce 100644
--- a/src/pages/docs/deployments/custom-scripts/passing-parameters-to-scripts.md
+++ b/src/pages/docs/deployments/custom-scripts/passing-parameters-to-scripts.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Passing parameters to scripts
description: Octopus can pass parameters to your custom script files for any of the supported scripting languages.
navOrder: 40
@@ -43,7 +43,7 @@ You can define your parameters in the **Script Parameters** field using the form
Don't forget to correctly delimit your parameters correctly for the scripting engine. In the example above we have surrounded the parameter value in double-quotes to handle cases where the Environment Name has spaces: `"#{Octopus.Environment.Name}"`
:::
-## Passing parameters to PowerShell scripts {#Customscripts-PassingparameterstoPowerShellscripts}
+## Passing parameters to PowerShell scripts
You can pass parameters to PowerShell scripts as if you were calling the script yourself from PowerShell, using positional or named parameters.
@@ -66,9 +66,9 @@ Param (
Write-Host "$Environment storage path: $StoragePath"
```
-## Passing parameters to C# scripts {#Customscripts-PassingparameterstoC#scripts}
+## Passing parameters to C# scripts
-You can pass parameters to C# scripts [as described here for the ScriptCS engine](https://github.com/scriptcs/scriptcs/wiki/Pass-arguments-to-scripts). ScriptCS only supports positional parameters.
+You can pass parameters to C# scripts [as described here for the dotnet-script engine](https://github.com/dotnet-script/dotnet-script#passing-arguments-to-scripts).
**Script Parameters in Octopus**
@@ -79,12 +79,12 @@ You can pass parameters to C# scripts [as described here for the ScriptCS engine
**Usage in C# script**
```csharp
-var environment = Env.ScriptArgs[0]
-var storagePath = Env.ScriptArgs[1]
+var environment = Args[0]
+var storagePath = Args[1]
Console.WriteLine("{0} storage path: {1}", environment, storagePath);
```
-## Passing parameters to Bash scripts {#Customscripts-PassingparameterstoBashscripts}
+## Passing parameters to Bash scripts
You can pass parameters to Bash scripts [as described in Bash manual.](https://www.gnu.org/software/bash/manual/bash.html#Positional-Parameters)
@@ -102,7 +102,7 @@ storagePath="$2"
echo "$environment storage path: $storagePath"
```
-## Passing parameters to F# scripts {#Customscripts-PassingparameterstoF#scripts}
+## Passing parameters to F# scripts
You can pass parameters to FSharp scripts [as described by the F# documentation.](https://docs.microsoft.com/en-us/dotnet/fsharp/tools/fsharp-interactive/#using-the-fsi-object-in-f-code)
@@ -120,7 +120,7 @@ let storagePath = fsi.CommandLineArgs.[2]
printfn "$s storage path: $s" environment storagePath
```
-## Passing parameters to Python3 scripts {#Customscripts-Passingparameterstopythonscripts}
+## Passing parameters to Python3 scripts
You can pass parameters to python scripts [as described by the python documentation.](https://docs.python.org/3/tutorial/interpreter.html#argument-passing)
diff --git a/src/pages/docs/deployments/custom-scripts/scripts-in-packages/reference-files-within-a-package.md b/src/pages/docs/deployments/custom-scripts/scripts-in-packages/reference-files-within-a-package.md
index 9bdc598ec7..b2b4353f2e 100644
--- a/src/pages/docs/deployments/custom-scripts/scripts-in-packages/reference-files-within-a-package.md
+++ b/src/pages/docs/deployments/custom-scripts/scripts-in-packages/reference-files-within-a-package.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Reference files within a package
description: How to reference files within a package.
navOrder: 80
@@ -53,9 +53,9 @@ Get-Content ".\subfolder\file.txt"
```csharp C#
// in pre-deploy, in post-deploy if custom installation directory has not been defined
-var extractPath = Octopus.Parameters["Octopus.Action.Package.InstallationDirectoryPath"];
+var extractPath = OctopusParameters["Octopus.Action.Package.InstallationDirectoryPath"];
// if a custom installation directory has been defined
-var customPath = Octopus.Parameters["Octopus.Action.Package.CustomInstallationDirectory"];
+var customPath = OctopusParameters["Octopus.Action.Package.CustomInstallationDirectory"];
// original extract path,
Console.WriteLine(File.ReadAllText(extractPath + @"\subfolder\file.txt"));
// or when a custom installation directory has been defined,
diff --git a/src/pages/docs/deployments/custom-scripts/using-variables-in-scripts.md b/src/pages/docs/deployments/custom-scripts/using-variables-in-scripts.md
index 34e2706efe..7b67226199 100644
--- a/src/pages/docs/deployments/custom-scripts/using-variables-in-scripts.md
+++ b/src/pages/docs/deployments/custom-scripts/using-variables-in-scripts.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Using variables in scripts
description: With Octopus you can define variables for use with your custom scripts.
navOrder: 30
@@ -31,7 +31,7 @@ Write-Host "Connection string is: $connectionString"
```csharp
// It's a good idea to copy the value into a local variable to avoid quoting issues
-var connectionString = Octopus.Parameters["MyApp.ConnectionString"];
+var connectionString = OctopusParameters["MyApp.ConnectionString"];
Console.WriteLine("MyApp.ConnectionString: " + connectionString);
```
@@ -84,7 +84,7 @@ print(connectionString)
To see the F# API available to your F# scripts, take a look at our [F# signature file](https://github.com/OctopusDeploy/Calamari/tree/master/source/Calamari.Common/Features/Scripting/FSharp/Bootstrap.fsi).
:::
-## Variables in PowerShell scripts {#Customscripts-VariablesinPowerShellscripts}
+## Variables in PowerShell scripts
In PowerShell we have pre-defined some script-scoped variables for you as a convenience. Consider the same example as before, a variable named "MyApp.ConnectionString" will be available as both:
diff --git a/src/pages/docs/infrastructure/deployment-targets/linux/ssh-requirements.md b/src/pages/docs/infrastructure/deployment-targets/linux/ssh-requirements.md
index 2fe4b80271..f7e9318f70 100644
--- a/src/pages/docs/infrastructure/deployment-targets/linux/ssh-requirements.md
+++ b/src/pages/docs/infrastructure/deployment-targets/linux/ssh-requirements.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: SSH target requirements
description: Requirements for using SSH deployment targets with Octopus.
navOrder: 15
@@ -35,20 +35,14 @@ Octopus can execute Python scripts on SSH targets provided the following criteri
- Python is version 3.4+
- Python3 is on the path for the SSH user executing the deployment
-- pip is installed or the pycryptodome python package is installed
+- pip is installed or the PyCryptodome Python package is installed
-## ScriptCS and F#
+## F#
-Support for ScriptCS and F# scripts are only available with **Mono 4** and above. While they require mono installed, they will still execute with the self-contained Calamari.
-
-ScriptCS has not been ported for .NET Core ([GitHub issue](https://github.com/scriptcs/scriptcs/issues/1183)).
+Support F# scripts is only available with **Mono 4** and above. While they require mono installed, they will still execute with the self-contained Calamari.
Similarly, the F# interpreter has also not yet been ported for .NET Core ([GitHub issue](https://github.com/Microsoft/visualfsharp/issues/2407)).
-:::div{.warning}
-
-ScriptCS does not work on Mono **5.16** and higher. We recommend using Mono **5.14.x**.
-:::
## Self-contained Calamari {#self-contained-calamari}
diff --git a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx
index 1450d4127c..825f781438 100644
--- a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx
+++ b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx
@@ -24,15 +24,10 @@ Linux Tentacle is a .NET application distributed as a [self-contained deployment
## Known limitations
-Support for ScriptCS and F# scripts are only available with **Mono 4** and above. While they require mono installed, they will still execute with the self-contained Calamari.
-
-ScriptCS has not been ported for .NET Core ([GitHub issue](https://github.com/scriptcs/scriptcs/issues/1183)).
+Support for F# scripts is only available with **Mono 4** and above. While it requires mono installed, it will still execute with the self-contained Calamari.
Similarly, the F# interpreter has also not yet been ported for .NET Core ([GitHub issue](https://github.com/Microsoft/visualfsharp/issues/2407)).
-:::div{.warning}
-ScriptCS does not work on Mono **5.16** and higher. We recommend using Mono **5.14.x**.
-:::
## Downloads
diff --git a/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-container.mdx b/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-container.mdx
index eece3b0a0c..fbce1fceff 100644
--- a/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-container.mdx
+++ b/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-container.mdx
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Migrate to Octopus Server Linux Container from Windows Container
description: A guide on how to migrate to the Octopus Server Linux Container from the Octopus Server Windows Container
navOrder: 20
@@ -22,7 +22,7 @@ This guide is designed to address the differences between the Windows and Linux
- **Folder Paths:** Windows Containers follow the Windows folder structure with `\` slashes, for example, `C:\Octopus\Tasklogs`. Linux Containers follow a Linux folder structure, including `/` slashes.
- **Pre-installed software:** Windows Containers include PowerShell and .NET 4.7.2 (or 4.8) but not Bash. Linux Containers typically include PowerShell Core and Bash but not .NET.
-- **Software support:** The Linux Container doesn't support running ScriptCS or F# scripts directly on the server.
+- **Software support:** The Linux Container doesn't support running F# scripts directly on the server.
- **Authentication:** The Octopus Server Linux Container doesn't support Active Directory authentication. Some users have had success using Active Directory with the Octopus Server Windows Container, but any workarounds won't work with the Linux Container. If you want to use Active Directory, you must connect to it via the [LDAP authentication provider](/docs/security/authentication/ldap).
:::div{.hint}
diff --git a/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-server.mdx b/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-server.mdx
index 7fc4402f46..b3497019f9 100644
--- a/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-server.mdx
+++ b/src/pages/docs/installation/octopus-server-linux-container/migration/migrate-to-server-container-linux-from-windows-server.mdx
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Migrate to Octopus Server Linux Container from Windows Server
description: A guide on how to migrate to the Octopus Server Linux Container from Octopus Server running on a Windows Server
navOrder: 10
@@ -24,7 +24,7 @@ The differences between running Octopus Server on Windows Server and Linux Conta
- **Folder Paths:** Windows uses a folder structure with `\` slashes, for example, `C:\Octopus\Tasklogs`. Linux Containers follow a Linux folder structure, including `/` slashes.
- **Pre-installed software:** Linux Containers typically include PowerShell Core and Bash but not .NET. You cannot pre-install any other software on the Octopus Linux Container.
-- **Software support:** The Linux Container doesn't support running ScriptCS or F# scripts directly on the server.
+- **Software support:** The Linux Container doesn't support running F# scripts directly on the server.
- **Authentication:** The Octopus Server Linux Container doesn't support Active Directory authentication. If you want to use Active Directory, you must connect to it via the [LDAP authentication provider](/docs/security/authentication/ldap).
:::div{.hint}
diff --git a/src/pages/docs/octopus-rest-api/calamari.md b/src/pages/docs/octopus-rest-api/calamari.md
index 7abcc24c00..4c4c8a1193 100644
--- a/src/pages/docs/octopus-rest-api/calamari.md
+++ b/src/pages/docs/octopus-rest-api/calamari.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Calamari
description: Calamari is the command-line tool invoked by Tentacle during a deployment. It knows how to extract and install NuGet packages, run the Deploy.ps1 etc. conventions, modify configuration files, and all the other things that happen during an deployment.
navOrder: 70
@@ -30,7 +30,7 @@ Calamari deploy-package --package MyPackage.nupkg --variables Variables.json
Calamari has commands to support:
- Deploying NuGet packages.
-- Running scripts (PowerShell, ScriptCS, Bash, F#).
+- Running scripts (PowerShell, Dotnet Script, Bash, F#).
- Deploying packages to Azure targets (Cloud Services, WebApps).
- Various other deployment related activities.
diff --git a/src/pages/docs/projects/coordinating-multiple-projects/deploy-release-step/index.md b/src/pages/docs/projects/coordinating-multiple-projects/deploy-release-step/index.md
index 51621cd774..15bb1a2eaa 100644
--- a/src/pages/docs/projects/coordinating-multiple-projects/deploy-release-step/index.md
+++ b/src/pages/docs/projects/coordinating-multiple-projects/deploy-release-step/index.md
@@ -68,7 +68,7 @@ These output variables are captured as variables with the following name pattern
Octopus.Action[Deploy Release Step Name].Output.Deployment[Child Step Name].VariableName
```
-and for [machine-specific output variables](/docs/projects/variables/output-variables/#Outputvariables-Outputfrommultiplemachines):
+and for [machine-specific output variables](/docs/projects/variables/output-variables/#output-from-multiple-deployment-targets):
```
Octopus.Action[Deploy Release Step Name].Output.Deployment[Child Step Name][Machine Name].VariableName
diff --git a/src/pages/docs/projects/deployment-process/artifacts.mdx b/src/pages/docs/projects/deployment-process/artifacts.mdx
index bc2c6c36a9..f012486760 100644
--- a/src/pages/docs/projects/deployment-process/artifacts.mdx
+++ b/src/pages/docs/projects/deployment-process/artifacts.mdx
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Artifacts
description: Artifacts in Octopus provide a convenient way to collect files from remote machines during deployments.
navOrder: 10
@@ -21,7 +21,7 @@ After the script runs the files will be uploaded to Octopus Server and made avai

:::
-## Collecting artifacts using scripts \{#Artifacts-Collectingartifactsusingscripts}
+## Collecting artifacts using scripts
You can collect artifacts using any of the scripting languages supported by Octopus. In each scripting language you can specify the path to the file you want to collect as an artifact as an absolute path, or a path relative to the current working directory. By default, the file name will be used as the artifact name, but you can provide a custom name for the artifact as an alternative.
@@ -46,11 +46,11 @@ New-OctopusArtifact -Path "C:\Windows\System32\drivers\etc\hosts" -Name "$([Syst
```csharp
// Collect a custom log file from the current working directory using the file name as the name of the artifact
-Octopus.CreateArtifact("output.log");
+CreateArtifact("output.log");
// Collect the hosts file but using a custom name for each machine so you can differentiate between them
// Note: to collect this artifact would require the Tentacle process to be elevated as a high privileged user account
-Octopus.CreateArtifact(@"C:\Windows\System32\drivers\etc\hosts", System.Environment.MachineName + "-hosts.txt");
+CreateArtifact(@"C:\Windows\System32\drivers\etc\hosts", System.Environment.MachineName + "-hosts.txt");
```
diff --git a/src/pages/docs/projects/variables/output-variables.md b/src/pages/docs/projects/variables/output-variables.md
index e17ce8ab05..c7a611eba0 100644
--- a/src/pages/docs/projects/variables/output-variables.md
+++ b/src/pages/docs/projects/variables/output-variables.md
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
-modDate: 2023-01-01
+modDate: 2023-10-11
title: Output variables
description: Output variables allow you to set dynamic variables in one step that can be used in subsequent steps.
navOrder: 30
@@ -25,7 +25,7 @@ Set-OctopusVariable -name "TestResult" -value "Passed"
C#
```csharp
-Octopus.SetVariable("TestResult", "Passed");
+SetVariable("TestResult", "Passed");
```
@@ -74,7 +74,7 @@ $TestResult = $OctopusParameters["Octopus.Action[StepA].Output.TestResult"]
C#
```csharp
-var testResult = Octopus.Parameters["Octopus.Action[StepA].Output.TestResult"]
+var testResult = OctopusParameters["Octopus.Action[StepA].Output.TestResult"]
```
@@ -117,7 +117,7 @@ Set-OctopusVariable -name "Password" -value "correct horse battery staple" -sens
C#
```csharp
-Octopus.SetVariable("Password", "correct horse battery staple", true);
+SetVariable("Password", "correct horse battery staple", true);
```
@@ -146,7 +146,7 @@ set_octopusvariable("Password", "correct horse battery staple", True)
-## System output variables {#Outputvariables-Systemoutputvariables}
+## System output variables
After a step runs, Octopus captures the output variables, and keeps them for use in subsequent steps. In addition to variables that you create yourself using `Set-OctopusVariable`, Octopus also makes a number of built-in variables available. Here are some examples of commonly used built-in output variables:
@@ -159,7 +159,7 @@ After a step runs, Octopus captures the output variables, and keeps them for use
- `Octopus.Action[StepName].Output.Manual.ResponsibleUser.DisplayName`
- `Octopus.Action[StepName].Output.Manual.ResponsibleUser.EmailAddress`
-## Output from multiple deployment targets {#Outputvariables-Outputfrommultiplemachines}
+## Output from multiple deployment targets {#output-from-multiple-deployment-targets}
Output variables become more complex when multiple deployment targets are involved, but they can still be used.
@@ -180,24 +180,24 @@ Note that for each output variable/deployment target combination:
- A variable is created with the deployment target name contained in the variable name: this allows you to reference output variables from set by one deployment target from another deployment target.
- A variable is created that is [scoped](/docs/projects/variables/#scoping-variables) to the deployment target. This way Web01 will always get the value Web01 set, and Web02 will get the value Web02 set.
-- A variable is created with no scope, and no differentiator in the name. When referencing this value, the result will be indeterministic, but it allows scripts to use the value without knowing which deployment target set it.
+- A variable is created with no scope, and no differentiator in the name. When referencing this value, the result will be non-deterministic, but it allows scripts to use the value without knowing which deployment target set it.
For some practical examples of using output variables, and how scoping rules are applied, see the following blog posts:
- [Fun with output variables](https://octopus.com/blog/fun-with-output-variables)
- [Changing website ports using output variables](http://octopus.com/blog/changing-website-port-on-each-deployment)
-## Output from deploy a release steps {#Outputvariables-Outputfromdeployareleasesteps}
+## Output from deploy a release steps
Output variables from deployments triggered by a _Deploy a Release_ step are captured and exposed as output variables on the _Deploy a Release_ step.
To get the value of an output variable from a _Deploy a Release_ step, use the `Output.Deployment` variable on the _Deploy a Release_ step. For example, if your _Deploy a Release_ step is named "Deploy Web Project", the target step in the child project is named "Update IP Address", and the variable name is "IPAddress", you would use the following variable to access it in the parent project: `Octopus.Action[Deploy Web Project].Output.Deployment[Update IP Address].IPAddress`.
-## Setting output variables using scripts {#Outputvariables-Settingoutputvariablesusingscripts}
+## Setting output variables using scripts
You can set output variables using any of the scripting languages supported by Octopus. In each case we make special functions available to your scripts by bootstrapping them with a template defined in the [open-source Calamari project](https://github.com/OctopusDeploy/Calamari).
-### PowerShell {#Outputvariables-PowerShell}
+### PowerShell
[PowerShell Bootstrapping](https://github.com/OctopusDeploy/Calamari/tree/master/source/Calamari.Common/Features/Scripting/WindowsPowerShell/)
@@ -214,19 +214,19 @@ For example:
Set-OctopusVariable -name "TestResult" -value "Passed"
```
-### C# {#Outputvariables-C#}
+### C#
-[ScriptCS Bootstrapping](https://github.com/OctopusDeploy/Calamari/tree/master/source/Calamari.Common/Features/Scripting/ScriptCS)
+[Dotnet Script Bootstrapping](https://github.com/OctopusDeploy/Calamari/tree/master/source/Calamari.Common/Features/Scripting/DotnetScript)
From a C# script, you can use the `public static void SetVariable(string name, string value)` method to set the name and value of an output variable.
**C#**
```csharp
-Octopus.SetVariable("TestResult", "Passed");
+SetVariable("TestResult", "Passed");
```
-### Bash {#Outputvariables-Bash}
+### Bash
[Bash Bootstrapping](https://github.com/OctopusDeploy/Calamari/tree/master/source/Calamari.Common/Features/Scripting/Bash)
@@ -238,7 +238,7 @@ In a Bash script you can use the `set_octopusvariable` function to set the name
set_octopusvariable "TestResult" "Passed"
```
-### F# {#Outputvariables-F#}
+### F#
[FSharp Bootstrapping](https://github.com/OctopusDeploy/Calamari/tree/master/source/Calamari.Common/Features/Scripting/FSharp)
diff --git a/src/shared-content/scripts/add-a-space-with-environments-scripts.include.md b/src/shared-content/scripts/add-a-space-with-environments-scripts.include.md
index bfe111c506..2cd5636972 100644
--- a/src/shared-content/scripts/add-a-space-with-environments-scripts.include.md
+++ b/src/shared-content/scripts/add-a-space-with-environments-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "New Space"
@@ -65,7 +65,7 @@ foreach ($environment in $environments) {
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint($octopusURL, $octopusAPIKey)
$repository = New-Object Octopus.Client.OctopusRepository($endpoint)
@@ -117,13 +117,13 @@ foreach ($environmentName in $environments) {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var endpoint = new OctopusServerEndpoint(octopusURL, octopusAPIKey);
var repository = new OctopusRepository(endpoint);
@@ -187,7 +187,7 @@ import requests
# Define Octopus server variables
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
# Define working variables
@@ -254,7 +254,7 @@ func main() {
log.Println(err)
}
- APIKey := "API-YOURAPIKEY"
+ APIKey := "API-YOUR-KEY"
spaceManagersTeamMembers := []string{} // This or spaceManagerTeams must contain a value
spaceManagerTeams := []string{"teams-administrators"} // This or spaceManagersTeamMembers must contain a value, "teams-administrators" is the Octopus Administrators team
environments := []string{"Development", "Test", "Production"}
diff --git a/src/shared-content/scripts/add-azure-web-app-scripts.include.md b/src/shared-content/scripts/add-azure-web-app-scripts.include.md
index 6dd3680dc3..f49ae68e92 100644
--- a/src/shared-content/scripts/add-azure-web-app-scripts.include.md
+++ b/src/shared-content/scripts/add-azure-web-app-scripts.include.md
@@ -6,13 +6,13 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$azureServicePrincipalName = "MyAzureAccount"
$azureResourceGroupName = "MyResourceGroup"
$environmentNames = @("Development", "Production")
-$roles = @("Myrole")
+$roles = @("MyRole")
$environmentIds = @()
$azureWebAppName = "MyAzureWebAppName"
@@ -56,7 +56,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$azureServicePrincipalName = "MyAzureAccount"
$azureResourceGroupName = "MyResourceGroup"
$azureWebAppName = "MyAzureWebApp"
@@ -120,7 +120,7 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -128,7 +128,7 @@ using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string[] environmentNames = { "Development", "Production" };
string[] roles = { "MyRole" };
@@ -199,7 +199,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
@@ -270,7 +270,7 @@ func main() {
log.Println(err)
}
- APIKey := "API-YOURKEY"
+ APIKey := "API-YOUR-KEY"
// Get space to work with
space := GetSpace(apiURL, APIKey, spaceName)
diff --git a/src/shared-content/scripts/add-azuread-identity-to-users-scripts.include.md b/src/shared-content/scripts/add-azuread-identity-to-users-scripts.include.md
index b6444bc1ad..9a803fc25c 100644
--- a/src/shared-content/scripts/add-azuread-identity-to-users-scripts.include.md
+++ b/src/shared-content/scripts/add-azuread-identity-to-users-scripts.include.md
@@ -1,4 +1,4 @@
-
+
PowerShell (REST API)
```powershell
@@ -139,13 +139,13 @@ function AddAzureADLogins(
$existingOctopusUser.Identities += $newAzureADIdentity
}
- # Update user's email address if set AND the value isnt empty.
+ # Update user's email address if set AND the value isn't empty.
if($UpdateOctopusEmailAddress -eq $True -and -not([string]::IsNullOrWhiteSpace($User.AzureEmailAddress) -eq $true)) {
Write-Debug "Setting Octopus email address to: $($User.AzureEmailAddress)"
$existingOctopusUser.EmailAddress = $User.AzureEmailAddress
}
- # Update user's display name if set AND the value isnt empty.
+ # Update user's display name if set AND the value isn't empty.
if($UpdateOctopusDisplayName -eq $True -and -not([string]::IsNullOrWhiteSpace($User.AzureDisplayName) -eq $true)) {
Write-Debug "Setting Octopus display name to: $($User.AzureDisplayName)"
$existingOctopusUser.DisplayName = $User.AzureDisplayName
@@ -183,7 +183,7 @@ function AddAzureADLogins(
```
-
+
PowerShell (Octopus.Client)
```powershell
@@ -329,14 +329,14 @@ function AddAzureLogins
$existingOctopusUser.Identities += $newAzureADIdentity # Identities is an array
}
- # Update user's email address if set AND the value isnt empty.
+ # Update user's email address if set AND the value isn't empty.
if($UpdateOctopusEmailAddress -eq $True -and -not([string]::IsNullOrWhiteSpace($User.AzureEmailAddress) -eq $true))
{
Write-Debug "Setting Octopus email address to: $($User.AzureEmailAddress)"
$existingOctopusUser.EmailAddress = $User.AzureEmailAddress
}
- # Update user's display name if set AND the value isnt empty.
+ # Update user's display name if set AND the value isn't empty.
if($UpdateOctopusDisplayName -eq $True -and -not([string]::IsNullOrWhiteSpace($User.AzureDisplayName) -eq $true))
{
Write-Debug "Setting Octopus display name to: $($User.AzureDisplayName)"
@@ -372,11 +372,11 @@ function AddAzureLogins
```
-
+
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -565,7 +565,7 @@ public static void AddAzureLogins(string OctopusUrl, string ApiKey, string Path
```
-
+
Python3
```python
@@ -706,7 +706,7 @@ AddAzureLogins(octopus_server_uri, octopus_api_key, OctopusUsername='some.email@
```
-
+
Go
```go
diff --git a/src/shared-content/scripts/add-environment-to-step-scripts.include.md b/src/shared-content/scripts/add-environment-to-step-scripts.include.md
index 29a2fcac05..5cd753d38f 100644
--- a/src/shared-content/scripts/add-environment-to-step-scripts.include.md
+++ b/src/shared-content/scripts/add-environment-to-step-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$projectName = "MyProject"
@@ -47,7 +47,7 @@ Invoke-RestMethod -Method Put -Uri "$octopusURL/api/$($space.Id)/deploymentproce
```powershell
Add-Type -Path "path\to\Octopus.Client.dll"
-$apikey = "API-YOURAPIKEY"
+$apikey = "API-YOUR-KEY"
$octopusURL = "https://youroctourl"
$spaceName = "default"
$stepName = "Run a script"
@@ -98,14 +98,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string projectName = "MyProject";
string[] environmentNames = { "Development", "Test" };
@@ -166,7 +166,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
diff --git a/src/shared-content/scripts/add-environment-to-team-scripts.include.md b/src/shared-content/scripts/add-environment-to-team-scripts.include.md
index 68d8992829..3467fac5b1 100644
--- a/src/shared-content/scripts/add-environment-to-team-scripts.include.md
+++ b/src/shared-content/scripts/add-environment-to-team-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$teamName = "MyTeam"
@@ -49,7 +49,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$environmentNames = @("Test", "Production")
$teamName = "MyTeam"
@@ -98,14 +98,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string[] environmentNames = { "Development", "Production" };
string teamName = "MyTeam";
diff --git a/src/shared-content/scripts/add-environments-scripts.include.md b/src/shared-content/scripts/add-environments-scripts.include.md
index 66c3e9f80d..38f074034a 100644
--- a/src/shared-content/scripts/add-environments-scripts.include.md
+++ b/src/shared-content/scripts/add-environments-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctopus.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
@@ -50,7 +50,7 @@ $ErrorActionPreference = "Stop";
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusURL = "https://youroctopus.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
$environments = @("Development", "Test", "Staging", "Production")
@@ -87,14 +87,14 @@ foreach ($environmentName in $environments) {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctopus.octopus.app";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "Default";
var environments = new List { "Development", "Staging", "Test", "Production" };
@@ -144,7 +144,7 @@ import requests
from urllib.parse import quote
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/add-library-set-to-project-scripts.include.md b/src/shared-content/scripts/add-library-set-to-project-scripts.include.md
index 58d80f0aed..fee885eeeb 100644
--- a/src/shared-content/scripts/add-library-set-to-project-scripts.include.md
+++ b/src/shared-content/scripts/add-library-set-to-project-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$projectName = "MyProject"
$librarySetName = "MyLibrarySet"
@@ -37,7 +37,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$librarySetName = "MyLibrarySet"
@@ -75,14 +75,14 @@ catch
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string projectName = "MyProject";
string librarySetName = "MyLibrarySet";
diff --git a/src/shared-content/scripts/add-script-step-to-runbook-scripts.include.md b/src/shared-content/scripts/add-script-step-to-runbook-scripts.include.md
index a1b8e51ac2..26df345e1f 100644
--- a/src/shared-content/scripts/add-script-step-to-runbook-scripts.include.md
+++ b/src/shared-content/scripts/add-script-step-to-runbook-scripts.include.md
@@ -3,14 +3,14 @@
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
var runbookName = "MyRunbook";
var stepName = "My new step";
diff --git a/src/shared-content/scripts/add-target-role-scripts.include.md b/src/shared-content/scripts/add-target-role-scripts.include.md
index 84a1565948..575f39f397 100644
--- a/src/shared-content/scripts/add-target-role-scripts.include.md
+++ b/src/shared-content/scripts/add-target-role-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$machineName = "MyMachine"
@@ -34,7 +34,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$machineName = "MyMachine"
$targetRole = "MyRole"
@@ -68,17 +68,17 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string machineName = "MyMachine";
-string roleName = "testrole";
+string roleName = "TestRole";
// Create repository object
var endpoint = new OctopusServerEndpoint(octopusURL, octopusAPIKey);
@@ -114,7 +114,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
diff --git a/src/shared-content/scripts/add-update-project-variable-scripts.include.md b/src/shared-content/scripts/add-update-project-variable-scripts.include.md
index fbfb83a7b3..930b99921a 100644
--- a/src/shared-content/scripts/add-update-project-variable-scripts.include.md
+++ b/src/shared-content/scripts/add-update-project-variable-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$projectName = "MyProject"
@@ -60,7 +60,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$variable = @{
@@ -120,14 +120,14 @@ catch
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string projectName = "MyProject";
System.Collections.Hashtable variable = new System.Collections.Hashtable()
diff --git a/src/shared-content/scripts/bulk-add-tenants-to-projects.include.md b/src/shared-content/scripts/bulk-add-tenants-to-projects.include.md
index 24af1c1ff0..188c1dc265 100644
--- a/src/shared-content/scripts/bulk-add-tenants-to-projects.include.md
+++ b/src/shared-content/scripts/bulk-add-tenants-to-projects.include.md
@@ -102,7 +102,7 @@ function Invoke-OctopusApi
Write-OctopusVerbose "Ignoring cache."
}
- Write-OctopusVerbose "No data to post or put, calling bog standard invoke-restmethod for $url"
+ Write-OctopusVerbose "No data to post or put, calling bog standard Invoke-RestMethod for $url"
$result = Invoke-RestMethod -Method $method -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -ContentType 'application/json; charset=utf-8'
if ($cachedResults.ContainsKey($url) -eq $true)
@@ -229,9 +229,9 @@ $spaceId = $space.Id
$project = Get-OctopusItemByName -itemName $projectName -itemType "Project" -endpoint "projects" -spaceId $spaceId -defaultUrl $octopusUrl -octopusApiKey $octopusApiKey
$projectId = $project.Id
-$splitEnvironmentlist = $environmentNameList -split ","
+$splitEnvironmentList = $environmentNameList -split ","
$environmentList = @()
-foreach ($environmentName in $splitEnvironmentlist)
+foreach ($environmentName in $splitEnvironmentList)
{
$environment = Get-OctopusItemByName -itemName $environmentName -itemType "Environment" -endpoint "environments" -spaceId $spaceId -defaultUrl $octopusUrl -octopusApiKey $octopusApiKey
$environmentList += $environment.Id
@@ -404,7 +404,7 @@ foreach ($tenant in $tenants)
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
using System;
diff --git a/src/shared-content/scripts/cancel-queued-deployments-scripts.include.md b/src/shared-content/scripts/cancel-queued-deployments-scripts.include.md
index e4efa044e3..e30642e025 100644
--- a/src/shared-content/scripts/cancel-queued-deployments-scripts.include.md
+++ b/src/shared-content/scripts/cancel-queued-deployments-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
@@ -38,14 +38,14 @@ while ($canContinue -eq $true)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "http://octotemp";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
// Create repository object
@@ -92,7 +92,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
@@ -152,7 +152,7 @@ func main() {
if err != nil {
log.Println(err)
}
- APIKey := "API-YOURAPIKEY"
+ APIKey := "API-YOUR-KEY"
spaceName := "Default"
// Get reference to space
diff --git a/src/shared-content/scripts/change-feed-scripts.include.md b/src/shared-content/scripts/change-feed-scripts.include.md
index 4c1deb20a1..b66ef43bfa 100644
--- a/src/shared-content/scripts/change-feed-scripts.include.md
+++ b/src/shared-content/scripts/change-feed-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$feedName = "nuget.org"
@@ -36,7 +36,7 @@ Add-Type -Path "C:\Octo\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$feedName = "nuget.org"
@@ -75,14 +75,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
string feedName = "nuget.org";
@@ -124,7 +124,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = "Default"
diff --git a/src/shared-content/scripts/change-machine-machinepolicy-scripts.include.md b/src/shared-content/scripts/change-machine-machinepolicy-scripts.include.md
index 09ca11b9a6..9e2bd66eff 100644
--- a/src/shared-content/scripts/change-machine-machinepolicy-scripts.include.md
+++ b/src/shared-content/scripts/change-machine-machinepolicy-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$machineName = "MyMachine"
@@ -36,7 +36,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$machineName = "MyMachine"
$machinePolicyName = "MyPolicy"
@@ -73,14 +73,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string machineName = "MyMachine";
string machinePolicyName = "TestPolicy";
@@ -122,7 +122,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
diff --git a/src/shared-content/scripts/check-for-tentacle-upgrades-scripts.include.md b/src/shared-content/scripts/check-for-tentacle-upgrades-scripts.include.md
index 24051a3a9f..99ec5dcd4e 100644
--- a/src/shared-content/scripts/check-for-tentacle-upgrades-scripts.include.md
+++ b/src/shared-content/scripts/check-for-tentacle-upgrades-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app/api"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
@@ -44,7 +44,7 @@ $workers = Invoke-RestMethod -Method Get -Uri "$octopusSpaceUrl/workers/all" -He
Add-Type -Path 'C:\path\to\Octopus.Client.dll'
$octopusURL = "https://your.octopus.app/api"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint $octopusURL, $octopusAPIKey
@@ -84,14 +84,14 @@ catch {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "C:\path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
using Octopus.Client.Model.Endpoints;
var octopusURL = "https://your.octopus.app";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var endpoint = new OctopusServerEndpoint(octopusURL, octopusAPIKey);
var repository = new OctopusRepository(endpoint);
@@ -148,7 +148,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
diff --git a/src/shared-content/scripts/clear-sensitive-variables-scripts.include.md b/src/shared-content/scripts/clear-sensitive-variables-scripts.include.md
index adfcd82a49..910ce054b2 100644
--- a/src/shared-content/scripts/clear-sensitive-variables-scripts.include.md
+++ b/src/shared-content/scripts/clear-sensitive-variables-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
Function Clear-SensitiveVariables
@@ -80,7 +80,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint $octopusURL, $octopusAPIKey
@@ -142,11 +142,11 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
// Create repository object
@@ -314,7 +314,7 @@ func main() {
log.Println(err)
}
APIKey := "API-YourAPIKey"
- spaceName := "MySace"
+ spaceName := "YourSpace"
// Get reference to space
space := GetSpace(apiURL, APIKey, spaceName)
@@ -345,18 +345,18 @@ func main() {
// Loop through sets
for i := 0; i < len(librarySets); i++ {
- librarysetVariables := GetVariables(apiURL, APIKey, space, librarySets[i].ID)
+ librarySetVariables := GetVariables(apiURL, APIKey, space, librarySets[i].ID)
variablesUpdated := false
- for j := 0; j < len(librarysetVariables.Variables); j++ {
- if librarysetVariables.Variables[j].IsSensitive {
- librarysetVariables.Variables[j].Value = ""
+ for j := 0; j < len(librarySetVariables.Variables); j++ {
+ if librarySetVariables.Variables[j].IsSensitive {
+ librarySetVariables.Variables[j].Value = ""
variablesUpdated = true
}
}
if variablesUpdated {
println("Variables for " + librarySets[i].Name + " have been updated")
- UpdateVariables(apiURL, APIKey, space, librarysetVariables.OwnerID, librarysetVariables)
+ UpdateVariables(apiURL, APIKey, space, librarySetVariables.OwnerID, librarySetVariables)
}
}
}
diff --git a/src/shared-content/scripts/create-a-lifecycle-scripts.include.md b/src/shared-content/scripts/create-a-lifecycle-scripts.include.md
index ee4be0ced2..6707e889f5 100644
--- a/src/shared-content/scripts/create-a-lifecycle-scripts.include.md
+++ b/src/shared-content/scripts/create-a-lifecycle-scripts.include.md
@@ -37,7 +37,7 @@ function Get-OctopusItems
# Store call results
$items += $resultSet.Items
- # Check to see if resultset is bigger than page amount
+ # Check to see if result set is bigger than page amount
if (($resultSet.Items.Count -gt 0) -and ($resultSet.Items.Count -eq $resultSet.ItemsPerPage))
{
# Increment skip count
@@ -126,7 +126,7 @@ $repositoryForSpace = $client.ForSpace($space)
# Check to see if lifecycle already exists
if ($null -eq $repositoryForSpace.Lifecycles.FindByName($lifecycleName))
{
- # Create new lifecyle
+ # Create new lifecycle
$lifecycle = New-Object Octopus.Client.Model.LifecycleResource
$lifecycle.Name = $lifecycleName
$repositoryForSpace.Lifecycles.Create($lifecycle)
@@ -142,7 +142,7 @@ else
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
using System;
diff --git a/src/shared-content/scripts/create-a-tenant-scripts.include.md b/src/shared-content/scripts/create-a-tenant-scripts.include.md
index 8454b9974a..53ba14b1c7 100644
--- a/src/shared-content/scripts/create-a-tenant-scripts.include.md
+++ b/src/shared-content/scripts/create-a-tenant-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
# Provide the space name
$spaceName = "Default"
@@ -89,7 +89,7 @@ try
# Get projects
$projects = $repositoryForSpace.Projects.GetAll() | Where-Object {$projectNames -contains $_.Name}
- # Create projectenvironments
+ # Create project environments
$projectEnvironments = New-Object Octopus.Client.Model.ReferenceCollection
foreach ($environment in $environments)
{
@@ -127,14 +127,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string tenantName = "MyTenant";
string[] projectNames = { "MyProject" };
@@ -158,7 +158,7 @@ try
// Get environments
var environments = repositoryForSpace.Environments.FindByNames(environmentNames);
- // Create projectenvironments
+ // Create project environments
Octopus.Client.Model.ReferenceCollection projectEnvironments = new ReferenceCollection();
foreach (var environment in environments)
{
diff --git a/src/shared-content/scripts/create-and-deploy-release-scripts.include.md b/src/shared-content/scripts/create-and-deploy-release-scripts.include.md
index 45cd5ad25b..5f528aa2d3 100644
--- a/src/shared-content/scripts/create-and-deploy-release-scripts.include.md
+++ b/src/shared-content/scripts/create-and-deploy-release-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusBaseURL = "https://youroctourl/api"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$headers = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
@@ -61,7 +61,7 @@ $deploymentResponse = Invoke-WebRequest -Uri $octopusSpaceUrl/deployments/create
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusBaseURL = "https://youroctourl/"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint($octopusBaseURL, $octopusAPIKey)
$repository = New-Object Octopus.Client.OctopusRepository($endpoint)
@@ -145,13 +145,13 @@ catch {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var endpoint = new OctopusServerEndpoint(octopusURL, octopusAPIKey);
var repository = new OctopusRepository(endpoint);
@@ -417,7 +417,7 @@ func main() {
releaseVersion := ""
- // Check to see if the nexversionincrement property is nil
+ // Check to see if the next version increment property is nil
if nil == template["NextVersionIncrement"] {
// Project uses a package instead of a template, get the latest version of the package
deploymentProcess, err := client.DeploymentProcesses.GetByID(project.DeploymentProcessID)
diff --git a/src/shared-content/scripts/create-and-deploy-release-with-tenants-scripts.include.md b/src/shared-content/scripts/create-and-deploy-release-with-tenants-scripts.include.md
index 1ac2cd2036..f734a7fd50 100644
--- a/src/shared-content/scripts/create-and-deploy-release-with-tenants-scripts.include.md
+++ b/src/shared-content/scripts/create-and-deploy-release-with-tenants-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusBaseURL = "https://youroctourl/api"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$headers = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
@@ -97,7 +97,7 @@ $tenantNames | ForEach-Object {
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusBaseURL = "https://youroctourl/"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint($octopusBaseURL, $octopusAPIKey)
$repository = New-Object Octopus.Client.OctopusRepository($endpoint)
@@ -189,13 +189,13 @@ catch {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var endpoint = new OctopusServerEndpoint(octopusURL, octopusAPIKey);
var repository = new OctopusRepository(endpoint);
@@ -481,7 +481,7 @@ func main() {
releaseVersion := ""
- // Check to see if the nexversionincrement property is nil
+ // Check to see if the next version increment property is nil
if nil == template["NextVersionIncrement"] {
// Project uses a package instead of a template, get the latest version of the package
deploymentProcess, err := client.DeploymentProcesses.GetByID(project.DeploymentProcessID)
diff --git a/src/shared-content/scripts/create-and-publish-runbook-scripts.include.md b/src/shared-content/scripts/create-and-publish-runbook-scripts.include.md
index db96f85899..56ad95eac8 100644
--- a/src/shared-content/scripts/create-and-publish-runbook-scripts.include.md
+++ b/src/shared-content/scripts/create-and-publish-runbook-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$projectName = "MyProject"
@@ -130,7 +130,7 @@ $repositoryForSpace.Runbooks.Modify($runbook)
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
using System;
diff --git a/src/shared-content/scripts/create-api-key-scripts.include.md b/src/shared-content/scripts/create-api-key-scripts.include.md
index 7674d39def..55925cdc1a 100644
--- a/src/shared-content/scripts/create-api-key-scripts.include.md
+++ b/src/shared-content/scripts/create-api-key-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
# UserName of the user for which the API key will be created. You can check this value from the web portal under Configuration/Users
@@ -43,7 +43,7 @@ Add-Type -Path "C:\octo\Octopus.Client.dll"
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
# Purpose of the API Key. This field is mandatory.
$APIKeyPurpose = ""
@@ -76,14 +76,14 @@ catch
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
// Reference Octopus.Client
-//#r "path\to\Octopus.Client.dll"
+//#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string apiKeyPurpose = "Key used with C# application";
// Create repository object
diff --git a/src/shared-content/scripts/create-aws-account-scripts.include.md b/src/shared-content/scripts/create-aws-account-scripts.include.md
index 5baa6cb6c4..b83fe8a6a7 100644
--- a/src/shared-content/scripts/create-aws-account-scripts.include.md
+++ b/src/shared-content/scripts/create-aws-account-scripts.include.md
@@ -35,7 +35,7 @@ function Get-OctopusItems
return $items
}
-$apikey = 'API-YOURAPIKEY' # Get this from your profile
+$apikey = 'API-YOUR-KEY' # Get this from your profile
$OctopusUrl = 'https://youroctourl' # Your Octopus Server address
$spaceName = "default"
$spaceId = ""
@@ -65,7 +65,7 @@ $jsonPayload = @{
}
Name = $accountName
Description = $accountDescription
- TenantedDeploymentparticipation = $accountTenantParticipation
+ TenantedDeploymentParticipation = $accountTenantParticipation
TenantTags = $accountTenantTags
TenantIds = $accountTenantIds
EnvironmentIds = $accountEnvironmentIds
@@ -94,7 +94,7 @@ Invoke-RestMethod -Method Post -Uri "$OctopusUrl/api/$spaceId/accounts" -Body ($
# Load assembly
Add-Type -Path 'C:\Octopus.Client\Octopus.Client.dll'
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
# AWS Credentials
$awsAccessKey = "AWSAccessKey"
@@ -146,13 +146,13 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var OctopusURL = "https://youroctourl";
-var OctopusAPIKey = "API-YOURAPIKEY";
+var OctopusAPIKey = "API-YOUR-KEY";
// Azure specific details
string awsAccessKey = "AWS Access Key";
@@ -208,7 +208,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = 'Default'
diff --git a/src/shared-content/scripts/create-azure-service-principal-scripts.include.md b/src/shared-content/scripts/create-azure-service-principal-scripts.include.md
index d180fe6ef2..b60d82d1c3 100644
--- a/src/shared-content/scripts/create-azure-service-principal-scripts.include.md
+++ b/src/shared-content/scripts/create-azure-service-principal-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
@@ -61,7 +61,7 @@ Invoke-RestMethod -Method Post -Uri "$octopusURL/api/$($space.Id)/accounts" -Bod
# Load assembly
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
# Azure service principle details
$azureSubscriptionNumber = "Subscription-Guid"
@@ -117,13 +117,13 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var OctopusURL = "https://youroctourl";
-var OctopusAPIKey = "API-YOURAPIKEY";
+var OctopusAPIKey = "API-YOUR-KEY";
// Azure specific details
string azureSubscriptionNumber = "Subscription-Guid";
@@ -182,7 +182,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = 'Default'
diff --git a/src/shared-content/scripts/create-certificate-scripts.include.md b/src/shared-content/scripts/create-certificate-scripts.include.md
index 84aa33a414..fccaef2acc 100644
--- a/src/shared-content/scripts/create-certificate-scripts.include.md
+++ b/src/shared-content/scripts/create-certificate-scripts.include.md
@@ -6,14 +6,14 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
# Certificate details
$certificateName = "MyCertificate"
$certificateNotes = ""
-$certificateFilePath = "path\to\pfxfile.pfx"
+$certificateFilePath = "path\to\pfx-file.pfx"
$certificatePfxPassword = "PFX-file-password"
$certificateEnvironmentIds = @()
$certificateTenantIds = @()
@@ -58,7 +58,7 @@ Invoke-RestMethod -Method Post -Uri "$octopusURL/api/$($space.Id)/certificates"
Add-Type -Path 'path\to\Octopus.Client.dll'
# Declare working variables
-$apikey = 'API-YOURAPIKEY' # Get this from your profile
+$apikey = 'API-YOUR-KEY' # Get this from your profile
$octopusURI = 'https://youroctourl' # Your server address
$spaceName = 'default'
@@ -73,7 +73,7 @@ try
$repositoryForSpace = $client.ForSpace($space)
# Fill in certificate details
- $pfxFilePath = "path\to\pfxfile.pfx" # note: other file formats are supported https://octopus.com/docs/deploying-applications/certificates/file-formats
+ $pfxFilePath = "path\to\pfx-file.pfx" # note: other file formats are supported https://octopus.com/docs/deploying-applications/certificates/file-formats
$pfxBase64 = [Convert]::ToBase64String((Get-Content -Path $pfxFilePath -Encoding Byte))
$pfxPassword = "PFX-file-password"
$certificateName = "MyCertificate" # The display name in Octopus
@@ -94,15 +94,15 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
-string pfxFilePath = "path\\to\\pfxfile.pfx";
+var octopusAPIKey = "API-YOUR-KEY";
+string pfxFilePath = "path\\to\\pfx-file.pfx";
string pfxFilePassword = "PFX-file-password";
string certificateName = "MyCertificate";
string spaceName = "default";
@@ -142,7 +142,7 @@ import requests
import base64
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/create-channel-scripts.include.md b/src/shared-content/scripts/create-channel-scripts.include.md
index aa82eebc21..8462a92c3a 100644
--- a/src/shared-content/scripts/create-channel-scripts.include.md
+++ b/src/shared-content/scripts/create-channel-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$projectId = "Projects-101"
@@ -52,7 +52,7 @@ $repositoryForSpace = $client.ForSpace($space)
# Get project
$project = $repositoryForSpace.Projects.FindByName($projectName)
-# Createw new channel object
+# Create new channel object
$channel = New-Object Octopus.Client.Model.ChannelResource
$channel.Name = $channelName
$channel.ProjectId = $project.Id
@@ -68,7 +68,7 @@ $repositoryForSpace.Channels.Create($channel)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
diff --git a/src/shared-content/scripts/create-google-cloud-account-scripts.include.md b/src/shared-content/scripts/create-google-cloud-account-scripts.include.md
index f1119b3e0b..216c87f233 100644
--- a/src/shared-content/scripts/create-google-cloud-account-scripts.include.md
+++ b/src/shared-content/scripts/create-google-cloud-account-scripts.include.md
@@ -7,7 +7,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
@@ -21,7 +21,7 @@ $accountDescription = "A Google Cloud account for my project"
$accountTenantParticipation = "Untenanted"
# Google Cloud JSON key file
-$jsonKeyPath = "/path/to/jsonkeyfile.json"
+$jsonKeyPath = "/path/to/json-key-file.json"
# (Optional) Tenant tags e.g.: "AWS Region/California"
$accountTenantTags = @()
@@ -75,7 +75,7 @@ $accountResponse
# https://www.nuget.org/packages/Octopus.Client/
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
# Octopus Account name
@@ -88,7 +88,7 @@ $accountDescription = "A Google Cloud account for my project"
$accountTenantParticipation = "Untenanted"
# Google Cloud JSON key file
-$jsonKeyPath = "/path/to/jsonkeyfile.json"
+$jsonKeyPath = "/path/to/json-key-file.json"
# (Optional) Tenant tags e.g.: "AWS Region/California"
$accountTenantTags = @()
@@ -149,13 +149,13 @@ catch
// It also requires version 11.3.3355 or higher of the Octopus.Client library
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var OctopusURL = "https://your.octopus.app";
-var OctopusAPIKey = "API-YOURAPIKEY";
+var OctopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
// Octopus Account name
@@ -168,7 +168,7 @@ string accountDescription = "A Google Cloud account for my project";
Octopus.Client.Model.TenantedDeploymentMode octopusAccountTenantParticipation = Octopus.Client.Model.TenantedDeploymentMode.TenantedOrUntenanted;
// Google Cloud JSON key file
-string jsonKeyPath = @"/path/to/jsonkeyfile.json";
+string jsonKeyPath = @"/path/to/json-key-file.json";
string jsonKeyBase64 = "";
// (Optional) Tenant tags e.g.: "AWS Region/California"
@@ -234,7 +234,7 @@ import requests
import base64
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = 'Default'
@@ -246,8 +246,8 @@ tenant_tags = []
tenant_ids = []
environment_ids = []
-json_keyfile_path = '/path/to/jsonkeyfile.json'
-json_data = open(json_keyfile_path, 'rb').read()
+json_key_file_path = '/path/to/json-key-file.json'
+json_data = open(json_key_file_path, 'rb').read()
json_key_base64 = base64.b64encode(json_data)
account = {
diff --git a/src/shared-content/scripts/create-nuget-feed-scripts.include.md b/src/shared-content/scripts/create-nuget-feed-scripts.include.md
index 4f59eca4a0..2872c18c91 100644
--- a/src/shared-content/scripts/create-nuget-feed-scripts.include.md
+++ b/src/shared-content/scripts/create-nuget-feed-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$feedName = "nuget.org"
@@ -56,7 +56,7 @@ Add-Type -Path "C:\Octo\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$feedName = "nuget.org"
@@ -114,14 +114,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
string feedName = "nuget.org 3";
@@ -179,7 +179,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = 'Default'
diff --git a/src/shared-content/scripts/create-project-scripts.include.md b/src/shared-content/scripts/create-project-scripts.include.md
index 49b44b833c..6c927a987b 100644
--- a/src/shared-content/scripts/create-project-scripts.include.md
+++ b/src/shared-content/scripts/create-project-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$projectName = "MyProject"
@@ -45,7 +45,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$projectGroupName = "Default project group"
@@ -83,14 +83,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string projectName = "MyProject";
string projectGroupName = "Default project group";
@@ -133,7 +133,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/create-projectgroup-scripts.include.md b/src/shared-content/scripts/create-projectgroup-scripts.include.md
index 1f94b2d6d3..7e5f087680 100644
--- a/src/shared-content/scripts/create-projectgroup-scripts.include.md
+++ b/src/shared-content/scripts/create-projectgroup-scripts.include.md
@@ -39,7 +39,7 @@ function Get-OctopusItems
# Store call results
$items += $resultSet.Items
- # Check to see if resultset is bigger than page amount
+ # Check to see if result set is bigger than page amount
if (($resultSet.Items.Count -gt 0) -and ($resultSet.Items.Count -eq $resultSet.ItemsPerPage))
{
# Increment skip count
@@ -123,7 +123,7 @@ $repositoryForSpace.ProjectGroups.Create($projectGroup)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
diff --git a/src/shared-content/scripts/create-release-with-version-scripts.include.md b/src/shared-content/scripts/create-release-with-version-scripts.include.md
index 048c35ffa1..a0404e2285 100644
--- a/src/shared-content/scripts/create-release-with-version-scripts.include.md
+++ b/src/shared-content/scripts/create-release-with-version-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$projectName = "MyProject"
$releaseVersion = "1.0.0.0"
@@ -63,7 +63,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$channelName = "default"
@@ -131,7 +131,7 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -356,7 +356,7 @@ func main() {
releaseVersion := ""
- // Check to see if the nexversionincrement property is nil
+ // Check to see if the NextVersionIncrement property is nil
if nil == template["NextVersionIncrement"] {
// Project uses a package instead of a template, get the latest version of the package
deploymentProcess, err := client.DeploymentProcesses.GetByID(project.DeploymentProcessID)
diff --git a/src/shared-content/scripts/create-runbook-scripts.include.md b/src/shared-content/scripts/create-runbook-scripts.include.md
index d9dd11dbae..ffe45c53db 100644
--- a/src/shared-content/scripts/create-runbook-scripts.include.md
+++ b/src/shared-content/scripts/create-runbook-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$projectName = "MyProject"
@@ -43,7 +43,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$runbookName = "MyRunbook"
@@ -88,14 +88,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string projectName = "MyProject";
string runbookName = "MyRunbook";
@@ -145,7 +145,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/create-scheduled-runbook-trigger-scripts.include.md b/src/shared-content/scripts/create-scheduled-runbook-trigger-scripts.include.md
index eed660369c..6deabaf6e8 100644
--- a/src/shared-content/scripts/create-scheduled-runbook-trigger-scripts.include.md
+++ b/src/shared-content/scripts/create-scheduled-runbook-trigger-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
@@ -95,7 +95,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
$projectName = "MyProject"
@@ -171,14 +171,14 @@ Write-Host "Created runbook trigger: $($createdRunbookTrigger.Id) ($runbookTrigg
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://your.octopus.app";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
// Define working variables
string spaceName = "default";
@@ -271,7 +271,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/create-script-step-scripts.include.md b/src/shared-content/scripts/create-script-step-scripts.include.md
index 4b5d96f67c..36398b2aad 100644
--- a/src/shared-content/scripts/create-script-step-scripts.include.md
+++ b/src/shared-content/scripts/create-script-step-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$role = "My role"
@@ -79,11 +79,11 @@ Invoke-RestMethod -Method Put -Uri "$octopusURL/api/$($space.Id)/deploymentproce
PowerShell (Octopus.Client)
```powershell
-# Load Octopous Client assembly
+# Load Octopus Client assembly
Add-Type -Path 'c:\octopus.client\Octopus.Client.dll'
# Declare Octopus variables
-$apikey = 'API-YOURAPIKEY'
+$apikey = 'API-YOUR-KEY'
$octopusURI = 'https://youroctourl'
$projectName = "MyProject"
@@ -137,14 +137,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "http://OctoTemp";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string stepName = "Run a script";
string roleName = "My role";
string scriptBody = "Write-Host \"Hello world\"";
@@ -203,7 +203,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
diff --git a/src/shared-content/scripts/create-tagset-scripts.include.md b/src/shared-content/scripts/create-tagset-scripts.include.md
index 315b2bec59..e018f02d88 100644
--- a/src/shared-content/scripts/create-tagset-scripts.include.md
+++ b/src/shared-content/scripts/create-tagset-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$tagsetName = "Upgrade Ring"
@@ -61,7 +61,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
$tagsetName = "Upgrade Ring"
$tagsetDescription = "Describes which upgrade ring the tenant belongs to"
@@ -105,14 +105,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "Default";
var tagsetName = "Upgrade Ring";
var tagsetDescription = "Describes which upgrade ring the tenant belongs to";
diff --git a/src/shared-content/scripts/delete-a-space-scripts.include.md b/src/shared-content/scripts/delete-a-space-scripts.include.md
index 89f8540cda..0e8ea95fc9 100644
--- a/src/shared-content/scripts/delete-a-space-scripts.include.md
+++ b/src/shared-content/scripts/delete-a-space-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "New Space"
@@ -41,7 +41,7 @@ Write-Host "Action Complete"
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint($octopusURL, $octopusAPIKey)
$repository = New-Object Octopus.Client.OctopusRepository($endpoint)
@@ -71,13 +71,13 @@ try {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var OctopusURL = "https://youroctourl";
-var OctopusAPIKey = "API-YOURAPIKEY";
+var OctopusAPIKey = "API-YOUR-KEY";
var endpoint = new OctopusServerEndpoint(OctopusURL, OctopusAPIKey);
var repository = new OctopusRepository(endpoint);
@@ -119,7 +119,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = "Your Space name"
diff --git a/src/shared-content/scripts/delete-feed-scripts.include.md b/src/shared-content/scripts/delete-feed-scripts.include.md
index 2bb940eb73..b4b9e11b79 100644
--- a/src/shared-content/scripts/delete-feed-scripts.include.md
+++ b/src/shared-content/scripts/delete-feed-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$feedName = "nuget.org"
@@ -31,7 +31,7 @@ Add-Type -Path "C:\Octo\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$feedName = "nuget.org"
@@ -65,14 +65,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
string feedName = "nuget to delete";
@@ -110,7 +110,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = "Default"
diff --git a/src/shared-content/scripts/delete-project-by-name-scripts.include.md b/src/shared-content/scripts/delete-project-by-name-scripts.include.md
index a695da8f5f..253a89ae8c 100644
--- a/src/shared-content/scripts/delete-project-by-name-scripts.include.md
+++ b/src/shared-content/scripts/delete-project-by-name-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$projectName = "MyProject"
@@ -31,7 +31,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
@@ -63,14 +63,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
string projectName = "MyProject";
@@ -107,7 +107,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/delete-project-releases-scripts.include.md b/src/shared-content/scripts/delete-project-releases-scripts.include.md
index 4190ee1ef4..fa9b3bbcfe 100644
--- a/src/shared-content/scripts/delete-project-releases-scripts.include.md
+++ b/src/shared-content/scripts/delete-project-releases-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$projectName = "MyProject"
@@ -38,7 +38,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
@@ -77,14 +77,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string projectName = "MyProject";
@@ -295,14 +295,14 @@ func GetProject(octopusURL *url.URL, APIKey string, space *octopusdeploy.Space,
func GetProjectReleases(octopusURL *url.URL, APIKey string, space *octopusdeploy.Space, project *octopusdeploy.Project) []interface{} {
// Define api endpoint
- projectReleasesEndoint := octopusURL.String() + "/api/" + space.ID + "/projects/" + project.ID + "/releases"
+ projectReleasesEndpoint := octopusURL.String() + "/api/" + space.ID + "/projects/" + project.ID + "/releases"
// Create http client
httpClient := &http.Client{}
skipAmount := 0
// Make request
- request, _ := http.NewRequest("GET", projectReleasesEndoint, nil)
+ request, _ := http.NewRequest("GET", projectReleasesEndpoint, nil)
request.Header.Set("X-Octopus-ApiKey", APIKey)
response, err := httpClient.Do(request)
diff --git a/src/shared-content/scripts/delete-projects-without-processes-scripts.include.md b/src/shared-content/scripts/delete-projects-without-processes-scripts.include.md
index e9b1a1235d..1b9884d057 100644
--- a/src/shared-content/scripts/delete-projects-without-processes-scripts.include.md
+++ b/src/shared-content/scripts/delete-projects-without-processes-scripts.include.md
@@ -82,14 +82,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
// Create repository object
@@ -136,7 +136,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/delete-targets-by-name-scripts.include.md b/src/shared-content/scripts/delete-targets-by-name-scripts.include.md
index 26533f9143..c806fbaa94 100644
--- a/src/shared-content/scripts/delete-targets-by-name-scripts.include.md
+++ b/src/shared-content/scripts/delete-targets-by-name-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl/api"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$machineName = "MachineName"
@@ -43,7 +43,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl/api"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$machineName = "MachineName"
@@ -75,14 +75,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string machineName = "MachineName";
@@ -119,7 +119,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
diff --git a/src/shared-content/scripts/delete-targets-by-role-scripts.include.md b/src/shared-content/scripts/delete-targets-by-role-scripts.include.md
index 677a018693..657b2ffec5 100644
--- a/src/shared-content/scripts/delete-targets-by-role-scripts.include.md
+++ b/src/shared-content/scripts/delete-targets-by-role-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$role = "MyRole"
@@ -35,7 +35,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$role = "MyRole"
@@ -71,14 +71,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://your.octopus.app";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string role = "MyRole";
@@ -119,7 +119,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/deploy-release-scripts.include.md b/src/shared-content/scripts/deploy-release-scripts.include.md
index ee4239bf55..47e8d6265f 100644
--- a/src/shared-content/scripts/deploy-release-scripts.include.md
+++ b/src/shared-content/scripts/deploy-release-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$headers = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
@@ -52,7 +52,7 @@ $deployment = Invoke-RestMethod -Uri $octopusURL/api/$($space.Id)/deployments -M
Add-Type -Path 'path\to\Octopus.Client.dll'
$octopusURL = "https://youroctourl/"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
$projectName = "Your Project Name"
@@ -102,7 +102,7 @@ catch {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -159,7 +159,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
@@ -291,14 +291,14 @@ func GetSpace(octopusURL *url.URL, APIKey string, spaceName string) *octopusdepl
func GetProjectReleases(octopusURL *url.URL, APIKey string, space *octopusdeploy.Space, project *octopusdeploy.Project) []interface{} {
// Define api endpoint
- projectReleasesEndoint := octopusURL.String() + "/api/" + space.ID + "/projects/" + project.ID + "/releases"
+ projectReleasesEndpoint := octopusURL.String() + "/api/" + space.ID + "/projects/" + project.ID + "/releases"
// Create http client
httpClient := &http.Client{}
skipAmount := 0
// Make request
- request, _ := http.NewRequest("GET", projectReleasesEndoint, nil)
+ request, _ := http.NewRequest("GET", projectReleasesEndpoint, nil)
request.Header.Set("X-Octopus-ApiKey", APIKey)
response, err := httpClient.Do(request)
diff --git a/src/shared-content/scripts/deploy-release-with-prompted-variables-scripts.include.md b/src/shared-content/scripts/deploy-release-with-prompted-variables-scripts.include.md
index 3d2b4e4a2b..50ec599368 100644
--- a/src/shared-content/scripts/deploy-release-with-prompted-variables-scripts.include.md
+++ b/src/shared-content/scripts/deploy-release-with-prompted-variables-scripts.include.md
@@ -44,7 +44,7 @@ foreach($element in $deploymentPreview.Form.Elements)
$uniqueName = $element.Name
$isRequired = $element.Control.Required
- $promptedVariablefound = $false
+ $promptedVariableFound = $false
Write-Host "Looking for the prompted variable value for $nameToSearchFor"
foreach ($promptedValue in $promptedValueList)
@@ -157,7 +157,7 @@ $deployment = $repositoryForSpace.Deployments.Create($deployment)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -453,14 +453,14 @@ func GetSpace(octopusURL *url.URL, APIKey string, spaceName string) *octopusdepl
func GetProjectReleases(octopusURL *url.URL, APIKey string, space *octopusdeploy.Space, project *octopusdeploy.Project) []interface{} {
// Define api endpoint
- projectReleasesEndoint := octopusURL.String() + "/api/" + space.ID + "/projects/" + project.ID + "/releases"
+ projectReleasesEndpoint := octopusURL.String() + "/api/" + space.ID + "/projects/" + project.ID + "/releases"
// Create http client
httpClient := &http.Client{}
skipAmount := 0
// Make request
- request, _ := http.NewRequest("GET", projectReleasesEndoint, nil)
+ request, _ := http.NewRequest("GET", projectReleasesEndpoint, nil)
request.Header.Set("X-Octopus-ApiKey", APIKey)
response, err := httpClient.Do(request)
diff --git a/src/shared-content/scripts/disable-project-triggers-scripts.include.md b/src/shared-content/scripts/disable-project-triggers-scripts.include.md
index 01b01c8d64..455a887bd2 100644
--- a/src/shared-content/scripts/disable-project-triggers-scripts.include.md
+++ b/src/shared-content/scripts/disable-project-triggers-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$projectName = "MyProject"
@@ -39,7 +39,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
@@ -79,14 +79,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
string projectName = "MyProject";
@@ -130,7 +130,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/download-artifact-from-deployment-scripts.include.md b/src/shared-content/scripts/download-artifact-from-deployment-scripts.include.md
index a848ddba58..d34f74ecd6 100644
--- a/src/shared-content/scripts/download-artifact-from-deployment-scripts.include.md
+++ b/src/shared-content/scripts/download-artifact-from-deployment-scripts.include.md
@@ -7,7 +7,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$OctopusURL = "YOUR INSTANCE URL"
$SpaceName = "YOUR SPACE NAME"
-$APIKey = "API-YOURAPIKEY"
+$APIKey = "API-YOUR-KEY"
$projectName = "YOUR PROJECT NAME"
$releaseVersion = "YOUR RELEASE VERSION"
$environmentName = "YOUR ENVIRONMENT NAME"
@@ -128,7 +128,7 @@ foreach ($artifact in $artifacts.Items)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
diff --git a/src/shared-content/scripts/download-artifact-from-runbook-scripts.include.md b/src/shared-content/scripts/download-artifact-from-runbook-scripts.include.md
index 9e6c5c1a16..5079b73065 100644
--- a/src/shared-content/scripts/download-artifact-from-runbook-scripts.include.md
+++ b/src/shared-content/scripts/download-artifact-from-runbook-scripts.include.md
@@ -5,7 +5,7 @@
$ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$projectName = "My Project"
@@ -105,14 +105,14 @@ foreach ($runbookRun in $runbookRuns.Items)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://your.octopus.app";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
string projectName = "My Project";
string runbookName = "My Runbook";
diff --git a/src/shared-content/scripts/download-package-scripts.include.md b/src/shared-content/scripts/download-package-scripts.include.md
index 48945cc4db..84978169c7 100644
--- a/src/shared-content/scripts/download-package-scripts.include.md
+++ b/src/shared-content/scripts/download-package-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$packageName = "packageName"
@@ -35,7 +35,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
$packageName = "packageName"
$packageVersion = "1.0.0.0"
@@ -71,17 +71,17 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
-string packageName = "packagename";
+string packageName = "package_name";
string packageVersion = "1.0.0.0";
string outputFolder = @"C:\Temp\";
@@ -126,7 +126,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
@@ -141,7 +141,7 @@ def get_by_name(uri, name):
space_name = "Default"
package_output_folder = '/path/to/output/package/to'
-package_name = 'packagename'
+package_name = 'package_name'
package_version = '1.0.0.0'
space = get_by_name('{0}/spaces/all'.format(octopus_server_uri), space_name)
diff --git a/src/shared-content/scripts/enable-disable-machine-scripts.include.md b/src/shared-content/scripts/enable-disable-machine-scripts.include.md
index 54eb2b69ef..987e638782 100644
--- a/src/shared-content/scripts/enable-disable-machine-scripts.include.md
+++ b/src/shared-content/scripts/enable-disable-machine-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$machineName = "MyMachine"
$machineEnabled = $true
@@ -34,7 +34,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$machineName = "MyMachine"
$machineEnabled = $true
@@ -70,14 +70,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
var machineName = "MyMachine";
bool enabled = false;
@@ -118,7 +118,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
diff --git a/src/shared-content/scripts/environment-permissions-report.include.md b/src/shared-content/scripts/environment-permissions-report.include.md
index 615c609b19..90769e6be6 100644
--- a/src/shared-content/scripts/environment-permissions-report.include.md
+++ b/src/shared-content/scripts/environment-permissions-report.include.md
@@ -100,7 +100,7 @@ function Invoke-OctopusApi
Write-OctopusVerbose "Ignoring cache."
}
- Write-OctopusVerbose "No data to post or put, calling bog standard invoke-restmethod for $url"
+ Write-OctopusVerbose "No data to post or put, calling bog standard Invoke-RestMethod for $url"
$result = Invoke-RestMethod -Method $method -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -ContentType 'application/json; charset=utf-8'
if ($cachedResults.ContainsKey($url) -eq $true)
@@ -1060,7 +1060,7 @@ foreach ($permission in $permissionsReport)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -1136,7 +1136,7 @@ class Permission
}
}
- public bool IncludScope
+ public bool IncludeScope
{
get;
set;
@@ -1280,7 +1280,7 @@ static System.Collections.Generic.List GetEnvironmentsScopedToProject (P
{
if (!scopedEnvironments.Contains(environmentId))
{
- Console.WriteLine(string.Format("Adding {0} to {1} environemnt list", environmentId, Project.Name));
+ Console.WriteLine(string.Format("Adding {0} to {1} environment list", environmentId, Project.Name));
scopedEnvironments.Add(environmentId);
}
}
@@ -1454,7 +1454,7 @@ static void WritePermissionList (string PermissionName, System.Collections.Gener
var octopusURL = "https://YourURL";
var octopusAPIKey = "API-YourAPIKey";
string spaceFilter = "all";
-string environmentfilter = "Development";
+string environmentFilter = "Development";
string permissionToCheck = "DeploymentCreate";
string reportPath = "path:\\to\\csv.file";
string userFilter = "all";
@@ -1481,7 +1481,7 @@ foreach (var spaceName in spaceList)
var projectList = repositoryForSpace.Projects.GetAll();
var environmentList = repositoryForSpace.Environments.GetAll();
- environmentList = FilterEnvironmentList(environmentList, environmentfilter);
+ environmentList = FilterEnvironmentList(environmentList, environmentFilter);
var tenantList = repositoryForSpace.Tenants.GetAll();
diff --git a/src/shared-content/scripts/find-events-by-date-scripts.include.md b/src/shared-content/scripts/find-events-by-date-scripts.include.md
index 802e10b1bd..248eead39b 100644
--- a/src/shared-content/scripts/find-events-by-date-scripts.include.md
+++ b/src/shared-content/scripts/find-events-by-date-scripts.include.md
@@ -87,7 +87,7 @@ Add-Type -Path "path:\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$eventDate = "8/1/2021"
@@ -129,7 +129,7 @@ catch
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
using System;
diff --git a/src/shared-content/scripts/find-projects-using-variable-set-scripts.include.md b/src/shared-content/scripts/find-projects-using-variable-set-scripts.include.md
index 48f6c5990d..43de96b239 100644
--- a/src/shared-content/scripts/find-projects-using-variable-set-scripts.include.md
+++ b/src/shared-content/scripts/find-projects-using-variable-set-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$librarySetName = "MyLibrarySet"
@@ -42,7 +42,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$librarySetName = "MyLibrarySet"
@@ -84,14 +84,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string librarySetName = "MyLibrarySet";
@@ -138,7 +138,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
@@ -152,10 +152,10 @@ def get_by_name(uri, name):
return next((x for x in resources if x['Name'] == name), None)
space_name = 'Default'
-libraryset_name = 'Your variable set name'
+library_set_name = 'Your variable set name'
space = get_by_name('{0}/spaces/all'.format(octopus_server_uri), space_name)
-library_variable_set = get_by_name('{0}/{1}/libraryvariablesets/all'.format(octopus_server_uri, space['Id']), libraryset_name)
+library_variable_set = get_by_name('{0}/{1}/libraryvariablesets/all'.format(octopus_server_uri, space['Id']), library_set_name)
library_variable_set_id = library_variable_set['Id']
projects = get_octopus_resource('{0}/{1}/projects/all'.format(octopus_server_uri, space['Id']))
@@ -163,7 +163,7 @@ projects = get_octopus_resource('{0}/{1}/projects/all'.format(octopus_server_uri
for project in projects:
project_variable_sets = project['IncludedLibraryVariableSetIds']
if library_variable_set_id in project_variable_sets:
- print('Project \'{0}\' is using library variable set \'{1}\''.format(project['Name'], libraryset_name))
+ print('Project \'{0}\' is using library variable set \'{1}\''.format(project['Name'], library_set_name))
```
diff --git a/src/shared-content/scripts/find-target-usage-no-tenants.include.md b/src/shared-content/scripts/find-target-usage-no-tenants.include.md
index 7c7e135cc7..5306cb181e 100644
--- a/src/shared-content/scripts/find-target-usage-no-tenants.include.md
+++ b/src/shared-content/scripts/find-target-usage-no-tenants.include.md
@@ -61,7 +61,7 @@ function Invoke-OctopusApi
return Invoke-RestMethod -Method $methodToUse -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -Body $body -ContentType 'application/json; charset=utf-8'
}
- Write-Verbose "No data to post or put, calling bog standard invoke-restmethod for $url"
+ Write-Verbose "No data to post or put, calling bog standard Invoke-RestMethod for $url"
$result = Invoke-RestMethod -Method $methodToUse -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -ContentType 'application/json; charset=utf-8'
return $result
@@ -132,7 +132,7 @@ function Get-ProjectEnvironmentIds
$environmentIds = @()
foreach ($lifecycleId in $lifeCycleIds)
{
- $lifecycle = Invoke-OctopusApi -octopusUrl $octopusUrl -spaceId $spaceid -apiKey $octopusApiKey -endPoint "lifecycles/$lifecycleId"
+ $lifecycle = Invoke-OctopusApi -octopusUrl $octopusUrl -spaceId $spaceId -apiKey $octopusApiKey -endPoint "lifecycles/$lifecycleId"
$phases = $lifecycle.Phases
@@ -293,7 +293,7 @@ if ($null -eq $target)
Write-Host "The id for $targetName is $($target.Id)"
-$environmentList = Invoke-OctopusApi -octopusUrl $octopusurl -endPoint "environments?skip=0&take=10000" -spaceId $spaceId -apiKey $octopusApiKey
+$environmentList = Invoke-OctopusApi -octopusUrl $octopusUrl -endPoint "environments?skip=0&take=10000" -spaceId $spaceId -apiKey $octopusApiKey
$allEnvironmentIds = @($environmentList.Items |Select-Object -ExpandProperty Id)
$targetResults = @()
@@ -436,7 +436,7 @@ function Get-EnvironmentsScopedToProject
{
if ($scopedEnvironmentList -notcontains $environmentId)
{
- Write-Host "Adding $environmentId to $($project.Name) enviornment list"
+ Write-Host "Adding $environmentId to $($project.Name) environment list"
$scopedEnvironmentList += $environmentId
}
}
@@ -445,7 +445,7 @@ function Get-EnvironmentsScopedToProject
{
if ($scopedEnvironmentList -notcontains $environmentId)
{
- Write-Host "Adding $environmentId to $($project.Name) enviornment list"
+ Write-Host "Adding $environmentId to $($project.Name) environment list"
$scopedEnvironmentList += $environmentId
}
}
@@ -512,7 +512,7 @@ function Get-TargetIsScopedToProcess
if (($null -ne $action.ExcludedEnvironments))
{
$hasExcludedEnvironmentScoping = $action.ExcludedEnvironments.Count -gt 0
- if ($hasExcludedEnvironmentScopint -eq $true)
+ if ($hasExcludedEnvironmentScoping -eq $true)
{
$environmentsTargetCanStillDeployTo = @()
foreach ($environmentId in $target.EnvironmentIds)
@@ -583,9 +583,9 @@ foreach ($project in $projects)
$targetHasMatchingEnvironment = $false
# Loop through environments
- foreach ($envronmentId in $projectEnvironments)
+ foreach ($environmentId in $projectEnvironments)
{
- if ($target.EnvironmentIds -contains $envronmentId)
+ if ($target.EnvironmentIds -contains $environmentId)
{
$targetHasMatchingEnvironment = $true
break
@@ -686,7 +686,7 @@ else
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -876,7 +876,7 @@ static System.Collections.Generic.List GetEnvironmentsScopedToProject(Pr
{
if (!scopedEnvironments.Contains(environmentId))
{
- Console.WriteLine(string.Format("Adding {0} to {1} environemnt list", environmentId, Project.Name));
+ Console.WriteLine(string.Format("Adding {0} to {1} environment list", environmentId, Project.Name));
scopedEnvironments.Add(environmentId);
}
}
@@ -946,11 +946,11 @@ static bool GetTargetIsScopedToProcess(Octopus.Client.Model.IProcessResource pro
if(hasExcludedEnvironmentScoping)
{
System.Collections.Generic.List environmentsTargetCanStillDeployTo = new System.Collections.Generic.List();
- foreach (var environmetnId in target.EnvironmentIds)
+ foreach (var environmentId in target.EnvironmentIds)
{
- if ((!action.ExcludedEnvironments.Contains(environmetnId)) && (projectEnvironmentList.Contains(environmetnId)))
+ if ((!action.ExcludedEnvironments.Contains(environmentId)) && (projectEnvironmentList.Contains(environmentId)))
{
- environmentsTargetCanStillDeployTo.Add(environmetnId);
+ environmentsTargetCanStillDeployTo.Add(environmentId);
}
}
diff --git a/src/shared-content/scripts/find-teams-with-role-scripts.include.md b/src/shared-content/scripts/find-teams-with-role-scripts.include.md
index 2f46588153..696d3333bd 100644
--- a/src/shared-content/scripts/find-teams-with-role-scripts.include.md
+++ b/src/shared-content/scripts/find-teams-with-role-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$userRoleName = "Deployment creator"
@@ -53,7 +53,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$userRoleName = "Deployment creator"
@@ -77,7 +77,7 @@ try
$teamNames = @()
foreach ($team in $teams)
{
- # Get scopeduserrole
+ # Get scoped user role
$scopedUserRole = $repositoryForSpace.Teams.GetScopedUserRoles($team) | Where-Object {$_.UserRoleId -eq $userRole.Id}
# Check for null
@@ -108,14 +108,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string userRoleName = "Deployment creator";
@@ -216,7 +216,7 @@ uri = '{0}/api/spaces'.format(octopus_server_uri)
spaces = get_octopus_resource(uri, headers)
space = next((x for x in spaces if x['Name'] == space_name), None)
-# Get userrole
+# Get user role
uri = '{0}/api/userroles'.format(octopus_server_uri)
user_roles = get_octopus_resource(uri, headers)
user_role = next((x for x in user_roles if x['Name'] == role_name), None)
diff --git a/src/shared-content/scripts/find-unused-projects.include.md b/src/shared-content/scripts/find-unused-projects.include.md
index b23da67434..69c9344ce1 100644
--- a/src/shared-content/scripts/find-unused-projects.include.md
+++ b/src/shared-content/scripts/find-unused-projects.include.md
@@ -64,7 +64,7 @@ function Invoke-OctopusApi
Write-Verbose "Ignoring cache."
}
- Write-Verbose "No data to post or put, calling bog standard invoke-restmethod for $url"
+ Write-Verbose "No data to post or put, calling bog standard Invoke-RestMethod for $url"
$result = Invoke-RestMethod -Method $method -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -ContentType 'application/json; charset=utf-8'
if ($cachedResults.ContainsKey($url) -eq $true)
@@ -230,13 +230,13 @@ foreach ($project in $oldProjects)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://your.octopus.app";
-var octopusAPIKey = "API-YOURKEY";
+var octopusAPIKey = "API-YOUR-KEY";
DateTime currentUtcTime = DateTime.Now.ToUniversalTime();
System.Collections.Generic.List oldProjects = new System.Collections.Generic.List();
int daysSinceLastRelease = 90;
diff --git a/src/shared-content/scripts/find-unused-targets.include.md b/src/shared-content/scripts/find-unused-targets.include.md
index c54778a2d0..bba261b804 100644
--- a/src/shared-content/scripts/find-unused-targets.include.md
+++ b/src/shared-content/scripts/find-unused-targets.include.md
@@ -50,7 +50,7 @@ function Invoke-OctopusApi
return Invoke-RestMethod -Method $method -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -Body $body -ContentType 'application/json; charset=utf-8'
}
- Write-Verbose "No data to post or put, calling bog standard invoke-restmethod for $url"
+ Write-Verbose "No data to post or put, calling bog standard Invoke-RestMethod for $url"
$result = Invoke-RestMethod -Method $method -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -ContentType 'application/json; charset=utf-8'
return $result
@@ -547,7 +547,7 @@ static CategorizedMachines UpdateCategorizedMachines (CategorizedMachines catego
}
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -718,7 +718,7 @@ def update_categorized_machines(categorized_machines, space, octopus_server_uri,
octopus_server_uri = 'https://your.octopus.app'
-octopus_api_key = 'API-YOURKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
categorized_machines = {
'NotCountedMachines': [],
diff --git a/src/shared-content/scripts/find-variable-usage-scripts.include.md b/src/shared-content/scripts/find-variable-usage-scripts.include.md
index b68535e70e..b1f41447d5 100644
--- a/src/shared-content/scripts/find-variable-usage-scripts.include.md
+++ b/src/shared-content/scripts/find-variable-usage-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
# Specify the Space to search in
@@ -49,7 +49,7 @@ foreach ($project in $projects) {
$matchingNamedVariables = $projectVariableSet.Variables | Where-Object { $_.Name -ieq "$variableToFind" }
if ($null -ne $matchingNamedVariables) {
foreach ($match in $matchingNamedVariables) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
VariableSet = $null
MatchType = "Named Project Variable"
@@ -68,7 +68,7 @@ foreach ($project in $projects) {
$matchingValueVariables = $projectVariableSet.Variables | Where-Object { $_.Value -like "*#{$variableToFind}*" }
if ($null -ne $matchingValueVariables) {
foreach ($match in $matchingValueVariables) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
VariableSet = $null
MatchType = "Referenced Project Variable"
@@ -94,7 +94,7 @@ foreach ($project in $projects) {
$propName = $prop.Name
$json = $step.$propName | ConvertTo-Json -Compress -Depth 10
if ($null -ne $json -and ($json -like "*$variableToFind*")) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
VariableSet = $null
MatchType = "Step"
@@ -128,7 +128,7 @@ foreach ($project in $projects) {
$propName = $prop.Name
$json = $step.$propName | ConvertTo-Json -Compress -Depth 10
if ($null -ne $json -and ($json -like "*$variableToFind*")) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
VariableSet = $null
MatchType = "Runbook Step"
@@ -154,7 +154,7 @@ if ($searchVariableSets -eq $True) {
$variables = (Invoke-RestMethod -Method Get "$OctopusURL/$($VariableSet.Links.Variables)" -Headers $header).Variables | Where-Object { $_.Value -like "*#{$variableToFind}*" }
$link = ($VariableSet.Links.Self -replace "/api", "app#") -replace "/libraryvariablesets/", "/library/variables/"
foreach ($variable in $variables) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $null
VariableSet = $VariableSet.Name
MatchType = "Variable Set"
@@ -230,8 +230,8 @@ foreach ($project in $projects)
{
foreach ($match in $matchingNamedVariable)
{
- # Create new hashtable
- $result = [pscustomobject]@{
+ # Create new hash table
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType = "Named Project Variable"
Context = $match.Name
@@ -251,7 +251,7 @@ foreach ($project in $projects)
{
foreach ($match in $matchingValueVariables)
{
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType = "Referenced Project Variable"
Context = $match.Name
@@ -280,7 +280,7 @@ foreach ($project in $projects)
{
if ($action.Properties[$property].Value -like "*$variableToFind*")
{
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType = "Step"
Context = $step.Name
@@ -320,7 +320,7 @@ foreach ($project in $projects)
{
if ($action.Properties[$property].Value -like "*$variableToFind*")
{
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType = "Runbook Step"
Context = $runbook.Name
@@ -361,7 +361,7 @@ if ($variableTracking.Count -gt 0)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -613,7 +613,7 @@ import requests
import csv
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
@@ -644,7 +644,7 @@ csv_export_path = ''
variable_tracker = []
octopus_server_uri = octopus_server_uri.rstrip('/')
-octopus_server_baselink_uri = octopus_server_uri.rstrip('api')
+octopus_server_base_link_uri = octopus_server_uri.rstrip('api')
space = get_by_name('{0}/spaces/all'.format(octopus_server_uri), space_name)
print('Looking for usages of variable named \'{0}\' in space \'{1}\''.format(variable_name, space_name))
@@ -667,7 +667,7 @@ for project in projects:
'Context': variable['Name'],
'AdditionalContext': None,
'Property': None,
- 'Link': '{0}{1}/variables'.format(octopus_server_baselink_uri, project_web_uri)
+ 'Link': '{0}{1}/variables'.format(octopus_server_base_link_uri, project_web_uri)
}
if tracked_variable not in variable_tracker:
variable_tracker.append(tracked_variable)
@@ -682,7 +682,7 @@ for project in projects:
'Context': variable['Name'],
'AdditionalContext': variable['Value'],
'Property': None,
- 'Link': '{0}{1}/variables'.format(octopus_server_baselink_uri, project_web_uri)
+ 'Link': '{0}{1}/variables'.format(octopus_server_base_link_uri, project_web_uri)
}
if tracked_variable not in variable_tracker:
variable_tracker.append(tracked_variable)
@@ -700,7 +700,7 @@ for project in projects:
'Context': step['Name'],
'Property': step_key,
'AdditionalContext': None,
- 'Link': '{0}{1}/deployments/process/steps?actionId={2}'.format(octopus_server_baselink_uri, project_web_uri, step['Actions'][0]['Id'])
+ 'Link': '{0}{1}/deployments/process/steps?actionId={2}'.format(octopus_server_base_link_uri, project_web_uri, step['Actions'][0]['Id'])
}
if tracked_variable not in variable_tracker:
variable_tracker.append(tracked_variable)
@@ -711,7 +711,7 @@ for project in projects:
runbooks = runbooks_resource['Items']
for runbook in runbooks:
runbook_processes_link = runbook['Links']['RunbookProcesses']
- runbook_process = get_octopus_resource('{0}/{1}'.format(octopus_server_baselink_uri, runbook_processes_link))
+ runbook_process = get_octopus_resource('{0}/{1}'.format(octopus_server_base_link_uri, runbook_processes_link))
for step in runbook_process['Steps']:
for step_key in step.keys():
step_property_value = str(step[step_key])
@@ -722,7 +722,7 @@ for project in projects:
'Context': runbook['Name'],
'Property': step_key,
'AdditionalContext': step['Name'],
- 'Link': '{0}{1}/operations/runbooks/{2}/process/{3}/steps?actionId={4}'.format(octopus_server_baselink_uri, project_web_uri, runbook['Id'], runbook['RunbookProcessId'], step['Actions'][0]['Id'])
+ 'Link': '{0}{1}/operations/runbooks/{2}/process/{3}/steps?actionId={4}'.format(octopus_server_base_link_uri, project_web_uri, runbook['Id'], runbook['RunbookProcessId'], step['Actions'][0]['Id'])
}
if tracked_variable not in variable_tracker:
variable_tracker.append(tracked_variable)
diff --git a/src/shared-content/scripts/find-variable-value-usage-scripts.include.md b/src/shared-content/scripts/find-variable-value-usage-scripts.include.md
index 65ae28e77d..53015f4dc2 100644
--- a/src/shared-content/scripts/find-variable-value-usage-scripts.include.md
+++ b/src/shared-content/scripts/find-variable-value-usage-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
@@ -15,7 +15,7 @@ $spaceName = "Default"
# Specify the Variable Value to find, without OctoStache syntax
-$variableValueToFind = "mytestvalue"
+$variableValueToFind = "MyTestValue"
# Optional: set a path to export to csv
$csvExportPath = ""
@@ -68,7 +68,7 @@ foreach ($project in $projects)
$ProjectMatchingNamedVariables = $projectVariableSet.Variables | Where-Object {$_.Value -like "*$variableValueToFind*"}
if($null -ne $ProjectMatchingNamedVariables) {
foreach($match in $ProjectMatchingNamedVariables) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
VariableSet = $null
MatchType = "Named Project Variable"
@@ -162,7 +162,7 @@ foreach ($project in $projects)
$ProjectMatchingNamedVariables = $projectVariableSet.Variables | Where-Object {$_.Value -like "*$variableValueToFind*"}
if($null -ne $ProjectMatchingNamedVariables) {
foreach($match in $ProjectMatchingNamedVariables) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
VariableSet = $null
MatchType = "Named Project Variable"
@@ -194,7 +194,7 @@ if($variableTracking.Count -gt 0) {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -238,7 +238,7 @@ class VariableResult
}
var octopusURL = "https://your.octopus.app";
-var octopusAPIKey = "API-YOURKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "Default";
string variableValueToFind = "MyValue";
string csvExportPath = "path:\\to\\variable.csv";
diff --git a/src/shared-content/scripts/find-variableset-variables-usage-scripts.include.md b/src/shared-content/scripts/find-variableset-variables-usage-scripts.include.md
index 68bc44dbc1..dcf98e4709 100644
--- a/src/shared-content/scripts/find-variableset-variables-usage-scripts.include.md
+++ b/src/shared-content/scripts/find-variableset-variables-usage-scripts.include.md
@@ -1,4 +1,4 @@
-
+
PowerShell (REST API)
```powershell
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
# Specify the Space to search in
@@ -57,7 +57,7 @@ foreach ($project in $projects)
if($null -ne $matchingValueVariables) {
foreach($match in $matchingValueVariables) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType = "Referenced Project Variable"
VariableSetVariable = $variable.Name
@@ -91,7 +91,7 @@ foreach ($project in $projects)
foreach($variable in $variables)
{
if($null -ne $json -and ($json -like "*$($variable.Name)*")) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType= "Step"
VariableSetVariable = $variable.Name
@@ -133,7 +133,7 @@ foreach ($project in $projects)
foreach($variable in $variables)
{
if($null -ne $json -and ($json -like "*$($variable.Name)*")) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType= "Runbook Step"
VariableSetVariable = $variable.Name
@@ -166,7 +166,7 @@ if($variableTracking.Count -gt 0) {
```
-
+
PowerShell (Octopus.Client)
```powershell
@@ -235,7 +235,7 @@ foreach ($project in $projects)
if($null -ne $matchingValueVariables) {
foreach($match in $matchingValueVariables) {
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType = "Referenced Project Variable"
VariableSetVariable = $variable.Name
@@ -267,7 +267,7 @@ foreach ($project in $projects)
{
if ($action.Properties[$property].Value -like "*$($variable.Name)*")
{
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType= "Step"
VariableSetVariable = $variable.Name
@@ -309,7 +309,7 @@ foreach ($project in $projects)
{
if ($action.Properties[$property].Value -like "*$($variable.Name)*")
{
- $result = [pscustomobject]@{
+ $result = [PSCustomObject]@{
Project = $project.Name
MatchType= "Runbook Step"
VariableSetVariable = $variable.Name
@@ -343,12 +343,12 @@ if($variableTracking.Count -gt 0) {
```
-
+
C#
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -594,7 +594,7 @@ if (variableTracking.Count > 0)
```
-
+
Python3
```python
@@ -603,7 +603,7 @@ import requests
import csv
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
@@ -633,7 +633,7 @@ csv_export_path = ''
variable_tracker = []
octopus_server_uri = octopus_server_uri.rstrip('/')
-octopus_server_baselink_uri = octopus_server_uri.rstrip('api')
+octopus_server_base_link_uri = octopus_server_uri.rstrip('api')
space = get_by_name('{0}/spaces/all'.format(octopus_server_uri), space_name)
library_variableset_resource = get_by_name('{0}/{1}/libraryvariablesets/all'.format(octopus_server_uri, space['Id']), library_variableset_name)
@@ -662,7 +662,7 @@ for project in projects:
'Context': matching_variable['Name'],
'AdditionalContext': matching_variable['Value'],
'Property': None,
- 'Link': '{0}{1}/variables'.format(octopus_server_baselink_uri, project_web_uri)
+ 'Link': '{0}{1}/variables'.format(octopus_server_base_link_uri, project_web_uri)
}
if tracked_variable not in variable_tracker:
variable_tracker.append(tracked_variable)
@@ -683,7 +683,7 @@ for project in projects:
'Context': step['Name'],
'Property': step_key,
'AdditionalContext': None,
- 'Link': '{0}{1}/deployments/process/steps?actionId={2}'.format(octopus_server_baselink_uri, project_web_uri, step['Actions'][0]['Id'])
+ 'Link': '{0}{1}/deployments/process/steps?actionId={2}'.format(octopus_server_base_link_uri, project_web_uri, step['Actions'][0]['Id'])
}
if tracked_variable not in variable_tracker:
variable_tracker.append(tracked_variable)
@@ -694,7 +694,7 @@ for project in projects:
runbooks = runbooks_resource['Items']
for runbook in runbooks:
runbook_processes_link = runbook['Links']['RunbookProcesses']
- runbook_process = get_octopus_resource('{0}/{1}'.format(octopus_server_baselink_uri, runbook_processes_link))
+ runbook_process = get_octopus_resource('{0}/{1}'.format(octopus_server_base_link_uri, runbook_processes_link))
for step in runbook_process['Steps']:
for step_key in step.keys():
step_property_value = str(step[step_key])
@@ -708,7 +708,7 @@ for project in projects:
'Context': runbook['Name'],
'Property': step_key,
'AdditionalContext': step['Name'],
- 'Link': '{0}{1}/operations/runbooks/{2}/process/{3}/steps?actionId={4}'.format(octopus_server_baselink_uri, project_web_uri, runbook['Id'], runbook['RunbookProcessId'], step['Actions'][0]['Id'])
+ 'Link': '{0}{1}/operations/runbooks/{2}/process/{3}/steps?actionId={4}'.format(octopus_server_base_link_uri, project_web_uri, runbook['Id'], runbook['RunbookProcessId'], step['Actions'][0]['Id'])
}
if tracked_variable not in variable_tracker:
variable_tracker.append(tracked_variable)
@@ -736,7 +736,7 @@ if results_count > 0:
```
-
+
Go
```go
diff --git a/src/shared-content/scripts/get-feeds-scripts.include.md b/src/shared-content/scripts/get-feeds-scripts.include.md
index 2bb3548725..4a6aa677d3 100644
--- a/src/shared-content/scripts/get-feeds-scripts.include.md
+++ b/src/shared-content/scripts/get-feeds-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
@@ -32,7 +32,7 @@ Add-Type -Path "C:\Octo\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint $octopusURL, $octopusAPIKey
@@ -68,14 +68,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
@@ -117,7 +117,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = 'Default'
diff --git a/src/shared-content/scripts/get-steps-using-package-scripts.include.md b/src/shared-content/scripts/get-steps-using-package-scripts.include.md
index 6c882e8dac..e813337bed 100644
--- a/src/shared-content/scripts/get-steps-using-package-scripts.include.md
+++ b/src/shared-content/scripts/get-steps-using-package-scripts.include.md
@@ -53,7 +53,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$packageId = "PackageId"
@@ -92,14 +92,14 @@ foreach ($project in $projectList) {
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string packageId = "PackageId";
diff --git a/src/shared-content/scripts/get-steps-using-role-scripts.include.md b/src/shared-content/scripts/get-steps-using-role-scripts.include.md
index c411b4038f..b71a4abe1f 100644
--- a/src/shared-content/scripts/get-steps-using-role-scripts.include.md
+++ b/src/shared-content/scripts/get-steps-using-role-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$roleName = "My role"
@@ -34,7 +34,7 @@ foreach ($project in $projectList)
# Get steps
foreach ($step in $deploymentProcess.Steps)
{
- if (($null -ne $step.Properties.'Octopus.Action.TargetRoles') -and ($step.properties.'Octopus.Action.TargetRoles'.Split(',') -Icontains $roleName ))
+ if (($null -ne $step.Properties.'Octopus.Action.TargetRoles') -and ($step.properties.'Octopus.Action.TargetRoles'.Split(',') -icontains $roleName ))
{
Write-Host "Step $($step.Name) of $($project.Name) is using role $roleName"
}
@@ -51,7 +51,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$roleName = "My role"
@@ -75,7 +75,7 @@ foreach($project in $projectList)
# Loop through steps
foreach ($step in $deploymentProcess.Steps)
{
- if($step.properties.'Octopus.Action.TargetRoles' -and ($step.Properties.'Octopus.Action.TargetRoles'.Value.Split(',') -Icontains $roleName))
+ if($step.properties.'Octopus.Action.TargetRoles' -and ($step.Properties.'Octopus.Action.TargetRoles'.Value.Split(',') -icontains $roleName))
{
"Step [$($step.Name)] from project [$($project.Name)] is using the role [$($roleName )]"
}
@@ -89,14 +89,14 @@ foreach($project in $projectList)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string roleName = "My role";
@@ -150,7 +150,7 @@ catch (Exception ex)
import json
import requests
octopus_server_uri = 'https://your.octopus.app/'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
response = requests.get(uri, headers=headers)
diff --git a/src/shared-content/scripts/list-deployments-to-environment-scripts.include.md b/src/shared-content/scripts/list-deployments-to-environment-scripts.include.md
index c24aff516a..50a216ee12 100644
--- a/src/shared-content/scripts/list-deployments-to-environment-scripts.include.md
+++ b/src/shared-content/scripts/list-deployments-to-environment-scripts.include.md
@@ -83,7 +83,7 @@ Write-Host "Retrieved $($deployments.Count) deployments to environment $($enviro
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
diff --git a/src/shared-content/scripts/list-users-scripts.include.md b/src/shared-content/scripts/list-users-scripts.include.md
index 7960c73257..555243f562 100644
--- a/src/shared-content/scripts/list-users-scripts.include.md
+++ b/src/shared-content/scripts/list-users-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://your.octopus.app"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
# Optional: include user role details?
@@ -35,7 +35,7 @@ do {
# Filter non-active users
if($includeNonActiveUsers -eq $False) {
- Write-Host "Filtering users who arent active from results"
+ Write-Host "Filtering users who aren't active from results"
$usersList = $usersList | Where-Object {$_.IsActive -eq $True}
}
@@ -181,7 +181,7 @@ $usersList = @()
if ($includeNonActiveUsers -eq $true)
{
# Filter out inactive users
- Write-Host "Filtering users who arent active from results"
+ Write-Host "Filtering users who aren't active from results"
$users = $users | Where-Object {$_.IsActive -eq $True}
}
@@ -264,7 +264,7 @@ $usersList | Format-Table
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
diff --git a/src/shared-content/scripts/list-users-with-editing-roles-scripts.include.md b/src/shared-content/scripts/list-users-with-editing-roles-scripts.include.md
index e0b593c6ac..aa8fb68d05 100644
--- a/src/shared-content/scripts/list-users-with-editing-roles-scripts.include.md
+++ b/src/shared-content/scripts/list-users-with-editing-roles-scripts.include.md
@@ -71,7 +71,7 @@ Add-Type -Path 'path:\to\Octopus.Client.dll'
# Define working variables
$octopusURL = "https://YourURL"
$octopusAPIKey = "API-YourAPIKey"
-$csvExportPath = "path:\to\editpermissions.csv"
+$csvExportPath = "path:\to\edit-permissions.csv"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint($octopusURL, $octopusAPIKey)
$repository = New-Object Octopus.Client.OctopusRepository($endpoint)
@@ -129,7 +129,7 @@ if (![string]::IsNullOrWhiteSpace($csvExportPath))
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -179,7 +179,7 @@ class UserDetails
var octopusURL = "https://YourURL";
var octopusAPIKey = "API-YourAPIKey";
-string csvExportPath = "path:\\to\\editpermissions.csv";
+string csvExportPath = "path:\\to\\edit-permissions.csv";
System.Collections.Generic.List usersList = new System.Collections.Generic.List();
@@ -306,7 +306,7 @@ def get_octopus_resource(uri, headers, skip_count = 0):
octopus_server_uri = 'https://YourURL'
octopus_api_key = 'API-YourAPIKey'
headers = {'X-Octopus-ApiKey': octopus_api_key}
-csv_export_path = "path:\\to\\editpermissions.csv"
+csv_export_path = "path:\\to\\edit-permissions.csv"
# Get users
uri = '{0}/api/users'.format(octopus_server_uri)
@@ -382,7 +382,7 @@ func main() {
log.Println(err)
}
APIKey := "API-YourAPIKey"
- csvExportPath := "path:\\to\\editpermissions.csv"
+ csvExportPath := "path:\\to\\edit-permissions.csv"
usersList := []UserDetails{}
diff --git a/src/shared-content/scripts/promote-releases-not-in-destination.include.md b/src/shared-content/scripts/promote-releases-not-in-destination.include.md
index ffd067fe33..bc79b9f875 100644
--- a/src/shared-content/scripts/promote-releases-not-in-destination.include.md
+++ b/src/shared-content/scripts/promote-releases-not-in-destination.include.md
@@ -41,7 +41,7 @@ function Invoke-OctopusApi
return Invoke-RestMethod -Method $method -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -Body $body -ContentType 'application/json; charset=utf-8'
}
- Write-Host "No data to post or put, calling bog standard invoke-restmethod for $url"
+ Write-Host "No data to post or put, calling bog standard Invoke-RestMethod for $url"
$result = Invoke-RestMethod -Method $method -Uri $url -Headers @{"X-Octopus-ApiKey" = "$ApiKey" } -ContentType 'application/json; charset=utf-8'
return $result
@@ -160,7 +160,7 @@ foreach ($projectName in $splitProjectList)
TenantId = $null
UseGuidedFailure = $false
}
- $newDeployment = Invoke-OctopusApi -octopusUrl $octopusurl -apiKey $apiKey -method "POST" -spaceId $spaceId -item $newDeployment -endPoint "deployments"
+ $newDeployment = Invoke-OctopusApi -octopusUrl $octopusUrl -apiKey $apiKey -method "POST" -spaceId $spaceId -item $newDeployment -endPoint "deployments"
}
```
@@ -274,7 +274,7 @@ foreach ($name in $projectNameList)
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
diff --git a/src/shared-content/scripts/publish-runbook-scripts.include.md b/src/shared-content/scripts/publish-runbook-scripts.include.md
index 5456ab8716..43c8cda7ad 100644
--- a/src/shared-content/scripts/publish-runbook-scripts.include.md
+++ b/src/shared-content/scripts/publish-runbook-scripts.include.md
@@ -7,12 +7,12 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$projectName = "MyProject"
$runbookName = "MyRunbook"
-$snapshotName = "Snapshot 9PNENH6"
+$snapshotName = "Snapshot XXXXX"
# Get space
$space = (Invoke-RestMethod -Method Get -Uri "$octopusURL/api/spaces/all" -Headers $header) | Where-Object {$_.Name -eq $spaceName}
@@ -41,11 +41,11 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$runbookName = "MyRunbook"
-$snapshotName = "Snapshot 9PNENH7"
+$snapshotName = "Snapshot XXXXX"
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint $octopusURL, $octopusAPIKey
$repository = New-Object Octopus.Client.OctopusRepository $endpoint
@@ -82,7 +82,7 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -93,7 +93,7 @@ var octopusAPIKey = "API-APIKEY";
string spaceName = "default";
string projectName = "MyProject";
string runbookName = "MyRunbook";
-string snapshotName = "Snapshot 7PNENH8";
+string snapshotName = "Snapshot XXXXX";
// Create repository object
var endpoint = new OctopusServerEndpoint(octopusURL, octopusAPIKey);
@@ -135,7 +135,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
@@ -154,7 +154,7 @@ def get_item_by_name(uri, name):
space_name = 'Default'
project_name = 'Your project'
runbook_name = 'Your runbook'
-snapshot_name = 'Snapshot YVVCRLF'
+snapshot_name = 'Snapshot XXXXX'
space = get_by_name('{0}/spaces/all'.format(octopus_server_uri), space_name)
project = get_by_name('{0}/{1}/projects/all'.format(octopus_server_uri, space['Id']), project_name)
diff --git a/src/shared-content/scripts/push-package-scripts.include.md b/src/shared-content/scripts/push-package-scripts.include.md
index db124ee951..83afbbdc85 100644
--- a/src/shared-content/scripts/push-package-scripts.include.md
+++ b/src/shared-content/scripts/push-package-scripts.include.md
@@ -7,7 +7,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$packageFile = "path\to\package"
@@ -61,7 +61,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$packageFile = "path\to\package"
@@ -79,7 +79,7 @@ try
# Create new package resource
$package = New-Object Octopus.Client.Model.PackageResource
- # Create filestream object
+ # Create file stream object
$fileStream = New-Object System.IO.FileStream($packageFile, [System.IO.FileMode]::Open)
# Push package
@@ -104,7 +104,7 @@ finally
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -157,7 +157,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = "Default"
diff --git a/src/shared-content/scripts/register-listening-tentacle-scripts.include.md b/src/shared-content/scripts/register-listening-tentacle-scripts.include.md
index 5b0e6e1455..6e73e8d810 100644
--- a/src/shared-content/scripts/register-listening-tentacle-scripts.include.md
+++ b/src/shared-content/scripts/register-listening-tentacle-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$hostName = "MyHost"
@@ -56,7 +56,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$hostName = "MyHost"
$tentaclePort = "10933"
@@ -108,14 +108,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string hostName = "MyHost";
int tentaclePort = 10933;
@@ -174,7 +174,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
@@ -277,7 +277,7 @@ func main() {
// Get the space object
space := GetSpace(apiURL, APIKey, spaceName)
- // Creat client for space
+ // Create client for space
client := octopusAuth(apiURL, APIKey, space.ID)
// Get the environment ids
diff --git a/src/shared-content/scripts/register-polling-tentacle-scripts.include.md b/src/shared-content/scripts/register-polling-tentacle-scripts.include.md
index 9e4ea6f19f..e7f9f19dc5 100644
--- a/src/shared-content/scripts/register-polling-tentacle-scripts.include.md
+++ b/src/shared-content/scripts/register-polling-tentacle-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$communicationsStyle = "TentacleActive" # Listening mode
@@ -60,7 +60,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$hostName = "MyHost"
$tentacleThumbprint = "TentacleThumbprint"
@@ -121,14 +121,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string hostName = "OctoTempTentacle";
string[] environmentNames = { "Development", "Production" };
@@ -195,7 +195,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
@@ -215,7 +215,8 @@ environment_names = ['Development', 'Test']
target_name = 'your-target-name'
target_tentacle_thumbprint = 'your-tentacle-thumbprint'
-# The subscription id is a random 20 character id (for example: 3hw9vtskv2cbfw7zvpje) that is used to queue messages from the server to the Polling Tentacle.
+# The subscription id is a random 20 character id that is used to
+# queue messages from the server to the Polling Tentacle.
# This should match the value in the Tentacle config file.
target_polling_subscription_identifier = 'your-target-subscription'
@@ -274,7 +275,7 @@ func main() {
// Get the space object
space := GetSpace(apiURL, APIKey, spaceName)
- // Creat client for space
+ // Create client for space
client := octopusAuth(apiURL, APIKey, space.ID)
// Get the environment ids
diff --git a/src/shared-content/scripts/remove-project-from-team-scripts.include.md b/src/shared-content/scripts/remove-project-from-team-scripts.include.md
index 90f0cb6b7c..712fc165f1 100644
--- a/src/shared-content/scripts/remove-project-from-team-scripts.include.md
+++ b/src/shared-content/scripts/remove-project-from-team-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$projectName = "MyProject"
$spaceName = "default"
@@ -45,7 +45,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$teamName = "MyTeam"
@@ -87,14 +87,14 @@ catch
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
string projectName = "MyProject";
string teamName = "MyTeam";
@@ -241,7 +241,7 @@ func main() {
// Get the space object
space := GetSpace(apiURL, APIKey, spaceName)
- // Creat client for space
+ // Create client for space
client := octopusAuth(apiURL, APIKey, space.ID)
// Get team
diff --git a/src/shared-content/scripts/replace-certificate-scripts.include.md b/src/shared-content/scripts/replace-certificate-scripts.include.md
index 834abe282e..2db535cd52 100644
--- a/src/shared-content/scripts/replace-certificate-scripts.include.md
+++ b/src/shared-content/scripts/replace-certificate-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
@@ -50,7 +50,7 @@ Invoke-RestMethod -Method Post -Uri "$octopusURL/api/$($space.Id)/certificates/$
Add-Type -Path 'path\to\Octopus.Client.dll'
# Provide credentials for Octopus
-$apikey = 'API-YOURAPIKEY'
+$apikey = 'API-YOUR-KEY'
$octopusURI = 'https://youroctourl'
$spaceName = "default"
@@ -96,7 +96,7 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
@@ -104,7 +104,7 @@ using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
var octopusAPIKey = "API-APIKEY";
-string pfxFilePath = "C:\\path\\to\\thecert.pfx";
+string pfxFilePath = "C:\\path\\to\\the-cert.pfx";
string pfxFilePassword = "PFX-file-password";
string certificateName = "MyCertificate";
string spaceName = "default";
@@ -245,7 +245,7 @@ func main() {
if err != nil {
log.Println(err)
}
- APIKey := "API-YourAPIEKey"
+ APIKey := "API-YourAPIKey"
spaceName := "Default"
certificateName := "MyCertificate"
@@ -255,7 +255,7 @@ func main() {
// Get the space object
space := GetSpace(apiURL, APIKey, spaceName)
- // Creat client for space
+ // Create client for space
client := octopusAuth(apiURL, APIKey, space.ID)
rawData, err := ioutil.ReadFile(certificateFilePath)
diff --git a/src/shared-content/scripts/run-a-runbook-with-prompted-variables.include.md b/src/shared-content/scripts/run-a-runbook-with-prompted-variables.include.md
index e7fd3c9525..9ebbdbf526 100644
--- a/src/shared-content/scripts/run-a-runbook-with-prompted-variables.include.md
+++ b/src/shared-content/scripts/run-a-runbook-with-prompted-variables.include.md
@@ -122,7 +122,7 @@ if ([string]::IsNullOrWhiteSpace($runbookPromptedVariables) -eq $false)
$uniqueName = $element.Name
$isRequired = $element.Control.Required
- $promptedVariablefound = $false
+ $promptedVariableFound = $false
Write-Host "Looking for the prompted variable value for $nameToSearchFor"
foreach ($promptedValue in $promptedValueList)
@@ -236,13 +236,13 @@ if ($runbookWaitForFinish -eq $true)
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "Default";
string environmentName = "Development";
string runbookName = "Runbook name";
diff --git a/src/shared-content/scripts/run-healthcheck-scripts.include.md b/src/shared-content/scripts/run-healthcheck-scripts.include.md
index 68e64d660b..d55abc60e2 100644
--- a/src/shared-content/scripts/run-healthcheck-scripts.include.md
+++ b/src/shared-content/scripts/run-healthcheck-scripts.include.md
@@ -1,4 +1,4 @@
-
+
PowerShell (REST API)
```powershell
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "http://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$Description = "Health check started from Powershell script"
@@ -52,7 +52,7 @@ Invoke-RestMethod -Method Post -Uri "$octopusURL/api/$($space.Id)/tasks" -Body (
```
-
+
PowerShell (Octopus.Client)
```powershell
@@ -61,7 +61,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default"
$Description = "Health check started from Powershell script"
$TimeOutAfterMinutes = 5
@@ -105,19 +105,19 @@ catch
```
-
+
C#
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "Default";
var description = "Health check started from C# script";
var timeoutAfterMinutes = 5;
@@ -160,7 +160,7 @@ catch (Exception ex)
```
-
+
Python3
```python
diff --git a/src/shared-content/scripts/run-runbook-scripts.include.md b/src/shared-content/scripts/run-runbook-scripts.include.md
index 92b784d4f8..6b448cd24e 100644
--- a/src/shared-content/scripts/run-runbook-scripts.include.md
+++ b/src/shared-content/scripts/run-runbook-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl/api"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default"
$projectName = "MyProject"
@@ -45,7 +45,7 @@ Add-Type -Path "c:\octopus.client\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$runbookName = "MyRunbook"
@@ -107,14 +107,14 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
// Declare working variables
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
string spaceName = "default";
string projectName = "MyProject";
string runbookName = "MyRunbook";
@@ -181,7 +181,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):
diff --git a/src/shared-content/scripts/update-release-variable-snapshot-scripts.include.md b/src/shared-content/scripts/update-release-variable-snapshot-scripts.include.md
index f187808b2e..03b773b67c 100644
--- a/src/shared-content/scripts/update-release-variable-snapshot-scripts.include.md
+++ b/src/shared-content/scripts/update-release-variable-snapshot-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$projectName = "MyProject"
$releaseVersion = "1.0.0.0"
@@ -39,7 +39,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$projectName = "MyProject"
$channelName = "default"
@@ -79,13 +79,13 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
string projectName = "MyProject";
string channelName = "Default";
diff --git a/src/shared-content/scripts/update-tenant-variable-scripts.include.md b/src/shared-content/scripts/update-tenant-variable-scripts.include.md
index b4c9a6c9b5..01960cba06 100644
--- a/src/shared-content/scripts/update-tenant-variable-scripts.include.md
+++ b/src/shared-content/scripts/update-tenant-variable-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "Default" # Name of the Space
@@ -78,7 +78,7 @@ foreach ($projectKey in $projects)
}
}
else {
- Write-Host "Couldnt find project template: $variableTemplateName for project $projectName"
+ Write-Host "Couldn't find project template: $variableTemplateName for project $projectName"
}
}
# Update the variables with the new value
@@ -96,7 +96,7 @@ Add-Type -Path 'Octopus.Client.dll'
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "Default" # Name of the Space
$tenantName = "TenantName" # The tenant name
@@ -166,7 +166,7 @@ try
}
}
else {
- Write-Host "Couldnt find project template: $variableTemplateName for project $projectName"
+ Write-Host "Couldn't find project template: $variableTemplateName for project $projectName"
}
}
@@ -185,13 +185,13 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "Default";
var tenantName = "TenantName";
var projectVariableTemplateName = "TemplateName";
@@ -229,7 +229,7 @@ try
{
var variableTemplateId = variableTemplateResource.Id;
var variableTemplateIsSensitiveControlType = (variableTemplateResource.DisplaySettings.FirstOrDefault(ds => ds.Key == "Octopus.ControlType")).Value == "Sensitive";
- Console.WriteLine("Found templateid for template: {0} of {1}", projectVariableTemplateName, variableTemplateId);
+ Console.WriteLine("Found template id for template: {0} of {1}", projectVariableTemplateName, variableTemplateId);
// Loop through each of the connected environments
foreach (var envKey in project.Variables.Keys)
@@ -261,7 +261,7 @@ try
}
else
{
- Console.WriteLine("Couldnt find project template: {0} for project {1}", projectVariableTemplateName, projectName);
+ Console.WriteLine("Couldn't find project template: {0} for project {1}", projectVariableTemplateName, projectName);
}
}
@@ -316,7 +316,7 @@ def get_octopus_resource(uri, headers, skip_count = 0):
return items
octopus_server_uri = 'https://your.octopus.app'
-octopus_api_key = 'API-YOURKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
space_name = "Default"
tenant_name = "MyTenant"
diff --git a/src/shared-content/scripts/update-variable-set-variable-value-scripts.include.md b/src/shared-content/scripts/update-variable-set-variable-value-scripts.include.md
index 42c9a2ab27..04a3492f6a 100644
--- a/src/shared-content/scripts/update-variable-set-variable-value-scripts.include.md
+++ b/src/shared-content/scripts/update-variable-set-variable-value-scripts.include.md
@@ -78,11 +78,11 @@ $librarySet = $repositoryForSpace.LibraryVariableSets.FindByName($libraryVariabl
# Check to see if something was returned
if ($null -eq $librarySet)
{
- Write-Warning "Library variable not found with name '$libraryVariabelSetName'"
+ Write-Warning "Library variable not found with name '$libraryVariableSetName'"
exit
}
-# Get the variableset
+# Get the variable set
$variableSet = $repositoryForSpace.VariableSets.Get($librarySet.VariableSetId)
# Get the variable
@@ -97,14 +97,14 @@ $repositoryForSpace.VariableSets.Modify($variableSet)
C#
```csharp
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
using System.Linq;
var octopusURL = "https://your.octopus.app";
-var octopusAPIKey = "API-YOURKEY";
+var octopusAPIKey = "API-YOUR-KEY";
// Create repository object
var endpoint = new OctopusServerEndpoint(octopusURL, octopusAPIKey);
diff --git a/src/shared-content/scripts/upgrade-machines-scripts.include.md b/src/shared-content/scripts/upgrade-machines-scripts.include.md
index e61927d8b9..76c365888c 100644
--- a/src/shared-content/scripts/upgrade-machines-scripts.include.md
+++ b/src/shared-content/scripts/upgrade-machines-scripts.include.md
@@ -6,7 +6,7 @@ $ErrorActionPreference = "Stop";
# Define working variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$header = @{ "X-Octopus-ApiKey" = $octopusAPIKey }
$spaceName = "default"
$machineNames = @("MyMachine")
@@ -49,7 +49,7 @@ Add-Type -Path "path\to\Octopus.Client.dll"
# Octopus variables
$octopusURL = "https://youroctourl"
-$octopusAPIKey = "API-YOURAPIKEY"
+$octopusAPIKey = "API-YOUR-KEY"
$spaceName = "default"
$machineNames = @("MyMachine")
@@ -93,13 +93,13 @@ catch
```csharp
// If using .net Core, be sure to add the NuGet package of System.Security.Permissions
-#r "path\to\Octopus.Client.dll"
+#r "nuget: Octopus.Client"
using Octopus.Client;
using Octopus.Client.Model;
var octopusURL = "https://youroctourl";
-var octopusAPIKey = "API-YOURAPIKEY";
+var octopusAPIKey = "API-YOUR-KEY";
var spaceName = "default";
string[] machineNames = new string[] { "OctoTempTentacle" };
@@ -150,7 +150,7 @@ import json
import requests
octopus_server_uri = 'https://your.octopus.app/api'
-octopus_api_key = 'API-YOURAPIKEY'
+octopus_api_key = 'API-YOUR-KEY'
headers = {'X-Octopus-ApiKey': octopus_api_key}
def get_octopus_resource(uri):