Open cOtomoo opened 2 years ago
[2022-08-26 11:48:03] Started by user coding [2022-08-26 11:48:03] Running in Durability level: MAX_SURVIVABILITY [2022-08-26 11:48:04] [Pipeline] Start of Pipeline [2022-08-26 11:48:05] [Pipeline] getContext [2022-08-26 11:48:05] [Pipeline] node [2022-08-26 11:48:05] Running on Jenkins in /root/workspace [2022-08-26 11:48:05] [Pipeline] { [2022-08-26 11:48:07] [Pipeline] isUnix [2022-08-26 11:48:07] [Pipeline] sh [2022-08-26 11:48:07] + docker inspect -f . ccr.ccs.tencentyun.com/cloudbaseframework/cloudbase-framework-runner:1.8.15 [2022-08-26 11:48:07] . [2022-08-26 11:48:07] [Pipeline] withDockerContainer [2022-08-26 11:48:07] Jenkins does not seem to be running inside a container [2022-08-26 11:48:07] $ docker run -t -d -u 0:0 -v /root/.cloudbase-pnpm-cache:/root/.pnpm-store -v /root/.cloudbase-yarn-cache:/usr/local/share/.cache/yarn/v6 -v /root/.cloudbase-npm-cache:/root/.npm -v /root/.weapps-build/app:/root/.weapps-build/app -v /root/.weapps-materials/gsd-h5-react@0.0.70:/root/.weapps-materials/gsd-h5-react@0.0.70 -v /root/.weapps-materials/CLOUDBASE_BUSSINESS@1627377179261:/root/.weapps-materials/CLOUDBASE_BUSSINESS@1627377179261 -v /root/cloudbase-framework/registry/node_modules/@cloudbase/framework-plugin-low-code:/root/.tmp/framework-plugin-low-code -w /root/workspace -v /root/workspace:/root/workspace:rw,z -v /root/workspace@tmp:/root/workspace@tmp:rw,z -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** ccr.ccs.tencentyun.com/cloudbaseframework/cloudbase-framework-runner:1.8.15 cat [2022-08-26 11:48:08] $ docker top 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c -eo pid,comm [2022-08-26 11:48:08] [Pipeline] { [2022-08-26 11:48:08] [Pipeline] stage [2022-08-26 11:48:08] [Pipeline] { (检出 ZIP 包) [2022-08-26 11:48:08] Stage "检出 ZIP 包" skipped due to when conditional [2022-08-26 11:48:09] [Pipeline] } [2022-08-26 11:48:09] [Pipeline] // stage [2022-08-26 11:48:09] [Pipeline] stage [2022-08-26 11:48:09] [Pipeline] { (检出代码仓库) [2022-08-26 11:48:09] [Pipeline] sh [2022-08-26 11:48:09] + cd /root [2022-08-26 11:48:09] + git clone --depth 1 --branch master ** cloudbase-workspace [2022-08-26 11:48:09] Cloning into 'cloudbase-workspace'... [2022-08-26 11:48:11] + rm -rf cloudbase-workspace/.git [2022-08-26 11:48:11] [Pipeline] } [2022-08-26 11:48:11] [Pipeline] // stage [2022-08-26 11:48:11] [Pipeline] stage [2022-08-26 11:48:11] [Pipeline] { (提交代码) [2022-08-26 11:48:11] [Pipeline] script [2022-08-26 11:48:11] [Pipeline] { [2022-08-26 11:48:11] [Pipeline] } [2022-08-26 11:48:12] [Pipeline] // script [2022-08-26 11:48:12] [Pipeline] } [2022-08-26 11:48:12] [Pipeline] // stage [2022-08-26 11:48:12] [Pipeline] stage [2022-08-26 11:48:12] [Pipeline] { (登录) [2022-08-26 11:48:12] [Pipeline] sh [2022-08-26 11:48:12] + tcb login --apiKeyId ** --apiKey '**' --token ** [2022-08-26 11:48:12] CloudBase CLI 1.9.2 [2022-08-26 11:48:12] CloudBase Framework 1.8.15 [2022-08-26 11:48:14] - 数据加载中... [2022-08-26 11:48:14] - 检验登录状态 [2022-08-26 11:48:14] - 正在验证腾讯云密钥... [2022-08-26 11:48:14] ✔ 登录成功! [2022-08-26 11:48:14] 可使用下面命令继续操作: [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 创建免费环境 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb env create envName [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 初始化云开发项目 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb new [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 部署云函数 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb fn deploy [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 查看命令使用介绍 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb -h [2022-08-26 11:48:14] [2022-08-26 11:48:14] Tips:可以使用简写命令 tcb 代替 cloudbase [2022-08-26 11:48:14] + rm -rf /root/cloudbase-framework/registry/node_modules/@cloudbase/framework-plugin-low-code [2022-08-26 11:48:15] + cp -r /root/.tmp/framework-plugin-low-code /root/cloudbase-framework/registry/nodemodules/@cloudbase/framework-plugin-low-code [2022-08-26 11:48:19] [Pipeline] } [2022-08-26 11:48:19] [Pipeline] // stage [2022-08-26 11:48:19] [Pipeline] stage [2022-08-26 11:48:19] [Pipeline] { (构建) [2022-08-26 11:48:19] [Pipeline] sh [2022-08-26 11:48:19] + cd /root/cloudbase-workspace/nest-starter [2022-08-26 11:48:19] + pwd [2022-08-26 11:48:19] /root/cloudbase-workspace/nest-starter [2022-08-26 11:48:19] + ls -al [2022-08-26 11:48:19] total 56 [2022-08-26 11:48:19] drwxr-xr-x 4 root root 4096 Aug 26 03:48 . [2022-08-26 11:48:19] drwxr-xr-x 36 root root 4096 Aug 26 03:48 .. [2022-08-26 11:48:19] -rw-r--r-- 1 root root 599 Aug 26 03:48 .eslintrc.js [2022-08-26 11:48:19] -rw-r--r-- 1 root root 376 Aug 26 03:48 .gitignore [2022-08-26 11:48:19] -rw-r--r-- 1 root root 51 Aug 26 03:48 .prettierrc [2022-08-26 11:48:19] -rw-r--r-- 1 root root 1189 Aug 26 03:48 README.md [2022-08-26 11:48:19] -rw-r--r-- 1 root root 93 Aug 26 03:48 app.js [2022-08-26 11:48:19] -rw-r--r-- 1 root root 660 Aug 26 03:48 cloudbaserc.json [2022-08-26 11:48:19] -rw-r--r-- 1 root root 116 Aug 26 03:48 nest-cli.json [2022-08-26 11:48:19] -rw-r--r-- 1 root root 1959 Aug 26 03:48 package.json [2022-08-26 11:48:19] drwxr-xr-x 2 root root 4096 Aug 26 03:48 src [2022-08-26 11:48:19] drwxr-xr-x 2 root root 4096 Aug 26 03:48 test [2022-08-26 11:48:19] -rw-r--r-- 1 root root 97 Aug 26 03:48 tsconfig.build.json [2022-08-26 11:48:19] -rw-r--r-- 1 root root 394 Aug 26 03:48 tsconfig.json [2022-08-26 11:48:19] + CI=true tcb framework deploy -e cs-demo-6g3s3i7p8ef93ae6 --verbose [2022-08-26 11:48:20] CloudBase CLI 1.9.2 [2022-08-26 11:48:20] CloudBase Framework 1.8.15 [2022-08-26 11:48:21] - 数据加载中... [2022-08-26 11:48:21] [1m __ [22m [2022-08-26 11:48:21] [1m / // /__ __/ // ) __ __ [22m [2022-08-26 11:48:21] [1m / / / // \ / / / // // |/ // ___// _ \ [22m [2022-08-26 11:48:21] [1m/ /___ / // /_/ // /_/ // /_/ // /_/ // /_/ /(__ )/ __/ [22m [2022-08-26 11:48:21] [1m\____//_/_\____/ \__,_/ \__,_//_____/ \__,_//____/ \___/ __ [22m [2022-08-26 11:48:21] [1m / ____/_____ ____ _ ____ ___ ___ _ __ ____ _____ / /__[22m [2022-08-26 11:48:21] [1m / /_ / ___// __// ` \ / | | /| / // \ / // //_/[22m [2022-08-26 11:48:21] [1m / / / / / /_/ // / / / / // _/| |/ |/ // // // / / ,< [22m [2022-08-26 11:48:21] [1m// // _,/// // // \/ |/|/ ___/// //|| [22m [2022-08-26 11:48:21] [1m [22m [2022-08-26 11:48:21] [1m[22m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Version [32mv1.8.15[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Github: [1m[4m[36mhttps://github.com/Tencent/cloudbase-framework[39m[24m[22m [2022-08-26 11:48:21] [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info EnvId [32mcs-demo-6g3s3i7p8ef93ae6[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Region [32map-shanghai[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug 云端构建场景 [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug process.env { [2022-08-26 11:48:21] CI_BUILD_ID: '24271488', [2022-08-26 11:48:21] CLOUDBASE_CIID: 'b83cc7d2-6264-484d-aabe-85f338246df3', [2022-08-26 11:48:21] GIT_REPO_URL: '', [2022-08-26 11:48:21] CLOUDBASE_TCB_CLOUDAPI_REGION: 'ap-guangzhou', [2022-08-26 11:48:21] JOB_ID: '1454414', [2022-08-26 11:48:21] PROJECT_TOKEN_GK: '**', [2022-08-26 11:48:21] GIT_PREVIOUS_SUCCESSFUL_COMMIT: '', [2022-08-26 11:48:21] PROJ_DIR: 'nest-starter', [2022-08-26 11:48:21] CI: 'true', [2022-08-26 11:48:21] NODE_VERSION: '14.17.6', [2022-08-26 11:48:21] HOSTNAME: '46f378c9cdc2', [2022-08-26 11:48:21] TCB_CODE_REPO: '{"Type":"github","Url":"**","Name":"nest-starter","WorkDir":"nest-starter","RawCode":"","Headers":null,"Branch":"","ProjectId":0}', [2022-08-26 11:48:21] RUN_CHANGES_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=changes', [2022-08-26 11:48:21] CI_BUILD_NUMBER: '5', [2022-08-26 11:48:21] YARN_VERSION: '1.22.5', [2022-08-26 11:48:21] GIT_COMMIT: '', [2022-08-26 11:48:21] NODE_LABELS: 'master', [2022-08-26 11:48:21] SHLVL: '2', [2022-08-26 11:48:21] HOME: '/root', [2022-08-26 11:48:21] GIT_SSH_URL: '', [2022-08-26 11:48:21] DOCKER_REGISTRY_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] DOCKER_USERNAME: '**', [2022-08-26 11:48:21] BUILD_TYPE: 'CODE_REPO', [2022-08-26 11:48:21] CODE_URL_WITH_AUTH: '**', [2022-08-26 11:48:21] TCB_COMMIT_ID: '', [2022-08-26 11:48:21] PROJECT_API_URL: 'https://cloudbase-******.coding.net/api/user/cloudbase-******/project/', [2022-08-26 11:48:21] JENKINS_SERVER_COOKIE: 'durable-eaea33d8b70cee58f706e622dc5f25c1', [2022-08-26 11:48:21] CCI_CURRENT_TEAM: 'cloudbase-**', [2022-08-26 11:48:21] REPO_URL: '', [2022-08-26 11:48:21] GIT_HTTP_URL: '', [2022-08-26 11:48:21] REF: '', [2022-08-26 11:48:21] WORKSPACE: '/root/workspace', [2022-08-26 11:48:21] TCB_ADDON_CONFIG: '[]', [2022-08-26 11:48:21] CI_ENV_FILE: '/tmp/dynamic.env', [2022-08-26 11:48:21] TCB_ENVIRONMENT: '{"TCB_COMMIT_ID":""}', [2022-08-26 11:48:21] TCB_NETWORK_CONFIG: '{"uniqVpcId":"","cloudBaseRun":true}', [2022-08-26 11:48:21] PROJECT_WEB_URL: 'https://cloudbase-******.coding.net/p/framework-ci-cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] ENV_ID: 'cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] FETCH_REF_SPECS: '+refs/heads/:refs/remotes/origin/ +refs/merge/:refs/remotes/origin/merge/', [2022-08-26 11:48:21] NODE_NAME: 'master', [2022-08-26 11:48:21] API_SECRET_ID: '**', [2022-08-26 11:48:21] PROJECT_NAME: 'framework-ci-cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] RUN_ARTIFACTS_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=artifacts', [2022-08-26 11:48:21] CREDENTIALS_ID: '', [2022-08-26 11:48:21] EXECUTOR_NUMBER: '30', [2022-08-26 11:48:21] STAGE_NAME: '构建', [2022-08-26 11:48:21] CLOUDBASE_TCB_EXTENTION_CLOUDAPI_REGION: 'ap-guangzhou', [2022-08-26 11:48:21] RUN_TESTS_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=tests', [2022-08-26 11:48:21] BUILD_DISPLAY_NAME: '#1', [2022-08-26 11:48:21] HUDSON_HOME: '/var/lib/jenkins', [2022-08-26 11:48:21] JOB_BASE_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', [2022-08-26 11:48:21] DOCKER_IMAGE_NAME: 'ccr.ccs.tencentyun.com/:nest-starter-1661485675046346185', [2022-08-26 11:48:21] API_TOKEN: '**', [2022-08-26 11:48:21] BUILD_ID: '1', [2022-08-26 11:48:21] DOCKER_BUILD_CONTEXT: '.', [2022-08-26 11:48:21] TRIGGER_USER_NAME: '管理员', [2022-08-26 11:48:21] BUILD_TAG: 'jenkins-cci-23561720-666368-1', [2022-08-26 11:48:21] PROJECT_ID: '10821173', [2022-08-26 11:48:21] GIT_URL: '', [2022-08-26 11:48:21] BUILD_NUMBER: '1', [2022-08-26 11:48:21] JENKINS_NODE_COOKIE: 'd915f6d7-838d-4dd5-bae9-26178575e3a2', [2022-08-26 11:48:21] DOCKER_PASSWORD: '**', [2022-08-26 11:48:21] CCI_JOB_NAME: 'cs-demo-6g3s3i7p8ef93ae6nest-starternest-starter', [2022-08-26 11:48:21] CODING_ARTIFACTS_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] DOCKERFILE_PATH: 'Dockerfile', [2022-08-26 11:48:21] RUN_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect', [2022-08-26 11:48:21] HUDSON_SERVER_COOKIE: 'ff55c75c430e66f1', [2022-08-26 11:48:21] API_SECRET_KEY: '**', [2022-08-26 11:48:21] TCB_RC_JSON: '{"version":"2.0","envId":"{{envId}}","$schema":"https://framework-1258016615.tcloudbaseapp.com/schema/latest.json","framework":{"name":"nest-starter","plugins":{"node":{"use":"@cloudbase/framework-plugin-node","inputs":{"name":"nest-starter","path":"/nest-starter","entry":"app.js","buildCommand":"npm install --prefer-offline --no-audit --progress=false && npm run build","functionOptions":{"timeout":5,"envVariables":{"NODE_ENV":"production"}}}}}}}', [2022-08-26 11:48:21] TRIGGER_USER_ID: '8051023', [2022-08-26 11:48:21] JOB_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/display/redirect', [2022-08-26 11:48:21] ANDROID_SDK_ROOT: '/root/programs/android-sdk', [2022-08-26 11:48:21] CLASSPATH: '', [2022-08-26 11:48:21] CCI_TRIGGER_METHOD: 'MANUAL', [2022-08-26 11:48:21] JOB_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] CLOUDBASE_TRACEID: 'b83cc7d2-6264-484d-aabe-85f338246df3', [2022-08-26 11:48:21] CODE_REF: 'master', [2022-08-26 11:48:21] PROJECT_TOKEN: '**', [2022-08-26 11:48:21] PWD: '/root/cloudbase-workspace/nest-starter', [2022-08-26 11:48:21] CCI_CURRENT_WEB_PROTOCOL: 'https', [2022-08-26 11:48:21] TRIGGER_USER_GK: 'WRvbosEieg', [2022-08-26 11:48:21] CI_STORAGE_BUCKET_NAME: '**', [2022-08-26 11:48:21] GIT_PREVIOUS_COMMIT: '', [2022-08-26 11:48:21] CCI_CURRENT_PROJECT_COMMON_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] GIT_BUILD_REF: '', [2022-08-26 11:48:21] CCI_TASK_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] BEHAVIOR_TYPE: 'TCB_FRAMEWORK', [2022-08-26 11:48:21] CCI_CURRENT_DOMAIN: 'coding.net', [2022-08-26 11:48:21] WEBPACK_DEV_SERVER: 'true' [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug 项目配置信息 'rcConfig' { [2022-08-26 11:48:21] functionRoot: './functions', [2022-08-26 11:48:21] functions: [], [2022-08-26 11:48:21] version: '2.0', [2022-08-26 11:48:21] envId: '', [2022-08-26 11:48:21] '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', [2022-08-26 11:48:21] framework: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } 'extraData' { [2022-08-26 11:48:21] repo: { [2022-08-26 11:48:21] Type: 'github', [2022-08-26 11:48:21] Url: '**', [2022-08-26 11:48:21] Name: 'nest-starter', [2022-08-26 11:48:21] WorkDir: 'nest-starter', [2022-08-26 11:48:21] RawCode: '', [2022-08-26 11:48:21] Headers: null, [2022-08-26 11:48:21] Branch: '', [2022-08-26 11:48:21] ProjectId: 0 [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] tags: undefined, [2022-08-26 11:48:21] environment: { TCB_COMMIT_ID: '' }, [2022-08-26 11:48:21] network: { uniqVpcId: '', cloudBaseRun: true }, [2022-08-26 11:48:21] addons: [] [2022-08-26 11:48:21] } 'projectName' 'nest-starter' [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug RC 配置文件变更 false { [2022-08-26 11:48:21] functionRoot: './functions', [2022-08-26 11:48:21] functions: [], [2022-08-26 11:48:21] version: '2.0', [2022-08-26 11:48:21] envId: '', [2022-08-26 11:48:21] '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', [2022-08-26 11:48:21] framework: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug Framework 配置文件变更 false { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Validate config file success. [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info AppName [32mnest-starter[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug appConfig { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] repo: { [2022-08-26 11:48:21] Type: 'github', [2022-08-26 11:48:21] Url: '**', [2022-08-26 11:48:21] Name: 'nest-starter', [2022-08-26 11:48:21] WorkDir: 'nest-starter', [2022-08-26 11:48:21] RawCode: '', [2022-08-26 11:48:21] Headers: null, [2022-08-26 11:48:21] Branch: '', [2022-08-26 11:48:21] ProjectId: 0 [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] tags: undefined, [2022-08-26 11:48:21] environment: { TCB_COMMIT_ID: '' }, [2022-08-26 11:48:21] network: { uniqVpcId: '', cloudBaseRun: true }, [2022-08-26 11:48:21] addons: [] [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info 📦 install plugins [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug initHooks {} [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug resolve plugin @cloudbase/framework-plugin-node@1.8.15: use 0.00 s, mismatch:false, resolved version:1.8.15 [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug deploy '' '' [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info callHooks 'preDeploy' [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::info 🔧 init: node... [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::debug NodePlugin: init { [2022-08-26 11:48:24] runtime: 'Nodejs10.15', [2022-08-26 11:48:24] entry: 'app.js', [2022-08-26 11:48:24] path: '/nest-starter', [2022-08-26 11:48:24] name: 'nest-starter', [2022-08-26 11:48:24] projectPath: '.', [2022-08-26 11:48:24] platform: 'function', [2022-08-26 11:48:24] wrapExpress: false, [2022-08-26 11:48:24] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:24] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:24] } [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::info 🔨 build: node... [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::debug NodePlugin: build { [2022-08-26 11:48:24] runtime: 'Nodejs10.15', [2022-08-26 11:48:24] entry: 'app.js', [2022-08-26 11:48:24] path: '/nest-starter', [2022-08-26 11:48:24] name: 'nest-starter', [2022-08-26 11:48:24] projectPath: '.', [2022-08-26 11:48:24] platform: 'function', [2022-08-26 11:48:24] wrapExpress: false, [2022-08-26 11:48:24] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:24] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:24] } [2022-08-26 11:48:56] Fri Aug 26 2022 03:48:54 GMT+0000 (Coordinated Universal Time) 34.3 CloudBase Framework::error Command failed: npm install --prefer-offline --no-audit --progress=false && npm run build [2022-08-26 11:48:56] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 [2022-08-26 11:48:56] npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 [2022-08-26 11:48:56] npm WARN deprecated har-validator@5.1.5: this library is no longer supported [2022-08-26 11:48:56] npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated [2022-08-26 11:48:56] npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated [2022-08-26 11:48:56] npm notice created a lockfile as package-lock.json. You should commit this file. [2022-08-26 11:48:56] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents): [2022-08-26 11:48:56] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) [2022-08-26 11:48:56] [2022-08-26 11:48:56] [96mnode_modules/@types/superagent/index.d.ts[0m:[93m23[0m:[93m10[0m - [91merror[0m[90m TS2305: [0mModule '"buffer"' has no exported member 'Blob'. [2022-08-26 11:48:56] [2022-08-26 11:48:56] [7m23[0m import { Blob } from "buffer"; [2022-08-26 11:48:56] [7m [0m [91m ~~~~[0m [2022-08-26 11:48:56] [2022-08-26 11:48:56] npm ERR! code ELIFECYCLE [2022-08-26 11:48:56] npm ERR! errno 1 [2022-08-26 11:48:56] npm ERR! nest-starter@0.0.1 build: nest build [2022-08-26 11:48:56] npm ERR! Exit status 1 [2022-08-26 11:48:56] npm ERR! [2022-08-26 11:48:56] npm ERR! Failed at the nest-starter@0.0.1 build script. [2022-08-26 11:48:56] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [2022-08-26 11:48:56] [2022-08-26 11:48:56] npm ERR! A complete log of this run can be found in: [2022-08-26 11:48:56] npm ERR! /root/.npm/_logs/2022-08-26T03_48_54_666Z-debug.log [2022-08-26 11:48:56] [2022-08-26 11:48:56] Fri Aug 26 2022 03:48:54 GMT+0000 (Coordinated Universal Time) 34.3 CloudBase Framework::info 部署日志: '/root/cloudbase-framework/logs/2022-08-26_03-48-20.log' [2022-08-26 11:48:56] [Pipeline] } [2022-08-26 11:48:56] [Pipeline] // stage [2022-08-26 11:48:56] [Pipeline] } [2022-08-26 11:48:56] $ docker stop --time=1 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c [2022-08-26 11:48:57] $ docker rm -f 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c [2022-08-26 11:48:59] [Pipeline] // withDockerContainer [2022-08-26 11:48:59] [Pipeline] } [2022-08-26 11:48:59] [Pipeline] // node [2022-08-26 11:48:59] [Pipeline] End of Pipeline [2022-08-26 11:48:59] ERROR: script returned exit code 1 [2022-08-26 11:48:59] Finished: FAILURE
// ___// _ \ [22m [2022-08-26 11:48:21] [1m/ /___ / // /_/ // /_/ // /_/ // /_/ // /_/ /(__ )/ __/ [22m [2022-08-26 11:48:21] [1m\____//_/_\____/ \__,_/ \__,_//_____/ \__,_//____/ \___/ __ [22m [2022-08-26 11:48:21] [1m / ____/_____ ____ _ ____ ___ ___ _ __ ____ _____ / /__[22m [2022-08-26 11:48:21] [1m / /_ / ___// __
nest build
[2022-08-26 11:48:03] Started by user coding [2022-08-26 11:48:03] Running in Durability level: MAX_SURVIVABILITY [2022-08-26 11:48:04] [Pipeline] Start of Pipeline [2022-08-26 11:48:05] [Pipeline] getContext [2022-08-26 11:48:05] [Pipeline] node [2022-08-26 11:48:05] Running on Jenkins in /root/workspace [2022-08-26 11:48:05] [Pipeline] { [2022-08-26 11:48:07] [Pipeline] isUnix [2022-08-26 11:48:07] [Pipeline] sh [2022-08-26 11:48:07] + docker inspect -f . ccr.ccs.tencentyun.com/cloudbaseframework/cloudbase-framework-runner:1.8.15 [2022-08-26 11:48:07] . [2022-08-26 11:48:07] [Pipeline] withDockerContainer [2022-08-26 11:48:07] Jenkins does not seem to be running inside a container [2022-08-26 11:48:07] $ docker run -t -d -u 0:0 -v /root/.cloudbase-pnpm-cache:/root/.pnpm-store -v /root/.cloudbase-yarn-cache:/usr/local/share/.cache/yarn/v6 -v /root/.cloudbase-npm-cache:/root/.npm -v /root/.weapps-build/app:/root/.weapps-build/app -v /root/.weapps-materials/gsd-h5-react@0.0.70:/root/.weapps-materials/gsd-h5-react@0.0.70 -v /root/.weapps-materials/CLOUDBASE_BUSSINESS@1627377179261:/root/.weapps-materials/CLOUDBASE_BUSSINESS@1627377179261 -v /root/cloudbase-framework/registry/node_modules/@cloudbase/framework-plugin-low-code:/root/.tmp/framework-plugin-low-code -w /root/workspace -v /root/workspace:/root/workspace:rw,z -v /root/workspace@tmp:/root/workspace@tmp:rw,z -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** -e **** ccr.ccs.tencentyun.com/cloudbaseframework/cloudbase-framework-runner:1.8.15 cat [2022-08-26 11:48:08] $ docker top 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c -eo pid,comm [2022-08-26 11:48:08] [Pipeline] { [2022-08-26 11:48:08] [Pipeline] stage [2022-08-26 11:48:08] [Pipeline] { (检出 ZIP 包) [2022-08-26 11:48:08] Stage "检出 ZIP 包" skipped due to when conditional [2022-08-26 11:48:09] [Pipeline] } [2022-08-26 11:48:09] [Pipeline] // stage [2022-08-26 11:48:09] [Pipeline] stage [2022-08-26 11:48:09] [Pipeline] { (检出代码仓库) [2022-08-26 11:48:09] [Pipeline] sh [2022-08-26 11:48:09] + cd /root [2022-08-26 11:48:09] + git clone --depth 1 --branch master ** cloudbase-workspace [2022-08-26 11:48:09] Cloning into 'cloudbase-workspace'... [2022-08-26 11:48:11] + rm -rf cloudbase-workspace/.git [2022-08-26 11:48:11] [Pipeline] } [2022-08-26 11:48:11] [Pipeline] // stage [2022-08-26 11:48:11] [Pipeline] stage [2022-08-26 11:48:11] [Pipeline] { (提交代码) [2022-08-26 11:48:11] [Pipeline] script [2022-08-26 11:48:11] [Pipeline] { [2022-08-26 11:48:11] [Pipeline] } [2022-08-26 11:48:12] [Pipeline] // script [2022-08-26 11:48:12] [Pipeline] } [2022-08-26 11:48:12] [Pipeline] // stage [2022-08-26 11:48:12] [Pipeline] stage [2022-08-26 11:48:12] [Pipeline] { (登录) [2022-08-26 11:48:12] [Pipeline] sh [2022-08-26 11:48:12] + tcb login --apiKeyId ** --apiKey '**' --token ** [2022-08-26 11:48:12] CloudBase CLI 1.9.2 [2022-08-26 11:48:12] CloudBase Framework 1.8.15 [2022-08-26 11:48:14] - 数据加载中... [2022-08-26 11:48:14] - 检验登录状态 [2022-08-26 11:48:14] - 正在验证腾讯云密钥... [2022-08-26 11:48:14] ✔ 登录成功! [2022-08-26 11:48:14] 可使用下面命令继续操作: [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 创建免费环境 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb env create envName [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 初始化云开发项目 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb new [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 部署云函数 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb fn deploy [2022-08-26 11:48:14] [2022-08-26 11:48:14] – 查看命令使用介绍 [2022-08-26 11:48:14] [2022-08-26 11:48:14] $ tcb -h [2022-08-26 11:48:14] [2022-08-26 11:48:14] Tips:可以使用简写命令 tcb 代替 cloudbase [2022-08-26 11:48:14] + rm -rf /root/cloudbase-framework/registry/node_modules/@cloudbase/framework-plugin-low-code [2022-08-26 11:48:15] + cp -r /root/.tmp/framework-plugin-low-code /root/cloudbase-framework/registry/nodemodules/@cloudbase/framework-plugin-low-code [2022-08-26 11:48:19] [Pipeline] } [2022-08-26 11:48:19] [Pipeline] // stage [2022-08-26 11:48:19] [Pipeline] stage [2022-08-26 11:48:19] [Pipeline] { (构建) [2022-08-26 11:48:19] [Pipeline] sh [2022-08-26 11:48:19] + cd /root/cloudbase-workspace/nest-starter [2022-08-26 11:48:19] + pwd [2022-08-26 11:48:19] /root/cloudbase-workspace/nest-starter [2022-08-26 11:48:19] + ls -al [2022-08-26 11:48:19] total 56 [2022-08-26 11:48:19] drwxr-xr-x 4 root root 4096 Aug 26 03:48 . [2022-08-26 11:48:19] drwxr-xr-x 36 root root 4096 Aug 26 03:48 .. [2022-08-26 11:48:19] -rw-r--r-- 1 root root 599 Aug 26 03:48 .eslintrc.js [2022-08-26 11:48:19] -rw-r--r-- 1 root root 376 Aug 26 03:48 .gitignore [2022-08-26 11:48:19] -rw-r--r-- 1 root root 51 Aug 26 03:48 .prettierrc [2022-08-26 11:48:19] -rw-r--r-- 1 root root 1189 Aug 26 03:48 README.md [2022-08-26 11:48:19] -rw-r--r-- 1 root root 93 Aug 26 03:48 app.js [2022-08-26 11:48:19] -rw-r--r-- 1 root root 660 Aug 26 03:48 cloudbaserc.json [2022-08-26 11:48:19] -rw-r--r-- 1 root root 116 Aug 26 03:48 nest-cli.json [2022-08-26 11:48:19] -rw-r--r-- 1 root root 1959 Aug 26 03:48 package.json [2022-08-26 11:48:19] drwxr-xr-x 2 root root 4096 Aug 26 03:48 src [2022-08-26 11:48:19] drwxr-xr-x 2 root root 4096 Aug 26 03:48 test [2022-08-26 11:48:19] -rw-r--r-- 1 root root 97 Aug 26 03:48 tsconfig.build.json [2022-08-26 11:48:19] -rw-r--r-- 1 root root 394 Aug 26 03:48 tsconfig.json [2022-08-26 11:48:19] + CI=true tcb framework deploy -e cs-demo-6g3s3i7p8ef93ae6 --verbose [2022-08-26 11:48:20] CloudBase CLI 1.9.2 [2022-08-26 11:48:20] CloudBase Framework 1.8.15 [2022-08-26 11:48:21] - 数据加载中... [2022-08-26 11:48:21] [1m __ [22m [2022-08-26 11:48:21] [1m / // /__ __/ // ) __ __ [22m [2022-08-26 11:48:21] [1m / / / // \ / / / // // |/
// ___// _ \ [22m [2022-08-26 11:48:21] [1m/ /___ / // /_/ // /_/ // /_/ // /_/ // /_/ /(__ )/ __/ [22m [2022-08-26 11:48:21] [1m\____//_/_\____/ \__,_/ \__,_//_____/ \__,_//____/ \___/ __ [22m [2022-08-26 11:48:21] [1m / ____/_____ ____ _ ____ ___ ___ _ __ ____ _____ / /__[22m [2022-08-26 11:48:21] [1m / /_ / ___// __
// ` \ / | | /| / // \ / // //_/[22m [2022-08-26 11:48:21] [1m / / / / / /_/ // / / / / // _/| |/ |/ // // // / / ,< [22m [2022-08-26 11:48:21] [1m// // _,/// // // \/ |/|/ ___/// //|| [22m [2022-08-26 11:48:21] [1m [22m [2022-08-26 11:48:21] [1m[22m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Version [32mv1.8.15[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Github: [1m[4m[36mhttps://github.com/Tencent/cloudbase-framework[39m[24m[22m [2022-08-26 11:48:21] [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info EnvId [32mcs-demo-6g3s3i7p8ef93ae6[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Region [32map-shanghai[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug 云端构建场景 [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug process.env { [2022-08-26 11:48:21] CI_BUILD_ID: '24271488', [2022-08-26 11:48:21] CLOUDBASE_CIID: 'b83cc7d2-6264-484d-aabe-85f338246df3', [2022-08-26 11:48:21] GIT_REPO_URL: '', [2022-08-26 11:48:21] CLOUDBASE_TCB_CLOUDAPI_REGION: 'ap-guangzhou', [2022-08-26 11:48:21] JOB_ID: '1454414', [2022-08-26 11:48:21] PROJECT_TOKEN_GK: '**', [2022-08-26 11:48:21] GIT_PREVIOUS_SUCCESSFUL_COMMIT: '', [2022-08-26 11:48:21] PROJ_DIR: 'nest-starter', [2022-08-26 11:48:21] CI: 'true', [2022-08-26 11:48:21] NODE_VERSION: '14.17.6', [2022-08-26 11:48:21] HOSTNAME: '46f378c9cdc2', [2022-08-26 11:48:21] TCB_CODE_REPO: '{"Type":"github","Url":"**","Name":"nest-starter","WorkDir":"nest-starter","RawCode":"","Headers":null,"Branch":"","ProjectId":0}', [2022-08-26 11:48:21] RUN_CHANGES_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=changes', [2022-08-26 11:48:21] CI_BUILD_NUMBER: '5', [2022-08-26 11:48:21] YARN_VERSION: '1.22.5', [2022-08-26 11:48:21] GIT_COMMIT: '', [2022-08-26 11:48:21] NODE_LABELS: 'master', [2022-08-26 11:48:21] SHLVL: '2', [2022-08-26 11:48:21] HOME: '/root', [2022-08-26 11:48:21] GIT_SSH_URL: '', [2022-08-26 11:48:21] DOCKER_REGISTRY_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] DOCKER_USERNAME: '**', [2022-08-26 11:48:21] BUILD_TYPE: 'CODE_REPO', [2022-08-26 11:48:21] CODE_URL_WITH_AUTH: '**', [2022-08-26 11:48:21] TCB_COMMIT_ID: '', [2022-08-26 11:48:21] PROJECT_API_URL: 'https://cloudbase-******.coding.net/api/user/cloudbase-******/project/', [2022-08-26 11:48:21] JENKINS_SERVER_COOKIE: 'durable-eaea33d8b70cee58f706e622dc5f25c1', [2022-08-26 11:48:21] CCI_CURRENT_TEAM: 'cloudbase-**', [2022-08-26 11:48:21] REPO_URL: '', [2022-08-26 11:48:21] GIT_HTTP_URL: '', [2022-08-26 11:48:21] REF: '', [2022-08-26 11:48:21] WORKSPACE: '/root/workspace', [2022-08-26 11:48:21] TCB_ADDON_CONFIG: '[]', [2022-08-26 11:48:21] CI_ENV_FILE: '/tmp/dynamic.env', [2022-08-26 11:48:21] TCB_ENVIRONMENT: '{"TCB_COMMIT_ID":""}', [2022-08-26 11:48:21] TCB_NETWORK_CONFIG: '{"uniqVpcId":"","cloudBaseRun":true}', [2022-08-26 11:48:21] PROJECT_WEB_URL: 'https://cloudbase-******.coding.net/p/framework-ci-cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] ENV_ID: 'cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] FETCH_REF_SPECS: '+refs/heads/:refs/remotes/origin/ +refs/merge/:refs/remotes/origin/merge/', [2022-08-26 11:48:21] NODE_NAME: 'master', [2022-08-26 11:48:21] API_SECRET_ID: '**', [2022-08-26 11:48:21] PROJECT_NAME: 'framework-ci-cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] RUN_ARTIFACTS_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=artifacts', [2022-08-26 11:48:21] CREDENTIALS_ID: '', [2022-08-26 11:48:21] EXECUTOR_NUMBER: '30', [2022-08-26 11:48:21] STAGE_NAME: '构建', [2022-08-26 11:48:21] CLOUDBASE_TCB_EXTENTION_CLOUDAPI_REGION: 'ap-guangzhou', [2022-08-26 11:48:21] RUN_TESTS_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=tests', [2022-08-26 11:48:21] BUILD_DISPLAY_NAME: '#1', [2022-08-26 11:48:21] HUDSON_HOME: '/var/lib/jenkins', [2022-08-26 11:48:21] JOB_BASE_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', [2022-08-26 11:48:21] DOCKER_IMAGE_NAME: 'ccr.ccs.tencentyun.com/:nest-starter-1661485675046346185', [2022-08-26 11:48:21] API_TOKEN: '**', [2022-08-26 11:48:21] BUILD_ID: '1', [2022-08-26 11:48:21] DOCKER_BUILD_CONTEXT: '.', [2022-08-26 11:48:21] TRIGGER_USER_NAME: '管理员', [2022-08-26 11:48:21] BUILD_TAG: 'jenkins-cci-23561720-666368-1', [2022-08-26 11:48:21] PROJECT_ID: '10821173', [2022-08-26 11:48:21] GIT_URL: '', [2022-08-26 11:48:21] BUILD_NUMBER: '1', [2022-08-26 11:48:21] JENKINS_NODE_COOKIE: 'd915f6d7-838d-4dd5-bae9-26178575e3a2', [2022-08-26 11:48:21] DOCKER_PASSWORD: '**', [2022-08-26 11:48:21] CCI_JOB_NAME: 'cs-demo-6g3s3i7p8ef93ae6nest-starternest-starter', [2022-08-26 11:48:21] CODING_ARTIFACTS_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] DOCKERFILE_PATH: 'Dockerfile', [2022-08-26 11:48:21] RUN_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect', [2022-08-26 11:48:21] HUDSON_SERVER_COOKIE: 'ff55c75c430e66f1', [2022-08-26 11:48:21] API_SECRET_KEY: '**', [2022-08-26 11:48:21] TCB_RC_JSON: '{"version":"2.0","envId":"{{envId}}","$schema":"https://framework-1258016615.tcloudbaseapp.com/schema/latest.json","framework":{"name":"nest-starter","plugins":{"node":{"use":"@cloudbase/framework-plugin-node","inputs":{"name":"nest-starter","path":"/nest-starter","entry":"app.js","buildCommand":"npm install --prefer-offline --no-audit --progress=false && npm run build","functionOptions":{"timeout":5,"envVariables":{"NODE_ENV":"production"}}}}}}}', [2022-08-26 11:48:21] TRIGGER_USER_ID: '8051023', [2022-08-26 11:48:21] JOB_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/display/redirect', [2022-08-26 11:48:21] ANDROID_SDK_ROOT: '/root/programs/android-sdk', [2022-08-26 11:48:21] CLASSPATH: '', [2022-08-26 11:48:21] CCI_TRIGGER_METHOD: 'MANUAL', [2022-08-26 11:48:21] JOB_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] CLOUDBASE_TRACEID: 'b83cc7d2-6264-484d-aabe-85f338246df3', [2022-08-26 11:48:21] CODE_REF: 'master', [2022-08-26 11:48:21] PROJECT_TOKEN: '**', [2022-08-26 11:48:21] PWD: '/root/cloudbase-workspace/nest-starter', [2022-08-26 11:48:21] CCI_CURRENT_WEB_PROTOCOL: 'https', [2022-08-26 11:48:21] TRIGGER_USER_GK: 'WRvbosEieg', [2022-08-26 11:48:21] CI_STORAGE_BUCKET_NAME: '**', [2022-08-26 11:48:21] GIT_PREVIOUS_COMMIT: '', [2022-08-26 11:48:21] CCI_CURRENT_PROJECT_COMMON_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] GIT_BUILD_REF: '', [2022-08-26 11:48:21] CCI_TASK_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] BEHAVIOR_TYPE: 'TCB_FRAMEWORK', [2022-08-26 11:48:21] CCI_CURRENT_DOMAIN: 'coding.net', [2022-08-26 11:48:21] WEBPACK_DEV_SERVER: 'true' [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug 项目配置信息 'rcConfig' { [2022-08-26 11:48:21] functionRoot: './functions', [2022-08-26 11:48:21] functions: [], [2022-08-26 11:48:21] version: '2.0', [2022-08-26 11:48:21] envId: '', [2022-08-26 11:48:21] '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', [2022-08-26 11:48:21] framework: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } 'extraData' { [2022-08-26 11:48:21] repo: { [2022-08-26 11:48:21] Type: 'github', [2022-08-26 11:48:21] Url: '**', [2022-08-26 11:48:21] Name: 'nest-starter', [2022-08-26 11:48:21] WorkDir: 'nest-starter', [2022-08-26 11:48:21] RawCode: '', [2022-08-26 11:48:21] Headers: null, [2022-08-26 11:48:21] Branch: '', [2022-08-26 11:48:21] ProjectId: 0 [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] tags: undefined, [2022-08-26 11:48:21] environment: { TCB_COMMIT_ID: '' }, [2022-08-26 11:48:21] network: { uniqVpcId: '', cloudBaseRun: true }, [2022-08-26 11:48:21] addons: [] [2022-08-26 11:48:21] } 'projectName' 'nest-starter' [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug RC 配置文件变更 false { [2022-08-26 11:48:21] functionRoot: './functions', [2022-08-26 11:48:21] functions: [], [2022-08-26 11:48:21] version: '2.0', [2022-08-26 11:48:21] envId: '', [2022-08-26 11:48:21] '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', [2022-08-26 11:48:21] framework: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug Framework 配置文件变更 false { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Validate config file success. [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info AppName [32mnest-starter[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug appConfig { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] repo: { [2022-08-26 11:48:21] Type: 'github', [2022-08-26 11:48:21] Url: '**', [2022-08-26 11:48:21] Name: 'nest-starter', [2022-08-26 11:48:21] WorkDir: 'nest-starter', [2022-08-26 11:48:21] RawCode: '', [2022-08-26 11:48:21] Headers: null, [2022-08-26 11:48:21] Branch: '', [2022-08-26 11:48:21] ProjectId: 0 [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] tags: undefined, [2022-08-26 11:48:21] environment: { TCB_COMMIT_ID: '' }, [2022-08-26 11:48:21] network: { uniqVpcId: '', cloudBaseRun: true }, [2022-08-26 11:48:21] addons: [] [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info 📦 install plugins [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug initHooks {} [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug resolve plugin @cloudbase/framework-plugin-node@1.8.15: use 0.00 s, mismatch:false, resolved version:1.8.15 [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug deploy '' '' [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info callHooks 'preDeploy' [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::info 🔧 init: node... [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::debug NodePlugin: init { [2022-08-26 11:48:24] runtime: 'Nodejs10.15', [2022-08-26 11:48:24] entry: 'app.js', [2022-08-26 11:48:24] path: '/nest-starter', [2022-08-26 11:48:24] name: 'nest-starter', [2022-08-26 11:48:24] projectPath: '.', [2022-08-26 11:48:24] platform: 'function', [2022-08-26 11:48:24] wrapExpress: false, [2022-08-26 11:48:24] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:24] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:24] } [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::info 🔨 build: node... [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::debug NodePlugin: build { [2022-08-26 11:48:24] runtime: 'Nodejs10.15', [2022-08-26 11:48:24] entry: 'app.js', [2022-08-26 11:48:24] path: '/nest-starter', [2022-08-26 11:48:24] name: 'nest-starter', [2022-08-26 11:48:24] projectPath: '.', [2022-08-26 11:48:24] platform: 'function', [2022-08-26 11:48:24] wrapExpress: false, [2022-08-26 11:48:24] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:24] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:24] } [2022-08-26 11:48:56] Fri Aug 26 2022 03:48:54 GMT+0000 (Coordinated Universal Time) 34.3 CloudBase Framework::error Command failed: npm install --prefer-offline --no-audit --progress=false && npm run build [2022-08-26 11:48:56] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 [2022-08-26 11:48:56] npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 [2022-08-26 11:48:56] npm WARN deprecated har-validator@5.1.5: this library is no longer supported [2022-08-26 11:48:56] npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated [2022-08-26 11:48:56] npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated [2022-08-26 11:48:56] npm notice created a lockfile as package-lock.json. You should commit this file. [2022-08-26 11:48:56] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents): [2022-08-26 11:48:56] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) [2022-08-26 11:48:56] [2022-08-26 11:48:56] [96mnode_modules/@types/superagent/index.d.ts[0m:[93m23[0m:[93m10[0m - [91merror[0m[90m TS2305: [0mModule '"buffer"' has no exported member 'Blob'. [2022-08-26 11:48:56] [2022-08-26 11:48:56] [7m23[0m import { Blob } from "buffer"; [2022-08-26 11:48:56] [7m [0m [91m ~~~~[0m [2022-08-26 11:48:56] [2022-08-26 11:48:56] npm ERR! code ELIFECYCLE [2022-08-26 11:48:56] npm ERR! errno 1 [2022-08-26 11:48:56] npm ERR! nest-starter@0.0.1 build:nest build
[2022-08-26 11:48:56] npm ERR! Exit status 1 [2022-08-26 11:48:56] npm ERR! [2022-08-26 11:48:56] npm ERR! Failed at the nest-starter@0.0.1 build script. [2022-08-26 11:48:56] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [2022-08-26 11:48:56] [2022-08-26 11:48:56] npm ERR! A complete log of this run can be found in: [2022-08-26 11:48:56] npm ERR! /root/.npm/_logs/2022-08-26T03_48_54_666Z-debug.log [2022-08-26 11:48:56] [2022-08-26 11:48:56] Fri Aug 26 2022 03:48:54 GMT+0000 (Coordinated Universal Time) 34.3 CloudBase Framework::info 部署日志: '/root/cloudbase-framework/logs/2022-08-26_03-48-20.log' [2022-08-26 11:48:56] [Pipeline] } [2022-08-26 11:48:56] [Pipeline] // stage [2022-08-26 11:48:56] [Pipeline] } [2022-08-26 11:48:56] $ docker stop --time=1 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c [2022-08-26 11:48:57] $ docker rm -f 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c [2022-08-26 11:48:59] [Pipeline] // withDockerContainer [2022-08-26 11:48:59] [Pipeline] } [2022-08-26 11:48:59] [Pipeline] // node [2022-08-26 11:48:59] [Pipeline] End of Pipeline [2022-08-26 11:48:59] ERROR: script returned exit code 1 [2022-08-26 11:48:59] Finished: FAILURE