-
Bug
-
Resolution: Not A Defect
-
Minor
-
Master & Node/Agent Specs
*Operating System: CentOS Linux release 7.2.1511 (Core) x64
*Node Java JRE/JDK: OpenJDK Runtime Environment (build 1.8.0_111-b15)
*Installation: Master Installed using WAR file.
*Plugins*
Active Choices Plug-in - 1.5.3
Amazon Web Services SDK - 1.11.119
Android Lint Plugin - 2.4
AnsiColor - 0.5.0
Ant Plugin - 1.5
Authentication Tokens API Plugin - 1.3
Bitbucket Plugin - 1.1.5
bouncycastle API Plugin - 2.16.1
Branch API Plugin - 2.0.10
Build Authorization Token Root Plugin - 1.4
Build Blocker Plugin - 1.7.3
Build Pipeline Plugin - 1.5.6
build timeout plugin - 1.18
build-name-setter - 1.6.5
Checkstyle Plug-in - 3.48
CloudBees Amazon Web Services Credentials Plugin - 1.20
Cobertura Plugin - 1.10
Conditional BuildStep - 1.3.6
Config File Provider Plugin - 2.16.0
Confluence Publisher - 1.8
Copy Artifact Plugin - 1.38.1
Credentials Binding Plugin - 1.11
Credentials Plugin - 2.1.14
Crowd 2 Integration - 1.8
Dashboard View - 2.9.11
Display URL API - 2.0
Docker Commons Plugin - 1.6
Docker Pipeline - 1.11
Durable Task Plugin - 1.13
Email Extension Plugin - 2.57.2
embeddable-build-status - 1.9
Environment Injector Plugin - 2.1
External Monitor Job Type Plugin - 1.7
Folders Plugin - 6.0.4
Git client plugin - 2.4.6
Git Parameter Plug-In - 0.8.0
Git plugin - 3.3.0
GIT server Plugin - 1.7
GitHub API Plugin - 1.85.1
GitHub Branch Source Plugin - 2.0.6
GitHub Organization Folder Plugin - 1.6
GitHub plugin - 1.27.0
Gradle Plugin - 1.26
Grails plugin - 1.7
Groovy - 2.0
Groovy Postbuild - 2.3.1
HipChat Plugin - 2.1.1
HTML Publisher plugin - 1.13
Hudson Post build task - 1.8
IBM Security AppScan Source Scanner - 1.0.5
Icon Shim Plugin - 2.0.3
Jackson 2 API Plugin - 2.7.3
JaCoCo plugin - 2.2.1
Javadoc Plugin - 1.4
JavaScript GUI Lib: ACE Editor bundle plugin - 1.1
JavaScript GUI Lib: Handlebars bundle plugin - 1.1.1
JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin - 1.2.1
JavaScript GUI Lib: Moment.js bundle plugin - 1.1.1
Job Configuration History Plugin - 2.16
Job DSL - 1.63
jQuery plugin - 1.11.2-0
JUnit Plugin - 1.20
LDAP Plugin - 1.15
Lockable Resources plugin - 2.0
Mailer Plugin - 1.20
MapDB API Plugin - 1.0.9.0
Mask Passwords Plugin - 2.10.1
Matrix Authorization Strategy Plugin - 1.6
Matrix Project Plugin - 1.11
Maven Integration plugin - 2.16
Mercurial plugin - 1.60
Monitoring - 1.67.0
Multiple SCMs plugin - 0.6
No Agent Job Purge - 1.2
NodeJS Plugin - 1.2.2
OWASP Markup Formatter Plugin - 1.5
PAM Authentication plugin - 1.3
Parameterized Remote Trigger Plugin - 2.2.2
Parameterized Trigger plugin - 2.33
Pipeline - 2.5
Pipeline Graph Analysis Plugin - 1.4
Pipeline: API - 2.17
Pipeline: Basic Steps - 2.5
Pipeline: Build Step - 2.5
Pipeline: Declarative Agent API - 1.1.1
Pipeline: Declarative Extension Points API - 1.1.6
Pipeline: GitHub Groovy Libraries - 1.0
Pipeline: Groovy - 2.34
Pipeline: Input Step - 2.7
Pipeline: Job - 2.11
Pipeline: Milestone Step - 1.3.1
Pipeline: Model API - 1.1.6
Pipeline: Model Definition - 1.1.6
Pipeline: Multibranch - 2.15
Pipeline: Nodes and Processes - 2.11
Pipeline: REST API Plugin - 2.8
Pipeline: SCM Step - 2.4
Pipeline: Shared Groovy Libraries - 2.8
Pipeline: Stage Step - 2.2
Pipeline: Stage Tags Metadata - 1.1.6
Pipeline: Stage View Plugin - 2.8
Pipeline: Step API - 2.11
Pipeline: Supporting APIs - 2.14
Plain Credentials Plugin - 1.4
Publish Over SSH - 1.17
Purge Build Queue Plugin - 1.0
Purge Job History Plugin - 1.1
Rebuilder - 1.25
Resource Disposer Plugin - 0.6
Run Condition Plugin - 1.0
S3 publisher plugin - 0.10.12
sbt plugin - 1.5
SCM API Plugin - 2.1.1
Script Security Plugin - 1.28
Scriptler - 2.9
Show Build Parameters plugin - 1.0
SonarQube Scanner for Jenkins - 2.6.1
SSH Agent Plugin - 1.15
SSH Credentials Plugin - 1.13
SSH plugin - 2.4
SSH Slaves plugin - 1.19
Stash Notifier - 1.11.6
Static Analysis Utilities - 1.87
Structs Plugin - 1.7
Subversion Plug-in - 2.7.2
Throttle Concurrent Builds Plug-in - 2.0.1
Timestamper - 1.8.8
Token Macro Plugin - 2.1
user build vars plugin - 1.5
Warnings Plug-in - 4.62
Windows Slaves Plugin - 1.3.1
Workspace Cleanup Plugin - 0.33Master & Node/Agent Specs *Operating System: CentOS Linux release 7.2.1511 (Core) x64 *Node Java JRE/JDK: OpenJDK Runtime Environment (build 1.8.0_111-b15) *Installation: Master Installed using WAR file. *Plugins* Active Choices Plug-in - 1.5.3 Amazon Web Services SDK - 1.11.119 Android Lint Plugin - 2.4 AnsiColor - 0.5.0 Ant Plugin - 1.5 Authentication Tokens API Plugin - 1.3 Bitbucket Plugin - 1.1.5 bouncycastle API Plugin - 2.16.1 Branch API Plugin - 2.0.10 Build Authorization Token Root Plugin - 1.4 Build Blocker Plugin - 1.7.3 Build Pipeline Plugin - 1.5.6 build timeout plugin - 1.18 build-name-setter - 1.6.5 Checkstyle Plug-in - 3.48 CloudBees Amazon Web Services Credentials Plugin - 1.20 Cobertura Plugin - 1.10 Conditional BuildStep - 1.3.6 Config File Provider Plugin - 2.16.0 Confluence Publisher - 1.8 Copy Artifact Plugin - 1.38.1 Credentials Binding Plugin - 1.11 Credentials Plugin - 2.1.14 Crowd 2 Integration - 1.8 Dashboard View - 2.9.11 Display URL API - 2.0 Docker Commons Plugin - 1.6 Docker Pipeline - 1.11 Durable Task Plugin - 1.13 Email Extension Plugin - 2.57.2 embeddable-build-status - 1.9 Environment Injector Plugin - 2.1 External Monitor Job Type Plugin - 1.7 Folders Plugin - 6.0.4 Git client plugin - 2.4.6 Git Parameter Plug-In - 0.8.0 Git plugin - 3.3.0 GIT server Plugin - 1.7 GitHub API Plugin - 1.85.1 GitHub Branch Source Plugin - 2.0.6 GitHub Organization Folder Plugin - 1.6 GitHub plugin - 1.27.0 Gradle Plugin - 1.26 Grails plugin - 1.7 Groovy - 2.0 Groovy Postbuild - 2.3.1 HipChat Plugin - 2.1.1 HTML Publisher plugin - 1.13 Hudson Post build task - 1.8 IBM Security AppScan Source Scanner - 1.0.5 Icon Shim Plugin - 2.0.3 Jackson 2 API Plugin - 2.7.3 JaCoCo plugin - 2.2.1 Javadoc Plugin - 1.4 JavaScript GUI Lib: ACE Editor bundle plugin - 1.1 JavaScript GUI Lib: Handlebars bundle plugin - 1.1.1 JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin - 1.2.1 JavaScript GUI Lib: Moment.js bundle plugin - 1.1.1 Job Configuration History Plugin - 2.16 Job DSL - 1.63 jQuery plugin - 1.11.2-0 JUnit Plugin - 1.20 LDAP Plugin - 1.15 Lockable Resources plugin - 2.0 Mailer Plugin - 1.20 MapDB API Plugin - 1.0.9.0 Mask Passwords Plugin - 2.10.1 Matrix Authorization Strategy Plugin - 1.6 Matrix Project Plugin - 1.11 Maven Integration plugin - 2.16 Mercurial plugin - 1.60 Monitoring - 1.67.0 Multiple SCMs plugin - 0.6 No Agent Job Purge - 1.2 NodeJS Plugin - 1.2.2 OWASP Markup Formatter Plugin - 1.5 PAM Authentication plugin - 1.3 Parameterized Remote Trigger Plugin - 2.2.2 Parameterized Trigger plugin - 2.33 Pipeline - 2.5 Pipeline Graph Analysis Plugin - 1.4 Pipeline: API - 2.17 Pipeline: Basic Steps - 2.5 Pipeline: Build Step - 2.5 Pipeline: Declarative Agent API - 1.1.1 Pipeline: Declarative Extension Points API - 1.1.6 Pipeline: GitHub Groovy Libraries - 1.0 Pipeline: Groovy - 2.34 Pipeline: Input Step - 2.7 Pipeline: Job - 2.11 Pipeline: Milestone Step - 1.3.1 Pipeline: Model API - 1.1.6 Pipeline: Model Definition - 1.1.6 Pipeline: Multibranch - 2.15 Pipeline: Nodes and Processes - 2.11 Pipeline: REST API Plugin - 2.8 Pipeline: SCM Step - 2.4 Pipeline: Shared Groovy Libraries - 2.8 Pipeline: Stage Step - 2.2 Pipeline: Stage Tags Metadata - 1.1.6 Pipeline: Stage View Plugin - 2.8 Pipeline: Step API - 2.11 Pipeline: Supporting APIs - 2.14 Plain Credentials Plugin - 1.4 Publish Over SSH - 1.17 Purge Build Queue Plugin - 1.0 Purge Job History Plugin - 1.1 Rebuilder - 1.25 Resource Disposer Plugin - 0.6 Run Condition Plugin - 1.0 S3 publisher plugin - 0.10.12 sbt plugin - 1.5 SCM API Plugin - 2.1.1 Script Security Plugin - 1.28 Scriptler - 2.9 Show Build Parameters plugin - 1.0 SonarQube Scanner for Jenkins - 2.6.1 SSH Agent Plugin - 1.15 SSH Credentials Plugin - 1.13 SSH plugin - 2.4 SSH Slaves plugin - 1.19 Stash Notifier - 1.11.6 Static Analysis Utilities - 1.87 Structs Plugin - 1.7 Subversion Plug-in - 2.7.2 Throttle Concurrent Builds Plug-in - 2.0.1 Timestamper - 1.8.8 Token Macro Plugin - 2.1 user build vars plugin - 1.5 Warnings Plug-in - 4.62 Windows Slaves Plugin - 1.3.1 Workspace Cleanup Plugin - 0.33
I'm seeing a strange error during the Jenkins checkout scm stage after the initial Jenkinsfile checkout and node selection on one of my two nodes.
For one particular node, Jenkins is omitting the "git" command in "git init" which expectedly fails the build.
What I see on the failing node is this:
> init /home/hudson/build/workspace/androidplatform_pipeline # timeout=10
On my working node, running the exact same pipeline script, I see this:
> git init /home/hudson/build/workspace/androidplatform_pipeline # timeout=10
Both of my nodes are Amazon EC2 instances, so I tried deleting the failing one and replacing it with a clone of the working one, but the "git" command is still being omitted.
Maybe this issue has been addressed? I've had a hard time structuring useful a query string for this issue.
Thanks!
Stack Trace
Started by user ***** (*****)
Checking out git https://stash.*****/scm/platform/androidplatform.git
to read Jenkinsfile
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://stash.*****/scm/platform/androidplatform.git # timeout=10
Fetching upstream changes from https://stash.*****/scm/platform/androidplatform.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials hudson user with password
> git fetch --tags --progress https://stash.*****/scm/platform/androidplatform.git
+refs/heads/:refs/remotes/origin/
> git rev-parse refs/remotes/origin/ci/build/CI-87^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/ci/build/CI-87^{commit} # timeout=10
Checking out Revision 1c807b3f6a1caeb082c24bc69d89464e5da14818 (refs/remotes/origin/ci/build/CI-87)
> git config core.sparsecheckout # timeout=10
> git checkout -f 1c807b3f6a1caeb082c24bc69d89464e5da14818 # timeout=60
> git rev-list 1c807b3f6a1caeb082c24bc69d89464e5da14818 # timeout=10
[Pipeline] node
Running on andy-11-dc-big-replace in /home/hudson/build/workspace/androidplatform_pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Clean workspace)
[Pipeline] deleteDir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout source)
[Pipeline] checkout
Cloning the remote Git repository
Cloning repository https://stash.*****/scm/platform/androidplatform.git
> init /home/hudson/build/workspace/androidplatform_pipeline # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init /home/hudson/build/workspace/androidplatform_pipeline
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:696)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:497)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at ......remote call to andy-11-dc-big-replace(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
at hudson.remoting.Channel.call(Channel.java:830)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
at sun.reflect.GeneratedMethodAccessor836.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy105.execute(Unknown Source)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1067)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:260)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: hudson.plugins.git.GitException: Error performing command: init /home/hudson/build/workspace/androidplatform_pipeline
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1910)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1871)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1867)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1512)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:694)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:497)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
... 4 more
Caused by: java.io.IOException: Cannot run program "" (in directory "/home/hudson/build/workspace/androidplatform_pipeline"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at hudson.Proc$LocalProc.<init>(Proc.java:245)
at hudson.Proc$LocalProc.<init>(Proc.java:214)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:846)
at hudson.Launcher$ProcStarter.start(Launcher.java:384)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1899)
... 15 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 20 more
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: null
Finished: FAILURE
Pipeline Script
node('andy-11-dc-big-replace') {
try {
stage('Clean workspace') {
deleteDir()
}
stage('Checkout source') {
checkout scm
}
} catch (e) {
throw e
}
}