ci(azure-pipelines): add job timeout param
This commit is contained in:
parent
53226e6c6f
commit
3416942591
@ -14,6 +14,9 @@ parameters:
|
|||||||
- name: servicePool
|
- name: servicePool
|
||||||
type: string
|
type: string
|
||||||
default: 'Prod Private Agent Pool'
|
default: 'Prod Private Agent Pool'
|
||||||
|
- name: serviceTimeout
|
||||||
|
type: number
|
||||||
|
default: 60
|
||||||
# extraBuildOptions: ''
|
# extraBuildOptions: ''
|
||||||
- name: serviceArtifacts
|
- name: serviceArtifacts
|
||||||
type: string
|
type: string
|
||||||
@ -31,6 +34,7 @@ jobs:
|
|||||||
displayName: Build ${{parameters.serviceName}} image
|
displayName: Build ${{parameters.serviceName}} image
|
||||||
condition: or(eq(variables.forcePushLatest, true), eq(variables.onMasterBranch, true), eq(variables.onUpdateBranch, true))
|
condition: or(eq(variables.forcePushLatest, true), eq(variables.onMasterBranch, true), eq(variables.onUpdateBranch, true))
|
||||||
pool: '${{ parameters.servicePool }}'
|
pool: '${{ parameters.servicePool }}'
|
||||||
|
timeoutInMinutes: ${{ parameters.serviceTimeout }}
|
||||||
container:
|
container:
|
||||||
image: devfra.azurecr.io/de.fraport.build/tools:1.1.0
|
image: devfra.azurecr.io/de.fraport.build/tools:1.1.0
|
||||||
endpoint: devfra
|
endpoint: devfra
|
||||||
|
|||||||
@ -13,6 +13,7 @@ parameters:
|
|||||||
# extraBuildOptions: |
|
# extraBuildOptions: |
|
||||||
# --build-arg NPM_CUSTOM_REGISTRY=https://pkgs.dev.azure.com/fraport/_packaging/packages/npm/registry/
|
# --build-arg NPM_CUSTOM_REGISTRY=https://pkgs.dev.azure.com/fraport/_packaging/packages/npm/registry/
|
||||||
pool: 'Prod Private Agent Pool'
|
pool: 'Prod Private Agent Pool'
|
||||||
|
timeout: 60
|
||||||
artifacts: |
|
artifacts: |
|
||||||
assets/icons
|
assets/icons
|
||||||
assets/favicons
|
assets/favicons
|
||||||
@ -25,6 +26,7 @@ parameters:
|
|||||||
image: devfra.azurecr.io/de.fraport.build/haskell
|
image: devfra.azurecr.io/de.fraport.build/haskell
|
||||||
tag: 8.10.4
|
tag: 8.10.4
|
||||||
pool: 'Prod Private Agent Pool DS3'
|
pool: 'Prod Private Agent Pool DS3'
|
||||||
|
timeout: 1440
|
||||||
dependencies: []
|
dependencies: []
|
||||||
artifacts: |
|
artifacts: |
|
||||||
.stack/
|
.stack/
|
||||||
@ -44,4 +46,5 @@ jobs:
|
|||||||
serviceName: ${{ service.name }}
|
serviceName: ${{ service.name }}
|
||||||
serviceBase: ${{ service.base }}
|
serviceBase: ${{ service.base }}
|
||||||
servicePool: ${{ service.pool }}
|
servicePool: ${{ service.pool }}
|
||||||
|
serviceTimeout: ${{ service.timeout }}
|
||||||
serviceArtifacts: ${{ service.artifacts }}
|
serviceArtifacts: ${{ service.artifacts }}
|
||||||
Reference in New Issue
Block a user