Build step 'Execute shell' marked build as failure

項目合併後jenkins打包報錯。

code ELIFECYCLE npm ERR!

errno 1 npm ERR!

[email protected] build:sit: `cross-env NODE_ENV=production env_config=sit node build/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build:sit script. npm ERR!

This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-05-24T06_09_39_783Z-debug.log

Build step 'Execute shell' marked build as failure

Finished: FAILURE

 

但是在本地打包是沒有問題,那就奇怪了

網上查了一下,有一個說:腳本是問題後來看了下原因是磁盤空間不足導致報錯,清除下空間構建就正常了 ,虛驚一場!!

但並沒有效果。

目前是單獨這個問題分支不合並

-------------------------等待解決--------------------------------

感謝  http://www.ishenping.com/ArtInfo/172202.html

腳本中 加#!/bin/bash  就可以

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章