Added Copy Files task to copy the openshift-app-build-template.yml file

This commit is contained in:
Tim McCarthy 2020-02-13 14:02:23 -08:00
parent f3aa124445
commit 4e2d57edd8
2 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,10 @@ jobs:
modifyOutputPath: true modifyOutputPath: true
feedsToUse: config feedsToUse: config
nugetConfigPath: src/NuGet.config nugetConfigPath: src/NuGet.config
- task: CopyFiles@2
inputs:
sourceFolder: '**/openshift-app-build-template.yml'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop' displayName: 'Publish Artifact: drop'

View File

@ -19,7 +19,7 @@ jobs:
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
inputs: inputs:
artifact: drop artifact: drop
- script: 'oc process -f ../openshift-app-build-template.yml -p APPLICATION_NAME=$(AppName) | oc apply -f-' - script: 'oc process -f openshift-app-build-template.yml -p APPLICATION_NAME=$(AppName) | oc apply -f-'
failOnStderr: true failOnStderr: true
displayName: 'Ensure OpenShift BuildConfig' displayName: 'Ensure OpenShift BuildConfig'
- powershell: | - powershell: |