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

相关推荐
极小狐13 小时前
极狐GitLab CI/CD 功能合集(超详细教程)
ci/cd·gitlab·devsecops·devops
黑风风20 小时前
解决 GitLab CI/CD 中的 `413 Request Entity Too Large` 错误
ci/cd·gitlab
爱吃香蕉的阿豪4 天前
828华为云征文|Flexus X实例Docker+Jenkins+gitee实现CI/CD自动化部署-解放你的双手~
ci/cd·docker·gitee·华为云·jenkins
俗庸2035 天前
带你如何使用CICD持续集成与持续交付
运维·ci/cd
laufing5 天前
基于 jenkins 的持续集成、持续部署方案
运维·ci/cd·jenkins·开发
demon75520036 天前
GitLab CI_CD 从入门到实战笔记
笔记·ci/cd·gitlab
m0_629776927 天前
CI/CD中gitlab和jenkins讲解
git·ci/cd·gitlab·jenkins
Flying_Fish_roe7 天前
JUnit 5 详解
ci/cd·自动化·devops
风吟Pro8 天前
GitLab CI Runner安装
ci/cd·gitlab
[禾火]8 天前
CICD 持续集成与持续交付
ci/cd