What is a Jenkinsfile and where does it live?
BeginnerConceptJenkins
Answer
A Jenkinsfile is a text file that defines a Jenkins Pipeline in Groovy-based DSL. It lives in the root of the repository (by convention) and is picked up by Pipeline-from-SCM or multibranch jobs. Because it is versioned with the code, each branch can have its own pipeline.
More on Jenkins
What is Jenkins and how is its architecture organised?BeginnerWhat are executors, nodes and labels in Jenkins?IntermediateWhy should you not run builds on the Jenkins controller?BeginnerHow do inbound (JNLP/WebSocket) and SSH agents connect to the controller?IntermediateDeclarative versus Scripted Pipeline: what are the differences?IntermediateWhat does the `post` section in a declarative pipeline do?Beginner