Skip to content

Commit

Permalink
Revert "Specify outdir when building"
Browse files Browse the repository at this point in the history
This reverts commit 1198fbd.
  • Loading branch information
mehmetseckin committed Feb 22, 2020
1 parent 1198fbd commit 3c8e30f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pipelines/templates/stages/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ stages:

variables:
artifactName: 'Solutions'
artifactPath: 'bin\${{ parameters.configuration }}\*.zip'

dependsOn: ${{ parameters.dependsOn }}
jobs:
Expand All @@ -28,17 +29,17 @@ stages:
displayName: "Build"
inputs:
solution: 'src\Solutions\Solutions.cdsproj'
msbuildArgs: '/t:build /p:configuration=${{ parameters.configuration }};OutDir=$(build.stagingDirectory) /restore'
msbuildArgs: '/t:build /p:configuration=${{ parameters.configuration }} /restore'
- powershell: |
echo "Tagging Build: $($env:BUILD_NUMBER)"
git tag $env:BUILD_NUMBER
git push origin $env:BUILD_NUMBER
displayName: 'Tag the build'
env:
BUILD_NUMBER: $(build.buildNumber)
GIT_REDIRECT_STDERR: 2>&1 # because git writes some output to STDERR and the agent things the script job failed
GIT_REDIRECT_STDERR: 2>&1
condition: and(succeeded(), eq(${{ parameters.tag }}, true))
- publish: '$(build.stagingDirectory)\*.zip'
- publish: '$(artifactPath)'
displayName: 'Publishing $(artifactName)'
artifact: '$(artifactName)'
condition: and(succeeded(), eq(${{ parameters.publish }}, true))

0 comments on commit 3c8e30f

Please sign in to comment.