jenkinsci / jenkinsfile-runner

A command line tool to run Jenkinsfile as a function
MIT License
1.14k stars 296 forks source link

Serverless "one-shot" masters #18

Closed ndeloof closed 5 years ago

ndeloof commented 6 years ago

On a large Jenkins deployment one might want to offload jenkins master to some "side" masters for pipeline execution.

We could rely on jenkinsfile-runner for such a "one-shot" master, applying https://github.com/kohsuke/jenkinsfile-runner/issues/15 for configuration with adequate configuration scoped to a specific job, and on completion sync back build results to the main jenkins master (comparable to build-publisher plugin).

A full featured implementation would require some architecture effort for jenkins to be a cloud-native citizen, but it sounds to me we could rely on jenkinsfile-runner to demonstrate such a deployment and check interest for community in this direction.

cc @carlossg

fwilhe commented 6 years ago

I'm very interested in such an effort. Is there any progress on this, or any 'central' place where this is discussed?

ndeloof commented 6 years ago

best place to discuss this is jenkins-dev mailing list.

fwilhe commented 5 years ago

I've used this successfully to run our Jenkins pipeline on travisci, and I've described the how and the why here.

oleg-nenashev commented 5 years ago

I believe this is completed. Tooling is provided by Custom WAR Packager

oleg-nenashev commented 5 years ago

Closing since there is no negative response about the suggestion above.

Demo in this repo: https://github.com/jenkinsci/jenkinsfile-runner/tree/master/demo/cwp