jenkinsci / npm-yarn-wrapper-steps-plugin

A Jenkins plugin for convenient usage of npm and yarn in pipelines
https://plugins.jenkins.io/npm-yarn-wrapper-steps/
MIT License
2 stars 2 forks source link

`nvm ls-remote` is blocked the build step #19

Open lmtoo opened 1 year ago

lmtoo commented 1 year ago

What feature do you want to see added?

if nvm ls has the version from .nvmrc , then don't to execute nvm ls-remote command

10:58:57 Started by user root 10:58:57 Running as SYSTEM 10:58:57 Building in workspace /var/jenkins_home/workspace/offline-inspection-h5 10:58:57 [WS-CLEANUP] Deleting project workspace... 10:58:57 [WS-CLEANUP] Deferred wipeout is used... 10:58:57 [WS-CLEANUP] Done 10:58:57 The recommended git tool is: NONE 10:58:57 using credential 997dfaa5-5052-41e2-aadb-c5034cd0aea0 10:58:57 Cloning the remote Git repository 10:58:57 Cloning repository http://git.luban.fit/chengleili/offline-inspection.git 10:58:57 > git init /var/jenkins_home/workspace/offline-inspection-h5 # timeout=10 10:58:57 Fetching upstream changes from http://git.luban.fit/chengleili/offline-inspection.git 10:58:57 > git --version # timeout=10 10:58:57 > git --version # 'git version 1.8.3.1' 10:58:57 using GITASKPASS to set credentials gitlab 10:58:57 > git fetch --tags --progress http://git.luban.fit/chengleili/offline-inspection.git +refs/heads/:refs/remotes/origin/ # timeout=10 10:59:02 > git config remote.origin.url http://git.luban.fit/chengleili/offline-inspection.git # timeout=10 10:59:03 > git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 10:59:03 Avoid second fetch 10:59:03 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 10:59:03 Checking out Revision deedaf7c2908e9f518bc94ea905d31873fc4cd9f (refs/remotes/origin/master) 10:59:03 > git config core.sparsecheckout # timeout=10 10:59:03 > git checkout -f deedaf7c2908e9f518bc94ea905d31873fc4cd9f # timeout=10 10:59:03 Commit message: "text/javascript" 10:59:03 > git rev-list --no-walk deedaf7c2908e9f518bc94ea905d31873fc4cd9f # timeout=10 10:59:03 :/usr/bin/nohup 10:59:03 BUILD_DISPLAY_NAME:#13 10:59:03 BUILD_ID:13 10:59:03 BUILD_NUMBER:13 10:59:03 BUILD_TAG:jenkins-offline-inspection-h5-13 10:59:03 BUILD_URL:http://192.168.2.216:9999/job/offline-inspection-h5/13/ 10:59:03 CI:true 10:59:03 CLASSPATH: 10:59:03 EXECUTOR_NUMBER:0 10:59:03 GIT_BRANCH:origin/master 10:59:03 GIT_COMMIT:deedaf7c2908e9f518bc94ea905d31873fc4cd9f 10:59:03 GIT_PREVIOUS_COMMIT:deedaf7c2908e9f518bc94ea905d31873fc4cd9f 10:59:03 GIT_PREVIOUS_SUCCESSFUL_COMMIT:492b180697a91a8f7c91e885561eae32c4580921 10:59:03 GIT_URL:http://git.luban.fit/chengleili/offline-inspection.git 10:59:03 HISTCONTROL:ignoredups 10:59:03 HISTSIZE:50000 10:59:03 HOME:/root 10:59:03 HOSTNAME:k3s-server 10:59:03 HUDSON_HOME:/var/jenkins_home 10:59:03 HUDSON_SERVER_COOKIE:1110011d5aa6740e 10:59:03 HUDSON_URL:http://192.168.2.216:9999/ 10:59:03 JAVA_HOME:/usr/local/jdk1.8.0_192 10:59:03 JAVA_OPTS:-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 10:59:03 JENKINS_HOME:/var/jenkins_home 10:59:03 JENKINS_SERVER_COOKIE:1110011d5aa6740e 10:59:03 JENKINS_URL:http://192.168.2.216:9999/ 10:59:03 JOB_BASE_NAME:offline-inspection-h5 10:59:03 JOB_DISPLAY_URL:http://192.168.2.216:9999/job/offline-inspection-h5/display/redirect 10:59:03 JOB_NAME:offline-inspection-h5 10:59:03 JOB_URL:http://192.168.2.216:9999/job/offline-inspection-h5/ 10:59:03 LANG:zh_CN.UTF-8 10:59:03 LESS:-R 10:59:03 LESSOPEN:||/usr/bin/lesspipe.sh %s 10:59:03 LOGNAME:root 10:59:03 LS_COLORS:rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:.tar=38;5;9:.tgz=38;5;9:.arc=38;5;9:.arj=38;5;9:.taz=38;5;9:.lha=38;5;9:.lz4=38;5;9:.lzh=38;5;9:.lzma=38;5;9:.tlz=38;5;9:.txz=38;5;9:.tzo=38;5;9:.t7z=38;5;9:.zip=38;5;9:.z=38;5;9:.Z=38;5;9:.dz=38;5;9:.gz=38;5;9:.lrz=38;5;9:.lz=38;5;9:.lzo=38;5;9:.xz=38;5;9:.bz2=38;5;9:.bz=38;5;9:.tbz=38;5;9:.tbz2=38;5;9:.tz=38;5;9:.deb=38;5;9:.rpm=38;5;9:.jar=38;5;9:.war=38;5;9:.ear=38;5;9:.sar=38;5;9:.rar=38;5;9:.alz=38;5;9:.ace=38;5;9:.zoo=38;5;9:.cpio=38;5;9:.7z=38;5;9:.rz=38;5;9:.cab=38;5;9:.jpg=38;5;13:.jpeg=38;5;13:.gif=38;5;13:.bmp=38;5;13:.pbm=38;5;13:.pgm=38;5;13:.ppm=38;5;13:.tga=38;5;13:.xbm=38;5;13:.xpm=38;5;13:.tif=38;5;13:.tiff=38;5;13:.png=38;5;13:.svg=38;5;13:.svgz=38;5;13:.mng=38;5;13:.pcx=38;5;13:.mov=38;5;13:.mpg=38;5;13:.mpeg=38;5;13:.m2v=38;5;13:.mkv=38;5;13:.webm=38;5;13:.ogm=38;5;13:.mp4=38;5;13:.m4v=38;5;13:.mp4v=38;5;13:.vob=38;5;13:.qt=38;5;13:.nuv=38;5;13:.wmv=38;5;13:.asf=38;5;13:.rm=38;5;13:.rmvb=38;5;13:.flc=38;5;13:.avi=38;5;13:.fli=38;5;13:.flv=38;5;13:.gl=38;5;13:.dl=38;5;13:.xcf=38;5;13:.xwd=38;5;13:.yuv=38;5;13:.cgm=38;5;13:.emf=38;5;13:.axv=38;5;13:.anx=38;5;13:.ogv=38;5;13:.ogx=38;5;13:.aac=38;5;45:.au=38;5;45:.flac=38;5;45:.mid=38;5;45:.midi=38;5;45:.mka=38;5;45:.mp3=38;5;45:.mpc=38;5;45:.ogg=38;5;45:.ra=38;5;45:.wav=38;5;45:.axa=38;5;45:.oga=38;5;45:.spx=38;5;45:*.xspf=38;5;45: 10:59:03 LSCOLORS:Gxfxcxdxbxegedabagacad 10:59:03 MAIL:/var/spool/mail/root 10:59:03 MAVEN_OPTS: 10:59:03 NAGINATOR_BUILD_NUMBER:12 10:59:03 NAGINATOR_COUNT:1 10:59:03 NAGINATOR_MAXCOUNT:3 10:59:03 NODE_LABELS:built-in 10:59:03 NODE_NAME:built-in 10:59:03 OLDPWD:/usr/local 10:59:03 PAGER:less 10:59:03 PATH:/usr/local/jdk1.8.0_192/bin:/usr/local/apache-maven-3.6.3/bin:/usr/local/jdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin 10:59:03 PATH+JDK:/usr/local/jdk1.8.0_192/bin 10:59:03 PWD:/usr/local/jenkins 10:59:03 RUN_ARTIFACTS_DISPLAY_URL:http://192.168.2.216:9999/job/offline-inspection-h5/13/display/redirect?page=artifacts 10:59:03 RUN_CHANGES_DISPLAY_URL:http://192.168.2.216:9999/job/offline-inspection-h5/13/display/redirect?page=changes 10:59:03 RUN_DISPLAY_URL:http://192.168.2.216:9999/job/offline-inspection-h5/13/display/redirect 10:59:03 RUN_TESTS_DISPLAY_URL:http://192.168.2.216:9999/job/offline-inspection-h5/13/display/redirect?page=tests 10:59:03 SHELL:/bin/zsh 10:59:03 SHLVL:1 10:59:03 SSH_CLIENT:192.168.17.154 49306 22 10:59:03 SSH_CONNECTION:192.168.17.154 49306 192.168.2.216 22 10:59:03 SSH_TTY:/dev/pts/0 10:59:03 TERM:xterm-256color 10:59:03 USER:root 10:59:03 WORKSPACE:/var/jenkins_home/workspace/offline-inspection-h5 10:59:03 WORKSPACE_TMP:/var/jenkins_home/workspace/offline-inspection-h5@tmp 10:59:03 XDG_RUNTIME_DIR:/run/user/0 10:59:03 XDG_SESSION_ID:1 10:59:03 ZSH:/root/.oh-my-zsh 10:59:03 推送通知{"markdown":{"content":"<font color=\"info\">【offline-inspection-h5】<\/font>开始构建\n >构建参数:<font color=\"comment\">无<\/font>\n >预计用时:<font color=\"comment\">3分钟<\/font>\n >查看控制台"},"msgtype":"markdown"} 10:59:03 通知结果{"errcode":0,"errmsg":"ok"} 10:59:03 Found '/var/jenkins_home/workspace/offline-inspection-h5/.nvmrc' with version <v16.20.0> 10:59:19 v16.20.0 is already installed. 10:59:19 Now using node v16.20.0 (npm v8.19.4) 10:59:20 Found '/var/jenkins_home/workspace/offline-inspection-h5/.nvmrc' with version <v16.20.0> 11:02:31 v16.20.0 is already installed. 11:02:31 Now using node v16.20.0 (npm v8.19.4) 11:02:31 yarn run v1.22.19 11:02:31 $ react-app-rewired build 11:02:31 /bin/sh: react-app-rewired: 未找到命令 11:02:31 error Command failed with exit code 127. 11:02:31 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 11:02:31 ERROR: 11:02:31 Skipped archiving because build is not successful 11:02:31 SSH: Current build result is [FAILURE], not going to run. 11:02:31 推送通知{"markdown":{"content":"<font color=\"info\">【offline-inspection-h5】<\/font>构建<font color=\"warning\">失败!!!<\/font>😭\n >构建用时:<font color=\"comment\">3 min 34 sec<\/font>\n >查看控制台"},"msgtype":"markdown"} 11:02:32 通知结果{"errcode":0,"errmsg":"ok"} 11:02:32 项目运行结果[FAILURE] 11:02:32 Started calculate disk usage of build 11:02:32 Finished Calculation of disk usage of build in 0 seconds 11:02:32 Started calculate disk usage of workspace 11:02:32 Finished Calculation of disk usage of workspace in 0 seconds 11:02:32 Finished: FAILURE

Upstream changes

No response