简体   繁体   English

从控制台和jenkins运行Maven目标有什么区别

[英]What is the difference between running maven goals from console and from jenkins

What is the difference between executing build with mvn clean install and running jenkins job with maven goal clean install ? 什么是执行与建设之间的差异mvn clean install和运行詹金斯工作与Maven目标clean install

I'm running: 我在跑:

mvn sonar:sonar -Dsonar.jacoco.itReportPath=target/jacoco-integration.exec

and it works as expected but adding following maven goal to jenkins works differently. 并且按预期方式运行,但将以下行家目标添加至詹金斯的方式则有所不同。

sonar:sonar -Dsonar.jacoco.itReportPath=target/jacoco-integration.exec

I figured out, that jenkins executes builds as jenkins user, but is that all? 我发现,jenkins以jenkins用户的身份执行构建,但这就是全部吗?

To answer your question directly: 要直接回答您的问题:

  • Jenkins executes using jenkins user (or whatever you configured). Jenkins使用jenkins用户(或任何您配置的)执行。
  • Jenkins spawns everything in it's own process space, and changes to that process's environment are not persisted. 詹金斯(Jenkins)在其自己的流程空间中生成所有内容,并且对该流程环境的更改不会持久化。
  • Jenkins makes sure that no processes are left running after the job execution completes. 詹金斯(Jenkins)确保在作业执行完成后没有任何进程继续运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM