jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-46062] Timeout timer inside a pipeline with a docker stage runs out to soon

Open
#511 0 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin component:workflow-basic-steps-plugin imported-jira-issue pipeline priority:trivial resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

JenkinsFile:

        stage('Application testcases') {

          agent {

            dockerfile {

              label 'master'

              dir "dockerlocation"

            }

          }

          steps {

            timeout(time: 20, unit: 'MINUTES') {

               sh 'script.sh'

            }

          }

        }

Logs:

 

14:50:43 Timeout set to expire in 20 min

...

[Pipeline] }

[Pipeline] // timeout

[Pipeline] }

14:53:01 $ docker stop --time=1 0f6750852e4f010149cde95cd2d53a42a1ccd6b84b01db1a26bfb12e93b7c151

---
Originally reported by roel0, imported from: Timeout timer inside a pipeline with a docker stage runs out to soon


  • status: Open
  • priority: Trivial
  • component(s): docker-workflow-plugin, workflow-basic-steps-plugin
  • label(s): docker, jenkins, pipeline, triaged-2018-11
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

JenkinsFile:

        stage('Application testcases') {
          agent {
            dockerfile {
              label 'master'
              dir "dockerlocation"
            }
          }
          steps {
            timeout(time: 20, unit: 'MINUTES') {
               sh 'script.sh'

            }
          }
        }

Logs:

 

14:50:43 Timeout set to expire in 20 min
...
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
14:53:01 $ docker stop --time=1 0f6750852e4f010149cde95cd2d53a42a1ccd6b84b01db1a26bfb12e93b7c151

environment

```
Jenkins 2.71

Linux jenkins-master 4.9.39-1-MANJARO

Plugins:

ace-editor 1.1 true

analysis-core 1.91 true

ansicolor 0.5.0 true

ant 1.5 true

antisamy-markup-formatter 1.5 true

authentication-tokens 1.3 true

BlameSubversion 1.200 true

blueocean 1.1.5 true

blueocean-autofavorite 1.0.0 true

blueocean-commons 1.1.5 true

blueocean-config 1.1.5 true

blueocean-dashboard 1.1.5 true

blueocean-display-url 2.1.0 true

blueocean-events 1.1.5 true

blueocean-git-pipeline 1.1.5 true

blueocean-github-pipeline 1.1.5 true

blueocean-i18n 1.1.5 true

blueocean-jwt 1.1.5 true

blueocean-personalization 1.1.5 true

blueocean-pipeline-api-impl 1.1.5 true

blueocean-pipeline-editor 0.2.0 true

blueocean-pipeline-scm-api 1.1.5 true

blueocean-rest 1.1.5 true

blueocean-rest-impl 1.1.5 true

blueocean-web 1.1.5 true

bouncycastle-api 2.16.2 true

branch-api 2.0.11 true

build-monitor-plugin 1.12+build.201704111018 true

build-pipeline-plugin 1.5.7.1 true

build-timeout 1.18 true

claim 2.9 true

cloudbees-folder 6.1.2 true

conditional-buildstep 1.3.6 true

config-file-provider 2.16.1 true

copyartifact 1.38.1 true

coverity 1.9.2 true

credentials 2.1.14 true

credentials-binding 1.12 true

delivery-pipeline-plugin 1.0.3 true

display-url-api 2.0 true

docker-commons 1.8 true

docker-workflow 1.12 true

durable-task 1.14 true

email-ext 2.58 true

external-monitor-job 1.7 true

extreme-feedback 1.7 true

favorite 2.3.0 true

git 3.5.1 true

git-client 2.5.0 true

git-server 1.7 true

github 1.28.0 true

github-api 1.86 true

github-branch-source 2.2.3 true

gradle 1.27.1 true

greenballs 1.15 true

groovy 2.0 true

handlebars 1.1.1 true

htmlpublisher 1.14 true

icon-shim 2.0.3 true

jackson2-api 2.7.3 true

javadoc 1.4 true

job-dsl 1.64 true

job-restrictions 0.6 true

jobConfigHistory 2.16 true

jquery 1.11.2-0 true

jquery-detached 1.2.1 true

junit 1.21 true

ldap 1.16 true

lockable-resources 2.0 true

log-parser 2.0 true

mailer 1.20 true

mapdb-api 1.0.9.0 true

matrix-auth 1.7 true

matrix-project 1.11 true

maven-plugin 2.17 true

metrics 3.1.2.10 true

momentjs 1.1.1 true

nodelabelparameter 1.7.2 true

pam-auth 1.3 true

parameterized-trigger 2.35.1 true

pipeline-aggregator-view 1.7 true

pipeline-build-step 2.5.1 true

pipeline-github-lib 1.0 true

pipeline-graph-analysis 1.4 true

pipeline-input-step 2.7 true

pipeline-milestone-step 1.3.1 true

pipeline-model-api 1.1.9 true

pipeline-model-declarative-agent 1.1.1 true

pipeline-model-definition 1.1.9 true

pipeline-model-extensions 1.1.9 true

pipeline-multibranch-defaults 1.1 true

pipeline-rest-api 2.8 true

pipeline-stage-step 2.2 true

pipeline-stage-tags-metadata 1.1.9 true

pipeline-stage-view 2.8 true

plain-credentials 1.4 true

pubsub-light 1.12 true

resource-disposer 0.7 true

rich-text-publisher-plugin 1.4 true

run-condition 1.0 true

scm-api 2.2.0 true

script-security 1.30 true

sse-gateway 1.15 true

ssh-credentials 1.13 true

ssh-slaves 1.20 true

structs 1.10 true

subversion 2.9 true

timestamper 1.8.8 true

token-macro 2.1 true

variant 1.1 true

warnings 4.63 true

windows-slaves 1.3.1 true

workflow-aggregator 2.5 true

workflow-api 2.20 true

workflow-basic-steps 2.6 true

workflow-cps 2.38 true

workflow-cps-global-lib 2.8 true

workflow-durable-task-step 2.13 true

workflow-job 2.14.1 true

workflow-multibranch 2.16 true

workflow-scm-step 2.6 true

workflow-step-api 2.12 true

workflow-support 2.14 true

ws-cleanup 0.34 true

xfpanel 2.0.1 true

xunit 1.102 true

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.