coding持续集成构建环境自定义node版本

coding持续集成构建环境自定义node版本

解决方案

只需要在构建计划的编写过程中增加一个如下的 stage,具体 nodejs 版本下载地址可参考 https://nodejs.org/en/download/releases/ 这里。

c 复制代码
    stage('toggle Node.js version') {
      steps {
        sh 'rm -rf /usr/lib/node_modules/npm/'
        dir ('/root/.cache/downloads') {
          sh 'wget -nc "https://nodejs.org/download/release/v8.17.0/node-v8.17.0-linux-x64.tar.xz" -O node-v8.17.0-linux-x64.tar.xz | true'
          sh 'tar -xf node-v8.17.0-linux-x64.tar.xz -C /usr --strip-components 1'
        }
        sh 'node -v'
      }
    }

参考

自定义版本
Previous Releases

相关推荐
pengdott3 天前
Rocky linux9安装最新版sonarqube-26.10.0
ci/cd·devops·sonarqube
lsc_blog5 天前
年底还在招的岗位,先确认缺口和到岗要求
git·缓存·ci/cd·职场和发展·github
AKA__Zas5 天前
接口自动化测试(1.0 初认识
python·ci/cd·学习方法
十二同学啊6 天前
Go 工程化详解:项目结构、代码规范、测试体系与 CI/CD 实践
ci/cd·golang·代码规范
Sakura_j_h_7 天前
GitHub Actions 打包 Windows exe:中文编码与产物上传
windows·ci/cd·打包发布·github·pyinstaller·github actions
砚底藏山河7 天前
量化回测可复现流水线CI化
java·python·ci/cd·金融
X1A0RAN7 天前
Jenkins CI 流水线优化实践:基于提交指纹的任务缓存
缓存·ci/cd·jenkins
长不大的杨瑞杰7 天前
OpenCode v2 GitLab 集成实战:Issue 驱动开发、MR 审查与 CI/CD 最小权限
人工智能·ci/cd·gitlab·ai编程·opencode
2501_9159214310 天前
KXBuild CI 实操,Windows/Linux 服务器接入 Jenkins 打包 iOS IPA
服务器·windows·vscode·ios·ci/cd·个人开发·敏捷流程
蒸鱼Yuzheng12 天前
性能 CI 成本优化:设备分钟、风险分层与自适应测试选择
自动化测试·ci/cd·性能测试·测试平台·成本优化