mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
pipeline file changes
This commit is contained in:
parent
2ea29c935f
commit
9ae3f09435
1 changed files with 33 additions and 7 deletions
|
|
@ -56,9 +56,31 @@ stages:
|
||||||
- template: output-environment-variables.yml@self
|
- template: output-environment-variables.yml@self
|
||||||
|
|
||||||
- checkout: MasterRepo
|
- checkout: MasterRepo
|
||||||
path: 'repo'
|
|
||||||
persistCredentials: true
|
persistCredentials: true
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: Pull Master Repository Files
|
||||||
|
env:
|
||||||
|
DEPLOY_BUILDNUMBER: $(Build.BuildNumber)
|
||||||
|
DEPLOY_SOURCESDIRECTORY: $(Build.SourcesDirectory)
|
||||||
|
inputs:
|
||||||
|
targetType: inline
|
||||||
|
script: |
|
||||||
|
Write-Host "Setting up the global configuration"
|
||||||
|
git config --global user.email "${{parameters.GitEmail}}"
|
||||||
|
git config --global user.name "${{parameters.GitUsername}}"
|
||||||
|
|
||||||
|
Write-Host "Setting up the configuration"
|
||||||
|
git config pull.rebase false
|
||||||
|
|
||||||
|
Write-Host "Performing Git Checkout"
|
||||||
|
git checkout -b master
|
||||||
|
|
||||||
|
Write-Host "Performing a Git Pull"
|
||||||
|
git pull --force
|
||||||
|
pwsh: true
|
||||||
|
workingDirectory: '$(Build.SourcesDirectory)'
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Copy ${{parameters.DeploymentType}} Files
|
displayName: Copy ${{parameters.DeploymentType}} Files
|
||||||
env:
|
env:
|
||||||
|
|
@ -102,6 +124,7 @@ stages:
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Commit ${{parameters.DeploymentType}} Files
|
displayName: Commit ${{parameters.DeploymentType}} Files
|
||||||
|
enabled: false
|
||||||
env:
|
env:
|
||||||
DEPLOY_BUILDNUMBER: $(Build.BuildNumber)
|
DEPLOY_BUILDNUMBER: $(Build.BuildNumber)
|
||||||
DEPLOY_SOURCESDIRECTORY: $(Build.SourcesDirectory)
|
DEPLOY_SOURCESDIRECTORY: $(Build.SourcesDirectory)
|
||||||
|
|
@ -115,8 +138,11 @@ stages:
|
||||||
git config --global user.email "${{parameters.GitEmail}}"
|
git config --global user.email "${{parameters.GitEmail}}"
|
||||||
git config --global user.name "${{parameters.GitUsername}}"
|
git config --global user.name "${{parameters.GitUsername}}"
|
||||||
|
|
||||||
Write-Host "Performing Git Checkout"
|
Write-Host "Setting up the configuration"
|
||||||
git checkout -b master
|
git config pull.rebase false
|
||||||
|
|
||||||
|
#Write-Host "Performing Git Checkout"
|
||||||
|
#git checkout -b master
|
||||||
|
|
||||||
Write-Host "Performing Git Add"
|
Write-Host "Performing Git Add"
|
||||||
git add -A
|
git add -A
|
||||||
|
|
@ -190,8 +216,8 @@ stages:
|
||||||
|
|
||||||
- template: azure-pipelines-clean-agent.yml@self
|
- template: azure-pipelines-clean-agent.yml@self
|
||||||
parameters:
|
parameters:
|
||||||
CleanArtifactsFolder: true
|
CleanArtifactsFolder: false
|
||||||
CleanBinariesFolder: true
|
CleanBinariesFolder: false
|
||||||
CleanSourcesFolder: true
|
CleanSourcesFolder: false
|
||||||
CleanPublishFolder: true
|
CleanPublishFolder: false
|
||||||
PublishFolder: $(PublishFolder)
|
PublishFolder: $(PublishFolder)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue