I'm currently working on a Microservice architecture-based project and writing Jenkins Pipeline for it.
The project structure is as follows:
Web Service (master)
- WebJenkinsfile
- Service (master)1/
- Jenkinsfile
- Service 12/
- Service 2/Jenkinsfile
- Service 3/
- Jenkinsfile
Within each Service, there will be a Jenkinsfile that contains information on building and testing for the specific service.
How do I use the Jenkinsfile on the base directory to build and test each individual Services before running integration test on a cross service level ?
I've been trying to look for ways to implement this, but the build seems to target project level, it is said to be able to process relative file path but I haven't had much success with it.
I have tried loading, but load seems to be made for groovy file, which doesn't seem to fit the requirement.