|
@ -12,15 +12,11 @@ stages: |
|
|
variables: |
|
|
variables: |
|
|
OpenShiftProject: development |
|
|
OpenShiftProject: development |
|
|
jobs: |
|
|
jobs: |
|
|
- job: Configuration |
|
|
|
|
|
|
|
|
- job: Configuration_Deployment |
|
|
|
|
|
displayName: 'Configuration Deployment' |
|
|
pool: |
|
|
pool: |
|
|
vmImage: 'windows-latest' |
|
|
vmImage: 'windows-latest' |
|
|
steps: |
|
|
steps: |
|
|
- task: DownloadPipelineArtifact@2 |
|
|
|
|
|
displayName: 'Download Artifacts' |
|
|
|
|
|
inputs: |
|
|
|
|
|
pipeline: BasketApiBuild |
|
|
|
|
|
artifact: drop |
|
|
|
|
|
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2 |
|
|
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2 |
|
|
displayName: 'Setup Openshift CLI' |
|
|
displayName: 'Setup Openshift CLI' |
|
|
inputs: |
|
|
inputs: |
|
@ -28,6 +24,6 @@ stages: |
|
|
- script: 'oc project $(OpenShiftProject)' |
|
|
- script: 'oc project $(OpenShiftProject)' |
|
|
failOnStderr: true |
|
|
failOnStderr: true |
|
|
displayName: 'Set OpenShift Project Context' |
|
|
displayName: 'Set OpenShift Project Context' |
|
|
- script: 'oc process -f $(Pipeline.Workspace)/openshift-webapp-deploy-template.yml -p APPLICATION_NAME=$(AppName) -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-' |
|
|
|
|
|
|
|
|
- script: 'oc process -f ./deploy/aro/openshift-webapp-deploy-template.yml -p APPLICATION_NAME=$(AppName) -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-' |
|
|
failOnStderr: true |
|
|
failOnStderr: true |
|
|
displayName: 'Ensure OpenShift DeploymentConfig and Service' |
|
|
displayName: 'Ensure OpenShift DeploymentConfig and Service' |