为了账号安全,请及时绑定邮箱和手机立即绑定

jar包在linux本地运行成功, 但是jenkins构建失败

jar包在linux本地运行成功, 但是jenkins构建失败

菠罗君 2019-02-18 00:38:08
一个springboot服务的jar包在linux本地运行成功, 但是jenkins构建失败,报错,求解决我的jenkins shell脚本BUILD_ID=dontKillMejava -jar Chapter13-1.0-SNAPSHOT.jar &ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/tmp/LOG_FILE_IS_UNDEFINED,true) call failed. java.io.FileNotFoundException: /tmp/LOG_FILE_IS_UNDEFINED (Permission denied) at java.io.FileNotFoundException: /tmp/LOG_FILE_IS_UNDEFINED (Permission denied) at  at java.io.FileOutputStream.open0(Native Method) at  at java.io.FileOutputStream.open(FileOutputStream.java:270) at  at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at  at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:26) at  at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204) at  at ch.qos.logback.core.FileAppender.start(FileAppender.java:127) at  at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:100) at  at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90) at  at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309) at  at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193) at  at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179) at  at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) ERROR in ch.qos.logback.core.rolling.RollingFileAppender[CRAWLER_LOG] - openFile(/tmp/event.log,true) call failed. java.io.FileNotFoundException: /tmp/event.log (Permission denied) at java.io.FileNotFoundException: /tmp/event.log (Permission denied) at  at java.io.FileOutputStream.open0(Native Method) at  at java.io.FileOutputStream.open(FileOutputStream.java:270) at  at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at  at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:26) at  at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204) ERROR org.springframework.boot.SpringApplication - Application startup failed java.lang.IllegalStateException: Logback configuration error detected:  ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/tmp/LOG_FILE_IS_UNDEFINED,true) call failed. java.io.FileNotFoundException: /tmp/LOG_FILE_IS_UNDEFINED (Permission denied) ERROR in ch.qos.logback.core.rolling.RollingFileAppender[CRAWLER_LOG] - openFile(/tmp/event.log,true) call failed. java.io.FileNotFoundException: /tmp/event.log (Permission denied) at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:162) at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:81) at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:59) at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:115) at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:303)
查看完整描述
  • 3 回答
  • 0 关注
  • 3176 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信