-
Bug
-
Resolution: Not A Defect
-
Blocker
-
Operating System: Ubuntu 18.04
Java:
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
How you installed Jenkins: apt-get
System Info
System Properties
Name ↓
Value
awt.toolkit sun.awt.X11.XToolkit
executable-war /usr/share/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/share/jenkins/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed
java.ext.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/lib/jvm/java-8-openjdk-amd64/jre
java.io.tmpdir /tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Private Build
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_232
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Private Build
java.vm.version 25.232-b09
javax.accessibility.assistive_technologies org.GNOME.Accessibility.AtkWrapper
jetty.git.hash e1bc35120a6617ee3df052294e433f3a25ce7097
jna.loaded true
jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
jnidispatch.path /var/lib/jenkins/.cache/JNA/temp/jna2084588918867972856.tmp
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch amd64
os.name Linux
os.version 4.15.0-1051-aws
path.separator :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes
sun.boot.library.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.dir /
user.home /var/lib/jenkins
user.language en
user.name jenkins
user.timezone Etc/UTC
Environment Variables
Name ↓
Value
_ /usr/bin/daemon
HOME /var/lib/jenkins
JENKINS_HOME /var/lib/jenkins
LANG C.UTF-8
LOGNAME jenkins
MAIL /var/mail/jenkins
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD /var/lib/jenkins
SHELL /bin/bash
SHLVL 1
USER jenkins
XDG_DATA_DIRS /usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR /run/user/111
XDG_SESSION_ID c1
Plugins
Name ↓
Version
Enabled
ace-editor 1.1 true
ant 1.10 true
antisamy-markup-formatter 1.6 true
apache-httpcomponents-client-4-api 4.5.10-2.0 true
authentication-tokens 1.3 true
bouncycastle-api 2.17 true
branch-api 2.5.5 true
build-timeout 1.19 true
cloudbees-folder 6.10.1 true
command-launcher 1.4 true
credentials 2.3.0 true
credentials-binding 1.20 true
display-url-api 2.3.2 true
docker-commons 1.16 true
docker-workflow 1.21 true
durable-task 1.33 true
email-ext 2.68 true
git 4.0.0 true
git-client 3.0.0 true
git-server 1.9 true
github 1.29.5 true
github-api 1.95 true
github-branch-source 2.5.8 true
gradle 1.35 true
handlebars 1.1.1 true
jackson2-api 2.10.1 true
jdk-tool 1.4 true
jquery-detached 1.2.1 true
jsch 0.1.55.1 true
junit 1.28 true
ldap 1.21 true
lockable-resources 2.7 true
mailer 1.29 true
mapdb-api 1.0.9.0 true
matrix-auth 2.5 true
matrix-project 1.14 true
momentjs 1.1.1 true
pam-auth 1.6 true
pipeline-build-step 2.10 true
pipeline-github-lib 1.0 true
pipeline-graph-analysis 1.10 true
pipeline-input-step 2.11 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.5.0 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.5.0 true
pipeline-model-extensions 1.5.0 true
pipeline-rest-api 2.12 true
pipeline-stage-step 2.3 true
pipeline-stage-tags-metadata 1.5.0 true
pipeline-stage-view 2.12 true
plain-credentials 1.5 true
resource-disposer 0.14 true
scm-api 2.6.3 true
script-security 1.68 true
ssh-credentials 1.18 true
ssh-slaves 1.31.0 true
structs 1.20 true
subversion 2.13.0 true
timestamper 1.10 true
token-macro 2.10 true
trilead-api 1.0.5 true
workflow-aggregator 2.6 true
workflow-api 2.38 true
workflow-basic-steps 2.18 true
workflow-cps 2.78 true
workflow-cps-global-lib 2.15 true
workflow-durable-task-step 2.35 true
workflow-job 2.36 true
workflow-multibranch 2.21 true
workflow-scm-step 2.9 true
workflow-step-api 2.21 true
workflow-support 3.3 true
ws-cleanup 0.38 trueOperating System: Ubuntu 18.04 Java: openjdk version "1.8.0_232" OpenJDK Runtime Environment (build 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09) OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode) How you installed Jenkins: apt-get System Info System Properties Name ↓ Value awt.toolkit sun.awt.X11.XToolkit executable-war /usr/share/jenkins/jenkins.war file.encoding UTF-8 file.encoding.pkg sun.io file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java.class.path /usr/share/jenkins/jenkins.war java.class.version 52.0 java.endorsed.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed java.ext.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/lib/jvm/java-8-openjdk-amd64/jre java.io.tmpdir /tmp java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib java.runtime.name OpenJDK Runtime Environment java.runtime.version 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Private Build java.vendor.url http://java.oracle.com/ java.vendor.url.bug http://bugreport.sun.com/bugreport/ java.version 1.8.0_232 java.vm.info mixed mode java.vm.name OpenJDK 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.8 java.vm.vendor Private Build java.vm.version 25.232-b09 javax.accessibility.assistive_technologies org.GNOME.Accessibility.AtkWrapper jetty.git.hash e1bc35120a6617ee3df052294e433f3a25ce7097 jna.loaded true jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib jnidispatch.path /var/lib/jenkins/.cache/JNA/temp/jna2084588918867972856.tmp line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true os.arch amd64 os.name Linux os.version 4.15.0-1051-aws path.separator : sun.arch.data.model 64 sun.boot.class.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes sun.boot.library.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.font.fontmanager sun.awt.X11FontManager sun.io.unicode.encoding UnicodeLittle sun.java.command /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 sun.java.launcher SUN_STANDARD sun.jnu.encoding UTF-8 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.dir / user.home /var/lib/jenkins user.language en user.name jenkins user.timezone Etc/UTC Environment Variables Name ↓ Value _ /usr/bin/daemon HOME /var/lib/jenkins JENKINS_HOME /var/lib/jenkins LANG C.UTF-8 LOGNAME jenkins MAIL /var/mail/jenkins PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD /var/lib/jenkins SHELL /bin/bash SHLVL 1 USER jenkins XDG_DATA_DIRS /usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_RUNTIME_DIR /run/user/111 XDG_SESSION_ID c1 Plugins Name ↓ Version Enabled ace-editor 1.1 true ant 1.10 true antisamy-markup-formatter 1.6 true apache-httpcomponents-client-4-api 4.5.10-2.0 true authentication-tokens 1.3 true bouncycastle-api 2.17 true branch-api 2.5.5 true build-timeout 1.19 true cloudbees-folder 6.10.1 true command-launcher 1.4 true credentials 2.3.0 true credentials-binding 1.20 true display-url-api 2.3.2 true docker-commons 1.16 true docker-workflow 1.21 true durable-task 1.33 true email-ext 2.68 true git 4.0.0 true git-client 3.0.0 true git-server 1.9 true github 1.29.5 true github-api 1.95 true github-branch-source 2.5.8 true gradle 1.35 true handlebars 1.1.1 true jackson2-api 2.10.1 true jdk-tool 1.4 true jquery-detached 1.2.1 true jsch 0.1.55.1 true junit 1.28 true ldap 1.21 true lockable-resources 2.7 true mailer 1.29 true mapdb-api 1.0.9.0 true matrix-auth 2.5 true matrix-project 1.14 true momentjs 1.1.1 true pam-auth 1.6 true pipeline-build-step 2.10 true pipeline-github-lib 1.0 true pipeline-graph-analysis 1.10 true pipeline-input-step 2.11 true pipeline-milestone-step 1.3.1 true pipeline-model-api 1.5.0 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.5.0 true pipeline-model-extensions 1.5.0 true pipeline-rest-api 2.12 true pipeline-stage-step 2.3 true pipeline-stage-tags-metadata 1.5.0 true pipeline-stage-view 2.12 true plain-credentials 1.5 true resource-disposer 0.14 true scm-api 2.6.3 true script-security 1.68 true ssh-credentials 1.18 true ssh-slaves 1.31.0 true structs 1.20 true subversion 2.13.0 true timestamper 1.10 true token-macro 2.10 true trilead-api 1.0.5 true workflow-aggregator 2.6 true workflow-api 2.38 true workflow-basic-steps 2.18 true workflow-cps 2.78 true workflow-cps-global-lib 2.15 true workflow-durable-task-step 2.35 true workflow-job 2.36 true workflow-multibranch 2.21 true workflow-scm-step 2.9 true workflow-step-api 2.21 true workflow-support 3.3 true ws-cleanup 0.38 true
I have setup Jenkins with "Install suggested plugins".
I have created a Job with details below
- Source Code Management : GIT to checkout my master branch
- Checkout my code as sub-directory
- Build - Execute Shell
sudo rm -rf /home/folder/backend sudo mv $WORKSPACE/backend /home/folder/ cd /home/folder sudo chown newuser:newuser -R * cd backend sudo npm install --unsafe-perm=true --allow-root
- Result when I run my Job
07:13:50 + cd /home/folder 07:13:50 + sudo chown newuser:newuser -R * 07:13:50 + cd backend 07:13:50 + sudo npm install --unsafe-perm=true --allow-root 07:13:54 npm WARN deprecated superagent@3.8.3: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released. 07:14:00 npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart() 07:14:23 07:14:23 > bcrypt@3.0.7 install /home/folder/backend/node_modules/bcrypt 07:14:23 > node-pre-gyp install --fallback-to-build 07:14:23 07:14:23 07:14:23 Build step 'Execute shell' marked build as failure 07:14:23 [WS-CLEANUP] Deleting project workspace... 07:14:23 [WS-CLEANUP] Deferred wipeout is used... 07:14:23 [WS-CLEANUP] done 07:14:23 Finished: FAILURE