jenkinsci / jenkinsci/git-plugin
[JENKINS-36529] jenkins blocks on pipeline, won't terminate until restart
- 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
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=10it 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
Assessment
This issue has not been assessed yet.