-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
OS: various linux versions (ubuntu 14.04 + docker 17.12.0, arch linux + docker 18.02.0).
Jenkins 2.89.4 installed from latest docker image (as of 20180312), with ssh-agent plugin 1.15 and run like this:
docker run \
--user root \
--rm \
--name jenkins \
--detach \
--publish 8080:8080 \
--publish 50000:50000 \
--volume jenkins-data:/var/jenkins_home \
--volume /var/run/docker.sock:/var/run/docker.sock \
jenkinsci/blueocean
(as in https://jenkins.io/doc/book/installing/#downloading-and-running-jenkins-in-docker)
Plugins
----------
Apache HttpComponents Client 4.x API Plugin - 4.5.3-2.1
Authentication Tokens API Plugin - 1.3
Autofavorite for Blue Ocean - 1.2.2
Bitbucket Branch Source Plugin - 2.2.10
Bitbucket Pipeline for Blue Ocean - 1.4.2
Blue Ocean - 1.4.2
Blue Ocean Core JS - 1.4.2
Blue Ocean Pipeline Editor - 1.4.2
bouncycastle API Plugin - 2.16.2
Branch API Plugin - 2.0.18
Common API for Blue Ocean - 1.4.2
Config API for Blue Ocean - 1.4.2
Credentials Binding Plugin - 1.15
Credentials Plugin - 2.1.16
Dashboard for Blue Ocean - 1.4.2
Design Language - 1.4.2
Display URL API - 2.2.0
Display URL for Blue Ocean - 2.2.0
Docker Commons Plugin - 1.11
Docker Pipeline - 1.15.1
Docker Slaves Plugin - 1.0.7
Durable Task Plugin - 1.21
Events API for Blue Ocean - 1.4.2
Favorite - 2.3.1
Folders Plugin - 6.3
Git client plugin - 2.7.1
Git Pipeline for Blue Ocean - 1.4.2
Git plugin - 3.8.0
GIT server Plugin - 1.7
GitHub API Plugin - 1.90
GitHub Branch Source Plugin - 2.3.2
GitHub Pipeline for Blue Ocean - 1.4.2
GitHub plugin - 1.29.0
Handy Uri Templates 2.x API Plugin - 2.1.6-1.0
HTML Publisher plugin - 1.14
i18n for Blue Ocean - 1.4.2
Jackson 2 API Plugin - 2.8.11.1
JavaScript GUI Lib: ACE Editor bundle plugin - 1.1
JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin - 1.2.1
JIRA Integration for Blue Ocean - 1.4.2
JIRA plugin - 2.5
JSch dependency plugin - 0.1.54.2
JUnit Plugin - 1.24
JWT for Blue Ocean - 1.4.2
Mailer Plugin - 1.20
Matrix Authorization Strategy Plugin - 2.2
Matrix Project Plugin - 1.12
Mercurial plugin - 2.3
OWASP Markup Formatter Plugin - 1.5
patch-parameter - 1.2
Personalization for Blue Ocean - 1.4.2
Pipeline Graph Analysis Plugin - 1.6
Pipeline implementation for Blue Ocean - 1.4.2
Pipeline SCM API for Blue Ocean - 1.4.2
Pipeline: API - 2.26
Pipeline: Basic Steps - 2.6
Pipeline: Build Step - 2.7
Pipeline: Declarative - 1.2.7
Pipeline: Declarative Agent API - 1.1.1
Pipeline: Declarative Extension Points API - 1.2.7
Pipeline: Groovy - 2.45
Pipeline: Input Step - 2.8
Pipeline: Job - 2.17
Pipeline: Milestone Step - 1.3.1
Pipeline: Model API - 1.2.7
Pipeline: Multibranch - 2.17
Pipeline: Nodes and Processes - 2.19
Pipeline: SCM Step - 2.6
Pipeline: Shared Groovy Libraries - 2.9
Pipeline: Stage Step - 2.3
Pipeline: Stage Tags Metadata - 1.2.7
Pipeline: Step API - 2.14
Pipeline: Supporting APIs - 2.18
Plain Credentials Plugin - 1.4
Pub-Sub "light" Bus - 1.12
REST API for Blue Ocean - 1.4.2
REST Implementation for Blue Ocean - 1.4.2
SCM API Plugin - 2.2.6
Script Security Plugin - 1.41
Server Sent Events (SSE) Gateway Plugin - 1.15
SSH Agent Plugin - 1.15
SSH Credentials Plugin - 1.13
Structs Plugin - 1.14
Token Macro Plugin - 2.3
Variant Plugin - 1.1
Web for Blue Ocean - 1.4.2
Jenkins versions
----------------------
rg.jenkins-ci.main:jenkins-war:2.89.4
org.jenkins-ci:crypto-util:1.1
commons-httpclient:commons-httpclient:3.1-jenkins-1
aopalliance:aopalliance:1.0
org.kohsuke.stapler:stapler-jelly:1.254
com.google.inject:guice:4.0
org.jenkins-ci.modules:slave-installer:1.6
org.springframework:spring-dao:1.2.9
org.jenkins-ci.modules:instance-identity:2.1
org.jenkins-ci:constant-pool-scanner:1.2
org.connectbot.jbcrypt:jbcrypt:1.0.0
org.jenkins-ci.modules:ssh-cli-auth:1.4
org.jenkins-ci.modules:sshd:2.0
org.ow2.asm:asm-commons:5.0.3
org.jenkins-ci:symbol-annotation:1.1
com.github.jnr:jnr-constants:0.9.8
org.jenkins-ci.modules:windows-slave-installer:1.9.2
commons-digester:commons-digester:2.1
commons-io:commons-io:2.4
org.kohsuke:trilead-putty-extension:1.2
commons-codec:commons-codec:1.9
org.jenkins-ci.main:cli:2.89.4
org.kohsuke:libzfs:0.8
org.jenkins-ci.ui:jquery-detached:1.2
org.kohsuke.stapler:json-lib:2.4-jenkins-2
org.jvnet.robust-http-client:robust-http-client:1.2
org.ow2.asm:asm:5.0.3
net.java.sezpoz:sezpoz:1.12
org.kohsuke.stapler:stapler-adjunct-timeline:1.5
org.jenkins-ci:winstone:4.1
org.slf4j:log4j-over-slf4j:1.7.25
org.jenkins-ci:version-number:1.4
org.codehaus.groovy:groovy-all:2.4.11
org.jvnet.hudson:commons-jelly-tags-define:1.0.1-hudson-20071021
org.jenkins-ci:jmdns:3.4.0-jenkins-3
commons-lang:commons-lang:2.6
org.springframework:spring-jdbc:1.2.9
org.codehaus.woodstox:wstx-asl:3.2.9
org.springframework:spring-core:2.5.6.SEC03
org.springframework:spring-aop:2.5.6.SEC03
org.samba.jcifs:jcifs:1.3.17-kohsuke-1
org.jenkins-ci:bytecode-compatibility-transformer:1.8
com.sun.solaris:embedded_su4j:1.1
javax.inject:javax.inject:1
org.jenkins-ci.modules:upstart-slave-installer:1.1
org.apache.commons:commons-compress:1.10
commons-beanutils:commons-beanutils:1.8.3
org.jvnet.localizer:localizer:1.24
org.fusesource.jansi:jansi:1.11
org.springframework:spring-beans:2.5.6.SEC03
javax.xml.stream:stax-api:1.0-2
org.slf4j:slf4j-jdk14:1.7.25
org.jvnet.hudson:activation:1.1.1-hudson-1
commons-jelly:commons-jelly-tags-fmt:1.0
net.i2p.crypto:eddsa:0.2.0
jfree:jfreechart:1.0.9
org.jenkins-ci:task-reactor:1.4
org.apache.ant:ant-launcher:1.8.4
org.apache.sshd:sshd-core:1.6.0
oro:oro:2.0.8
org.jenkins-ci:commons-jexl:1.1-jenkins-20111212
org.kohsuke:access-modifier-annotation:1.11
org.kohsuke.stapler:stapler-jrebel:1.254
org.jenkins-ci.plugins.icon-shim:icon-set:1.0.5
stax:stax-api:1.0.1
com.google.code.findbugs:jsr305:2.0.1
org.kohsuke.stapler:stapler:1.254
org.kohsuke:windows-package-checker:1.2
org.acegisecurity:acegi-security:1.0.7
commons-fileupload:commons-fileupload:1.3.1-jenkins-2
org.jenkins-ci.modules:launchd-slave-installer:1.2
org.jenkins-ci:annotation-indexer:1.12
org.kohsuke:libpam4j:1.8
jline:jline:2.12
com.github.jnr:jffi:1.2.15
org.kohsuke.stapler:stapler-adjunct-zeroclipboard:1.3.5-1
org.kohsuke.stapler:stapler-adjunct-codemirror:1.3
org.ow2.asm:asm-util:5.0.3
org.slf4j:jcl-over-slf4j:1.7.25
org.kohsuke:akuma:1.10
org.kohsuke.stapler:stapler-groovy:1.254
javax.mail:mail:1.4.4
org.hamcrest:hamcrest-core:1.3
jfree:jcommon:1.0.12
org.springframework:spring-context-support:2.5.6.SEC03
com.google.guava:guava:11.0.1
org.jvnet.hudson:jtidy:4aug2000r7-dev-hudson-1
org.jenkins-ci:commons-jelly:1.1-jenkins-20120928
org.jenkins-ci.ui:handlebars:1.1.1
org.springframework:spring-context:2.5.6.SEC03
org.jenkins-ci.ui:jquery-detached:1.2.1
org.ow2.asm:asm-analysis:5.0.3
io.github.stephenc.crypto:self-signed-cert-generator:1.0.0
com.github.jnr:jffi:1.2.15
org.jvnet.winp:winp:1.25
javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1
commons-discovery:commons-discovery:0.4
org.jenkins-ci.dom4j:dom4j:1.6.1-jenkins-4
org.jenkins-ci:memory-monitor:1.9
org.jenkins-ci.modules:systemd-slave-installer:1.1
org.jvnet.hudson:xstream:1.4.7-jenkins-1
org.jvnet:tiger-types:2.2
com.sun.xml.txw2:txw2:20110809
org.springframework:spring-web:2.5.6.SEC03
org.kohsuke.jinterop:j-interop:2.0.6-kohsuke-1
org.jenkins-ci.main:remoting:3.14
org.jruby.ext.posix:jna-posix:1.0.3-jenkins-1
com.github.jnr:jnr-ffi:2.1.4
com.github.jnr:jnr-posix:3.0.41
javax.annotation:javax.annotation-api:1.2
org.kohsuke.jinterop:j-interopdeps:2.0.6-kohsuke-1
com.infradna.tool:bridge-method-annotation:1.13
org.ow2.asm:asm-tree:5.0.3
args4j:args4j:2.0.31
org.kohsuke:asm5:5.0.1
antlr:antlr:2.7.6
relaxngDatatype:relaxngDatatype:20020414
com.jcraft:jzlib:1.1.3-kohsuke-1
org.jenkins-ci.ui:bootstrap:1.3.2
commons-collections:commons-collections:3.2.2
net.java.dev.jna:jna:4.2.1
junit:junit:4.12
org.jenkins-ci.main:jenkins-core:2.89.4
org.jenkins-ci:trilead-ssh2:build-217-jenkins-11
org.slf4j:slf4j-api:1.7.25
net.sf.ezmorph:ezmorph:1.0.6
org.apache.ant:ant:1.8.4
org.springframework:spring-webmvc:2.5.6.SEC03
com.github.jnr:jnr-x86asm:1.0.2
xpp3:xpp3:1.1.4c
jaxen:jaxen:1.1-beta-11
commons-jelly:commons-jelly-tags-xml:1.1OS: various linux versions (ubuntu 14.04 + docker 17.12.0, arch linux + docker 18.02.0). Jenkins 2.89.4 installed from latest docker image (as of 20180312), with ssh-agent plugin 1.15 and run like this: docker run \ --user root \ --rm \ --name jenkins \ --detach \ --publish 8080:8080 \ --publish 50000:50000 \ --volume jenkins-data:/var/jenkins_home \ --volume /var/run/docker.sock:/var/run/docker.sock \ jenkinsci/blueocean (as in https://jenkins.io/doc/book/installing/#downloading-and-running-jenkins-in-docker) Plugins ---------- Apache HttpComponents Client 4.x API Plugin - 4.5.3-2.1 Authentication Tokens API Plugin - 1.3 Autofavorite for Blue Ocean - 1.2.2 Bitbucket Branch Source Plugin - 2.2.10 Bitbucket Pipeline for Blue Ocean - 1.4.2 Blue Ocean - 1.4.2 Blue Ocean Core JS - 1.4.2 Blue Ocean Pipeline Editor - 1.4.2 bouncycastle API Plugin - 2.16.2 Branch API Plugin - 2.0.18 Common API for Blue Ocean - 1.4.2 Config API for Blue Ocean - 1.4.2 Credentials Binding Plugin - 1.15 Credentials Plugin - 2.1.16 Dashboard for Blue Ocean - 1.4.2 Design Language - 1.4.2 Display URL API - 2.2.0 Display URL for Blue Ocean - 2.2.0 Docker Commons Plugin - 1.11 Docker Pipeline - 1.15.1 Docker Slaves Plugin - 1.0.7 Durable Task Plugin - 1.21 Events API for Blue Ocean - 1.4.2 Favorite - 2.3.1 Folders Plugin - 6.3 Git client plugin - 2.7.1 Git Pipeline for Blue Ocean - 1.4.2 Git plugin - 3.8.0 GIT server Plugin - 1.7 GitHub API Plugin - 1.90 GitHub Branch Source Plugin - 2.3.2 GitHub Pipeline for Blue Ocean - 1.4.2 GitHub plugin - 1.29.0 Handy Uri Templates 2.x API Plugin - 2.1.6-1.0 HTML Publisher plugin - 1.14 i18n for Blue Ocean - 1.4.2 Jackson 2 API Plugin - 2.8.11.1 JavaScript GUI Lib: ACE Editor bundle plugin - 1.1 JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin - 1.2.1 JIRA Integration for Blue Ocean - 1.4.2 JIRA plugin - 2.5 JSch dependency plugin - 0.1.54.2 JUnit Plugin - 1.24 JWT for Blue Ocean - 1.4.2 Mailer Plugin - 1.20 Matrix Authorization Strategy Plugin - 2.2 Matrix Project Plugin - 1.12 Mercurial plugin - 2.3 OWASP Markup Formatter Plugin - 1.5 patch-parameter - 1.2 Personalization for Blue Ocean - 1.4.2 Pipeline Graph Analysis Plugin - 1.6 Pipeline implementation for Blue Ocean - 1.4.2 Pipeline SCM API for Blue Ocean - 1.4.2 Pipeline: API - 2.26 Pipeline: Basic Steps - 2.6 Pipeline: Build Step - 2.7 Pipeline: Declarative - 1.2.7 Pipeline: Declarative Agent API - 1.1.1 Pipeline: Declarative Extension Points API - 1.2.7 Pipeline: Groovy - 2.45 Pipeline: Input Step - 2.8 Pipeline: Job - 2.17 Pipeline: Milestone Step - 1.3.1 Pipeline: Model API - 1.2.7 Pipeline: Multibranch - 2.17 Pipeline: Nodes and Processes - 2.19 Pipeline: SCM Step - 2.6 Pipeline: Shared Groovy Libraries - 2.9 Pipeline: Stage Step - 2.3 Pipeline: Stage Tags Metadata - 1.2.7 Pipeline: Step API - 2.14 Pipeline: Supporting APIs - 2.18 Plain Credentials Plugin - 1.4 Pub-Sub "light" Bus - 1.12 REST API for Blue Ocean - 1.4.2 REST Implementation for Blue Ocean - 1.4.2 SCM API Plugin - 2.2.6 Script Security Plugin - 1.41 Server Sent Events (SSE) Gateway Plugin - 1.15 SSH Agent Plugin - 1.15 SSH Credentials Plugin - 1.13 Structs Plugin - 1.14 Token Macro Plugin - 2.3 Variant Plugin - 1.1 Web for Blue Ocean - 1.4.2 Jenkins versions ---------------------- rg.jenkins-ci.main:jenkins-war:2.89.4 org.jenkins-ci:crypto-util:1.1 commons-httpclient:commons-httpclient:3.1-jenkins-1 aopalliance:aopalliance:1.0 org.kohsuke.stapler:stapler-jelly:1.254 com.google.inject:guice:4.0 org.jenkins-ci.modules:slave-installer:1.6 org.springframework:spring-dao:1.2.9 org.jenkins-ci.modules:instance-identity:2.1 org.jenkins-ci:constant-pool-scanner:1.2 org.connectbot.jbcrypt:jbcrypt:1.0.0 org.jenkins-ci.modules:ssh-cli-auth:1.4 org.jenkins-ci.modules:sshd:2.0 org.ow2.asm:asm-commons:5.0.3 org.jenkins-ci:symbol-annotation:1.1 com.github.jnr:jnr-constants:0.9.8 org.jenkins-ci.modules:windows-slave-installer:1.9.2 commons-digester:commons-digester:2.1 commons-io:commons-io:2.4 org.kohsuke:trilead-putty-extension:1.2 commons-codec:commons-codec:1.9 org.jenkins-ci.main:cli:2.89.4 org.kohsuke:libzfs:0.8 org.jenkins-ci.ui:jquery-detached:1.2 org.kohsuke.stapler:json-lib:2.4-jenkins-2 org.jvnet.robust-http-client:robust-http-client:1.2 org.ow2.asm:asm:5.0.3 net.java.sezpoz:sezpoz:1.12 org.kohsuke.stapler:stapler-adjunct-timeline:1.5 org.jenkins-ci:winstone:4.1 org.slf4j:log4j-over-slf4j:1.7.25 org.jenkins-ci:version-number:1.4 org.codehaus.groovy:groovy-all:2.4.11 org.jvnet.hudson:commons-jelly-tags-define:1.0.1-hudson-20071021 org.jenkins-ci:jmdns:3.4.0-jenkins-3 commons-lang:commons-lang:2.6 org.springframework:spring-jdbc:1.2.9 org.codehaus.woodstox:wstx-asl:3.2.9 org.springframework:spring-core:2.5.6.SEC03 org.springframework:spring-aop:2.5.6.SEC03 org.samba.jcifs:jcifs:1.3.17-kohsuke-1 org.jenkins-ci:bytecode-compatibility-transformer:1.8 com.sun.solaris:embedded_su4j:1.1 javax.inject:javax.inject:1 org.jenkins-ci.modules:upstart-slave-installer:1.1 org.apache.commons:commons-compress:1.10 commons-beanutils:commons-beanutils:1.8.3 org.jvnet.localizer:localizer:1.24 org.fusesource.jansi:jansi:1.11 org.springframework:spring-beans:2.5.6.SEC03 javax.xml.stream:stax-api:1.0-2 org.slf4j:slf4j-jdk14:1.7.25 org.jvnet.hudson:activation:1.1.1-hudson-1 commons-jelly:commons-jelly-tags-fmt:1.0 net.i2p.crypto:eddsa:0.2.0 jfree:jfreechart:1.0.9 org.jenkins-ci:task-reactor:1.4 org.apache.ant:ant-launcher:1.8.4 org.apache.sshd:sshd-core:1.6.0 oro:oro:2.0.8 org.jenkins-ci:commons-jexl:1.1-jenkins-20111212 org.kohsuke:access-modifier-annotation:1.11 org.kohsuke.stapler:stapler-jrebel:1.254 org.jenkins-ci.plugins.icon-shim:icon-set:1.0.5 stax:stax-api:1.0.1 com.google.code.findbugs:jsr305:2.0.1 org.kohsuke.stapler:stapler:1.254 org.kohsuke:windows-package-checker:1.2 org.acegisecurity:acegi-security:1.0.7 commons-fileupload:commons-fileupload:1.3.1-jenkins-2 org.jenkins-ci.modules:launchd-slave-installer:1.2 org.jenkins-ci:annotation-indexer:1.12 org.kohsuke:libpam4j:1.8 jline:jline:2.12 com.github.jnr:jffi:1.2.15 org.kohsuke.stapler:stapler-adjunct-zeroclipboard:1.3.5-1 org.kohsuke.stapler:stapler-adjunct-codemirror:1.3 org.ow2.asm:asm-util:5.0.3 org.slf4j:jcl-over-slf4j:1.7.25 org.kohsuke:akuma:1.10 org.kohsuke.stapler:stapler-groovy:1.254 javax.mail:mail:1.4.4 org.hamcrest:hamcrest-core:1.3 jfree:jcommon:1.0.12 org.springframework:spring-context-support:2.5.6.SEC03 com.google.guava:guava:11.0.1 org.jvnet.hudson:jtidy:4aug2000r7-dev-hudson-1 org.jenkins-ci:commons-jelly:1.1-jenkins-20120928 org.jenkins-ci.ui:handlebars:1.1.1 org.springframework:spring-context:2.5.6.SEC03 org.jenkins-ci.ui:jquery-detached:1.2.1 org.ow2.asm:asm-analysis:5.0.3 io.github.stephenc.crypto:self-signed-cert-generator:1.0.0 com.github.jnr:jffi:1.2.15 org.jvnet.winp:winp:1.25 javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1 commons-discovery:commons-discovery:0.4 org.jenkins-ci.dom4j:dom4j:1.6.1-jenkins-4 org.jenkins-ci:memory-monitor:1.9 org.jenkins-ci.modules:systemd-slave-installer:1.1 org.jvnet.hudson:xstream:1.4.7-jenkins-1 org.jvnet:tiger-types:2.2 com.sun.xml.txw2:txw2:20110809 org.springframework:spring-web:2.5.6.SEC03 org.kohsuke.jinterop:j-interop:2.0.6-kohsuke-1 org.jenkins-ci.main:remoting:3.14 org.jruby.ext.posix:jna-posix:1.0.3-jenkins-1 com.github.jnr:jnr-ffi:2.1.4 com.github.jnr:jnr-posix:3.0.41 javax.annotation:javax.annotation-api:1.2 org.kohsuke.jinterop:j-interopdeps:2.0.6-kohsuke-1 com.infradna.tool:bridge-method-annotation:1.13 org.ow2.asm:asm-tree:5.0.3 args4j:args4j:2.0.31 org.kohsuke:asm5:5.0.1 antlr:antlr:2.7.6 relaxngDatatype:relaxngDatatype:20020414 com.jcraft:jzlib:1.1.3-kohsuke-1 org.jenkins-ci.ui:bootstrap:1.3.2 commons-collections:commons-collections:3.2.2 net.java.dev.jna:jna:4.2.1 junit:junit:4.12 org.jenkins-ci.main:jenkins-core:2.89.4 org.jenkins-ci:trilead-ssh2:build-217-jenkins-11 org.slf4j:slf4j-api:1.7.25 net.sf.ezmorph:ezmorph:1.0.6 org.apache.ant:ant:1.8.4 org.springframework:spring-webmvc:2.5.6.SEC03 com.github.jnr:jnr-x86asm:1.0.2 xpp3:xpp3:1.1.4c jaxen:jaxen:1.1-beta-11 commons-jelly:commons-jelly-tags-xml:1.1
After storing the corresponding credentials in jenkins, run this simple pipeline.
pipeline { agent none stages { stage('Build') { agent { docker { image 'ubuntu:xenial' } } steps { sh 'apt-get update --fix-missing && apt-get install -y --no-install-recommends openssh-server' sshagent(['LOOPYBOT_SSH_KEY']) { echo 'this works...' sh 'ssh -o StrictHostKeyChecking=no -T git@github.com' echo '...but by now, the agent is dead already' sh 'ssh -o StrictHostKeyChecking=no -T git@github.com' } } } } }
The first query to github succeeds, as shown in the following logs, but in the meantime the agent is being killed, leading to failure (the second echo does not even get to be executed)
[Pipeline] sshagent [ssh-agent] Using credentials loopybot (Loopybot private SSH key) [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) $ docker exec 4fd40aecda7b7e358e741e6d6718f26c859d469782682dd77272373a4a04c6c3 ssh-agent SSH_AUTH_SOCK=/tmp/ssh-ff6fQZ8xmkpj/agent.464 SSH_AGENT_PID=469 $ docker exec --env DISPLAY=:0 --env SSH_AGENT_PID=469 --env "SSH_ASKPASS=/var/jenkins_home/workspace/test ssh-agent@tmp/askpass_6666993461119741620.sh" --env SSH_AUTH_SOCK=/tmp/ssh-ff6fQZ8xmkpj/agent.464 --env SSH_PASSPHRASE=P44G4LUcCR 4fd40aecda7b7e358e741e6d6718f26c859d469782682dd77272373a4a04c6c3 ssh-add "/var/jenkins_home/workspace/test ssh-agent@tmp/private_key_750299606857458225.key" Identity added: /var/jenkins_home/workspace/test ssh-agent@tmp/private_key_750299606857458225.key (/var/jenkins_home/workspace/test ssh-agent@tmp/private_key_750299606857458225.key) [ssh-agent] Started. [Pipeline] { [Pipeline] echo this works... [Pipeline] sh [test ssh-agent] Running shell script + ssh -o StrictHostKeyChecking=no -T git@github.com $ docker exec --env SSH_AGENT_PID=469 --env SSH_AUTH_SOCK=/tmp/ssh-ff6fQZ8xmkpj/agent.464 4fd40aecda7b7e358e741e6d6718f26c859d469782682dd77272373a4a04c6c3 ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 469 killed; [ssh-agent] Stopped. Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts. Hi loopybot! You've successfully authenticated, but GitHub does not provide shell access. [Pipeline] } [Pipeline] // sshagent [Pipeline] } $ docker stop --time=1 4fd40aecda7b7e358e741e6d6718f26c859d469782682dd77272373a4a04c6c3 $ docker rm -f 4fd40aecda7b7e358e741e6d6718f26c859d469782682dd77272373a4a04c6c3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] End of Pipeline ERROR: script returned exit code 1 Finished: FAILURE
- duplicates
-
JENKINS-43050 SSH Agent plugin doesn't work well with docker pipelines
- Open