1.

How is Jenkins workspace data shared between different jobs?

Answer»

Jenkins stores the metadata of every PROJECT under $WORKSPACE path.

Two projects

  • myProject and project_next can be chained to each other and they can share the same data.
  • On SUCCESSFUL build of ‘myProject’, build of ‘project_next’ is triggered.

Below code SCREENSHOT is for project_next

This ACCESS the myProject/logs/db.log FILE and read it for a pattern :’prod’



Discussion

No Comment Found