Updated parameter references
This commit is contained in:
parent
f1c19ce78a
commit
1fbae38bf6
@ -12,14 +12,14 @@ jobs:
|
|||||||
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
|
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
|
||||||
displayName: 'oc-setup '
|
displayName: 'oc-setup '
|
||||||
inputs:
|
inputs:
|
||||||
openshiftService: $(OpenShiftServiceConnection)
|
openshiftService: ${{ parameters.OpenShiftServiceConnection }}
|
||||||
- script: 'oc project $(OpenShiftProject)'
|
- script: 'oc project ${{ parameters.OpenShiftProject }}'
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
displayName: 'Set Project Context'
|
displayName: 'Set Project Context'
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
artifact: drop
|
artifact: drop
|
||||||
- script: 'oc process -f ./build/aro/openshift-templates/app-build-template.yml -p APPLICATION_NAME=$(AppName) | oc apply -f-'
|
- script: 'oc process -f ./build/aro/openshift-templates/app-build-template.yml -p APPLICATION_NAME=${{ parameters.AppName }} | oc apply -f-'
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
displayName: 'Ensure OpenShift BuildConfig'
|
displayName: 'Ensure OpenShift BuildConfig'
|
||||||
- powershell: |
|
- powershell: |
|
||||||
@ -28,7 +28,7 @@ jobs:
|
|||||||
$pinfo.RedirectStandardError = $true
|
$pinfo.RedirectStandardError = $true
|
||||||
$pinfo.RedirectStandardOutput = $true
|
$pinfo.RedirectStandardOutput = $true
|
||||||
$pinfo.UseShellExecute = $false
|
$pinfo.UseShellExecute = $false
|
||||||
$pinfo.Arguments = "start-build $(AppName) --from-dir=$(ProjectName) --follow --wait"
|
$pinfo.Arguments = "start-build ${{ parameters.AppName }} --from-dir=${{ parameters.ProjectName }} --follow --wait"
|
||||||
$p = New-Object System.Diagnostics.Process
|
$p = New-Object System.Diagnostics.Process
|
||||||
$p.StartInfo = $pinfo
|
$p.StartInfo = $pinfo
|
||||||
$p.Start() | Out-Null
|
$p.Start() | Out-Null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user