Giter VIP home page Giter VIP logo

Comments (11)

lukeschlather avatar lukeschlather commented on July 19, 2024 2

It's accepted under the pool key but it seems to have no effect. It seems impossible to set a timeout with the standard single-job format.

from azure-pipelines-yaml.

mikeharder avatar mikeharder commented on July 19, 2024

I do see a few places in the docs which specify the single-job format implies default options:

Note: If you have only one job, you can use single-job syntax which omits many of the keywords here.
https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#job

You can skip the job syntax if you need only a single job with the standard options.
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases?tabs=yaml&view=azure-devops

from azure-pipelines-yaml.

geofflamrock avatar geofflamrock commented on July 19, 2024

Thanks @mikeharder I guess my point was more that in the full syntax the timeoutInMinutes lives at the top level within a job, so I was expecting it to live at the same level in the single job syntax but it doesn't, it lives in pool of which there is no mention in the docs. Other properties in the full syntax work the same way in the single syntax but this property doesn't.

from azure-pipelines-yaml.

Madushani avatar Madushani commented on July 19, 2024

trigger:

  • master

jobs:

  • job: Package
    timeoutInMinutes: 120

    pool:
    name: 'Hosted Ubuntu 1604'

    steps:

    • task: Maven@3
      inputs:
      mavenPomFile: 'pom.xml'
      mavenOptions: '-Xmx3072m'
      javaHomeOption: 'JDKVersion'
      jdkVersionOption: '1.8'
      jdkArchitectureOption: 'x64'
      publishJUnitResults: false
      testResultsFiles: '**/surefire-reports/TEST-*.xml'
      goals: 'install'

It still throwing these errors
Job issues

The agent has received a shutdown signal. This can happen when the agent service is stopped, or a manually started agent is canceled. @ geofflamrock , @mikeharder do you have an idea ?

from azure-pipelines-yaml.

Saibamen avatar Saibamen commented on July 19, 2024

Related: microsoft/azure-pipelines-agent#1849

from azure-pipelines-yaml.

Saibamen avatar Saibamen commented on July 19, 2024

I have a question: @geofflamrock says: If I move the timeoutInMinutes into the pool element it works ok.,
@lukeschlather: It's accepted under the pool key but it seems to have no effect. It seems impossible to set a timeout with the standard single-job format.

So: How to change timeout in any possible way? With example, please. I don't care it is for all pipeline or one/two/three jobs.

from azure-pipelines-yaml.

stale avatar stale commented on July 19, 2024

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.

from azure-pipelines-yaml.

Saibamen avatar Saibamen commented on July 19, 2024

Moved into Developer Community by me: https://developercommunity.visualstudio.com/content/problem/1007432/timeoutinminutes-doesnt-work-for-single-job-format.html

from azure-pipelines-yaml.

Saibamen avatar Saibamen commented on July 19, 2024

@geofflamrock:
Please go to this link and answer Microsoft team: https://developercommunity.visualstudio.com/content/problem/1007432/timeoutinminutes-doesnt-work-for-single-job-format.html

from azure-pipelines-yaml.

geofflamrock avatar geofflamrock commented on July 19, 2024

Thanks @Saibamen I've tested and it's now working as documented, I've replied back on the other link.

from azure-pipelines-yaml.

ManikandanMani avatar ManikandanMani commented on July 19, 2024

I have added timeoutInMinutes for vstest task which is defined in a yaml template, when I pass the parameter for timeoutInMinutes it's not considering the value. Can anyone let me know if timeoutInMinutes is supported for all tasks or if the specific task has to support it so does it works ?

from azure-pipelines-yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.