-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
Tried to run this tiny script from an git scm pipeline:
#!groovy
node {
git url: 'https://github.com/arangodb/arangodb.git'
if (isUnix())
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^
> 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.