jenkinsci / jenkinsci/git-plugin

[JENKINS-36529] jenkins blocks on pipeline, won't terminate until restart

Open
#2,902 3 comments 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Tried to run this tiny script from an git scm pipeline:

#!groovy

node {

git url: 'https://github.com/arangodb/arangodb.git'

if (isUnix())


{
echo 'Hello Unix'
sh 'cmake . '
sh 'make'
}

else


{
echo 'hello else'
}

}

Pressed twice 'play' by accident. stopped the upper run. This seemed to have voided my workspace. The checkout command below would block in all subsequent attepmts:

It starts cloning into arangodb:

[Pipeline] {

[Pipeline] git

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

> git config remote.origin.url https://github.com/arangodb/arangodb.git # timeout=10

Fetching upstream changes from https://github.com/arangodb/arangodb.git

> git --version # timeout=10

> git -c core.askpass=true fetch --tags --progress https://github.com/arangodb/arangodb.git +refs/heads/:refs/remotes/origin/

> git rev-parse refs/remotes/origin/master^


{commit} # timeout=10

> git rev-parse refs/remotes/origin/origin/master^{commit}

# timeout=10

Checking out Revision ed80c3d2e88953e5054c1ea43e35eda39052f043 (refs/remotes/origin/master)

> git config core.sparsecheckout # timeout=10

> git checkout -f ed80c3d2e88953e5054c1ea43e35eda39052f043 # timeout=10

it then remains stuck. the git process vanishes from top/pstree.

The complete pipeline will then remain in 'active' state, without a reaction to the X-button. Only restarting jenkins will get it out of this state.

Flushing my workspace resolved this issue.

---
Originally reported by dothebart, imported from: jenkins blocks on pipeline, won't terminate until restart


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 3
  • imported: 2025-12-02

Raw content of original issue

Tried to run this tiny script from an git scm pipeline:

#!groovy
node {
git url: 'https://github.com/arangodb/arangodb.git'
if (isUnix())


{
echo 'Hello Unix'
sh 'cmake . '
sh 'make'
}

else


{
echo 'hello else'
}

}

Pressed twice 'play' by accident. stopped the upper run. This seemed to have voided my workspace. The checkout command below would block in all subsequent attepmts:

It starts cloning into arangodb:
[Pipeline] {
[Pipeline] git
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/arangodb/arangodb.git # timeout=10
Fetching upstream changes from https://github.com/arangodb/arangodb.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress https://github.com/arangodb/arangodb.git +refs/heads/:refs/remotes/origin/
> git rev-parse refs/remotes/origin/master^


{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit}

# timeout=10
Checking out Revision ed80c3d2e88953e5054c1ea43e35eda39052f043 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f ed80c3d2e88953e5054c1ea43e35eda39052f043 # timeout=10

it then remains stuck. the git process vanishes from top/pstree.

The complete pipeline will then remain in 'active' state, without a reaction to the X-button. Only restarting jenkins will get it out of this state.

Flushing my workspace resolved this issue.


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.