Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BetimBeja committed Dec 29, 2020
2 parents 6e185a4 + 93ef610 commit f826a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
pool:
vmImage: 'vs2017-win2016'

name: 1.$(Date:yyyy.MM)$(Rev:.r)+$(SourceBranchName)
name: $(SourceBranchName)+1.$(Date:yyyy.MM)$(Rev:.r)

steps:
- script: echo Starting build pipeline!
displayName: 'Hello from Albanian Xrm'

- powershell: |
echo "##vso[task.setvariable variable=configuration;isOutput=true]$(IF($env:BRANCH -eq "refs/heads/master"){"Azure Pipelines"}else{"release"})"
echo "##vso[task.setvariable variable=BuildNumber;isOutput=true]$(($env:BuildNumber).Substring(0,($env:BuildNumber).IndexOf('+')))"
echo "##vso[task.setvariable variable=BuildNumber;isOutput=true]$(($env:BuildNumber).Substring(($env:BuildNumber).LastIndexOf('+')+1))"
name: MyVars
env:
BRANCH: $(Build.SourceBranch)
Expand Down

0 comments on commit f826a94

Please sign in to comment.