I have a Jenkins (non-declarative) pipeline build, with several stages. The build consists of several components, that are all built from the same git repository. One of the stages (building Linux kernel) is quite slow, and rarely changes.
How can I skip a stage when there are no changes to a specific subdirectory?
(Artifactory is used for transferring the binaries between the stages)
For example: If there is a change to the directory Linux: 1. Execute stage "build Linux", upload to artifactory 2. Execute rest of the pipeline, the newly built Linux image from artifactory is downloaded
If the are no changes to the Linux directory: 1. No change, skip stage "build Linux" 2. Execute rest of the pipeline, the latest built Linux image from artifactory is downloaded