-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1494 from WhereIsW4ldo/feature/update-project-files
feat: update project files implemented
- Loading branch information
Showing
16 changed files
with
444 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: example-10 | ||
trigger: none | ||
|
||
variables: | ||
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE | ||
value: 'true' | ||
- name: DOTNET_CLI_TELEMETRY_OPTOUT | ||
value: 'true' | ||
|
||
stages: | ||
- stage: GitVersion_v6_cross_stage | ||
displayName: GitVersion v6 (cross stage) | ||
jobs: | ||
- job: GitVersion_v6_cross_stage_producer | ||
displayName: GitVersion v6 (cross stage producer) | ||
pool: | ||
vmImage: ubuntu-latest | ||
steps: | ||
- checkout: self | ||
fetchDepth: 0 | ||
|
||
- task: gitversion/[email protected] | ||
displayName: Install GitVersion | ||
inputs: | ||
versionSpec: '6.0.x' | ||
|
||
- task: gitversion/[email protected] | ||
displayName: Determine Version | ||
name: version_step # step id used as reference for output values | ||
inputs: | ||
overrideConfig: | | ||
update-build-number=false | ||
- stage: GitVersion_v6_cross_stage_consumer_without_prefix | ||
displayName: GitVersion v6 (cross stage consumer) - without prefix | ||
dependsOn: GitVersion_v6_cross_stage | ||
condition: and(succeeded(), eq(dependencies.GitVersion_v6_cross_stage.outputs['GitVersion_v6_cross_stage_producer.version_step.branchName'], 'main')) # use in condition | ||
jobs: | ||
- job: GitVersion_v6_cross_stage_consumer_without_prefix | ||
displayName: GitVersion v6 (cross stage consumer) - without prefix | ||
variables: | ||
myvar_fullSemVer: $[ stageDependencies.GitVersion_v6_cross_stage.GitVersion_v6_cross_stage_producer.outputs['version_step.fullSemVer'] ] | ||
pool: | ||
vmImage: ubuntu-latest | ||
steps: | ||
- pwsh: | | ||
echo "FullSemVer (myvar_fullSemVer) : $(myvar_fullSemVer)" | ||
displayName: Use mapped job variables (pwsh - outputs without prefix) | ||
- pwsh: | | ||
echo "FullSemVer (env:localvar_fullSemVer) : $env:localvar_fullSemVer" | ||
displayName: Use mapped local env from job variables (pwsh - outputs without prefix) | ||
env: | ||
localvar_fullSemVer: $(myvar_fullSemVer) | ||
- bash: | | ||
echo "FullSemVer (myvar_fullSemVer) : $(myvar_fullSemVer)" | ||
displayName: Use mapped job variables (bash - outputs without prefix) | ||
- bash: | | ||
echo "FullSemVer (localvar_fullSemVer) : $localvar_fullSemVer" | ||
displayName: Use mapped local env from job variables (bash - outputs without prefix) | ||
env: | ||
localvar_fullSemVer: $(myvar_fullSemVer) | ||
- stage: GitVersion_v6_cross_stage_consumer_with_prefix | ||
displayName: GitVersion v6 (cross stage consumer) - with prefix | ||
dependsOn: GitVersion_v6_cross_stage | ||
condition: and(succeeded(), eq(dependencies.GitVersion_v6_cross_stage.outputs['GitVersion_v6_cross_stage_producer.version_step.GitVersion_BranchName'], 'main')) # use in condition | ||
jobs: | ||
- job: GitVersion_v6_cross_stage_consumer_with_prefix | ||
displayName: GitVersion v6 (cross stage consumer) - with prefix | ||
variables: | ||
myvar_GitVersion_FullSemVer: $[ stageDependencies.GitVersion_v6_cross_stage.GitVersion_v6_cross_stage_producer.outputs['version_step.GitVersion_FullSemVer'] ] | ||
pool: | ||
vmImage: ubuntu-latest | ||
steps: | ||
- pwsh: | | ||
echo "FullSemVer (myvar_GitVersion_FullSemVer) : $(myvar_GitVersion_FullSemVer)" | ||
displayName: Use mapped job variables (pwsh - outputs with prefix) | ||
- pwsh: | | ||
echo "FullSemVer (env:localvar_GitVersion_FullSemVer) : $env:localvar_GitVersion_FullSemVer" | ||
displayName: Use mapped local env from job variables (pwsh - outputs with prefix) | ||
env: | ||
localvar_GitVersion_FullSemVer: $(myvar_GitVersion_FullSemVer) | ||
- bash: | | ||
echo "FullSemVer (localvar_GitVersion_FullSemVer) : $localvar_GitVersion_FullSemVer" | ||
displayName: Use mapped job variables (bash - outputs with prefix) | ||
- bash: | | ||
echo "FullSemVer (localvar_GitVersion_FullSemVer) : $localvar_GitVersion_FullSemVer" | ||
displayName: Use mapped local env from job variables (bash - outputs with prefix) | ||
env: | ||
localvar_GitVersion_FullSemVer: $(myvar_GitVersion_FullSemVer) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.