From 34169425915b48bd6c6f7f74d0938bda3536075b Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Fri, 24 Jan 2025 02:26:09 +0100 Subject: [PATCH] ci(azure-pipelines): add job timeout param --- .azure-pipelines/templates/service.yaml | 4 ++++ azure-pipelines.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.azure-pipelines/templates/service.yaml b/.azure-pipelines/templates/service.yaml index 53ffd0f48..b48acb65f 100644 --- a/.azure-pipelines/templates/service.yaml +++ b/.azure-pipelines/templates/service.yaml @@ -14,6 +14,9 @@ parameters: - name: servicePool type: string default: 'Prod Private Agent Pool' + - name: serviceTimeout + type: number + default: 60 # extraBuildOptions: '' - name: serviceArtifacts type: string @@ -31,6 +34,7 @@ jobs: displayName: Build ${{parameters.serviceName}} image condition: or(eq(variables.forcePushLatest, true), eq(variables.onMasterBranch, true), eq(variables.onUpdateBranch, true)) pool: '${{ parameters.servicePool }}' + timeoutInMinutes: ${{ parameters.serviceTimeout }} container: image: devfra.azurecr.io/de.fraport.build/tools:1.1.0 endpoint: devfra diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 413e8566c..e66ab239c 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -13,6 +13,7 @@ parameters: # extraBuildOptions: | # --build-arg NPM_CUSTOM_REGISTRY=https://pkgs.dev.azure.com/fraport/_packaging/packages/npm/registry/ pool: 'Prod Private Agent Pool' + timeout: 60 artifacts: | assets/icons assets/favicons @@ -25,6 +26,7 @@ parameters: image: devfra.azurecr.io/de.fraport.build/haskell tag: 8.10.4 pool: 'Prod Private Agent Pool DS3' + timeout: 1440 dependencies: [] artifacts: | .stack/ @@ -44,4 +46,5 @@ jobs: serviceName: ${{ service.name }} serviceBase: ${{ service.base }} servicePool: ${{ service.pool }} + serviceTimeout: ${{ service.timeout }} serviceArtifacts: ${{ service.artifacts }} \ No newline at end of file