-
Notifications
You must be signed in to change notification settings - Fork 8
SetVariable Task
The SetVariable
task sets a variable. If the variable doesn't exist, it is added. If it already exists, its value is updated. Variables are referenced in your whiskey.yml file using the syntax $(VARIABLE NAME)
, where VARIABLE NAME
is replaced with the name of the variable. Any of Whiskey's pre-defined variables are not allowed to be changed. Attempting to change them will result in a build error.
All the task's properties are variable names. Each property's value becomes that variables value. You may reference other variables in a value. They will be replaced with values when they are used, not when they are added by this task.
Build:
- SetVariable:
ReleaseName: 6.8
BuildMasterPackageName: $(WHISKEY_BUILD_NUMBER)@$(WHISKEY_SCM_BRANCH)
Would add a ReleaseName
variable whose value is 6.8
and a BuildMasterPackageName
variable whose value is $(WHISKEY_BUILD_NUMBER)@$(WHISKEY_SCM_BRANCH)
.
- Common Task Properties
- AppVeyorWaitForBuildJob
- CopyFile
- Delete
- DotNet
- Exec
- File
- GetPowerShellModule
- GitHubRelease
- InstallNodeJs
- LoadTask
- Log
- MergeFile
- MSBuild
- NuGetPack
- NuGetPush
- NuGetRestore
- NUnit2
- NUnit3
- Parallel
- Pester
- Pipeline
- PowerShell
- ProGetUniversalPackage
- PublishBitbucketServerTag
- PublishBuildMasterPackage
- PublishNodeModule
- PublishPowerShellModule
- PublishProGetAsset
- PublishProGetUniversalPackage
- SetVariable
- SetVariableFromPowerShellDataFile
- SetVariableFromXml
- TaskDefaults
- Version
- Zip