Common tasks
Generic tasks for the build.
Tasks
Tasks are prefixed with PleOps.Recipe.Common.
Restore tools
- Task name:
PleOps.Recipe.Common.RestoreTools - Type:
RestoreToolsTask - Depends on: none
- Condition: none
- Build context:
PleOpsBuildContext- Uses:
DotNetContext.NugetConfigPath
- Changes: none
- Uses:
Run dotnet tool restore to restore the required build tools defined in
.config/dotnet-tools.json.
Clean artifacts
- Task name:
PleOps.Recipe.Common.CleanArtifacts - Type:
CleanArtifactsTask - Depends on: none
- Condition: if is not
IsIncrementalBuild - Build context:
PleOpsBuildContext- Uses:
TemporaryPathArtifactsPath
- Changes: none
- Uses:
Remove files and directories from the artifacts and temporary folders.
Set version from Git
- Task name:
PleOps.Recipe.Common.SetGitVersion - Type:
SetGitVersionTask - Depends on:
RestoreTool - Condition: none
- Build context:
PleOpsBuildContext- Uses: none
- Changes:
VersionBuildKind
Define the version and build type from the git history by using the GitVersion
program.