简体   繁体   中英

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 ?

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?

To answer your question directly:

  • Jenkins executes using jenkins user (or whatever you configured).
  • Jenkins spawns everything in it's own process space, and changes to that process's environment are not persisted.
  • Jenkins makes sure that no processes are left running after the job execution completes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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