I want to define my assemblies using the Jenkins 2 pipeline function, and I want this configuration to be loaded from sources in Jenkinsfile . However, I don't want to clutter my master node with a workspace.
Ideally, I could indicate that the job pipeline is designed to run a given type of node, but this is not possible.
I see two alternatives:
- use the dedicated repository that stores the jenkins job configuration.
- use git debugging strategy (shallow + sparse).
Did I miss something? What would be the best practice?
source share