Jenkins Pipeline Definition
3.0 | 1 Vote
What is a JENKINSFILE file?
Jenkins is an open-source automation server that developers use to automate the building, testing, and delivery of software. Jenkins Pipeline is a suite of Jenkins plug-ins that allows developers to create continuous delivery pipelines (called Jenkins Pipelines) into Jenkins. This allows developers to quickly build, test, and deliver updates to software deployed through Jenkins.
When creating a Jenkins Pipeline, developers must create a text file that defines the Pipeline's stage's (e.g., Build, Test, and Deploy) and associated settings. This Pipeline definition is called a JENKINSFILE, and its filename is always .jenkinsfile.
Developers can use Jenkins, the program's Blue Ocean plug-in, or any source code editor to create and edit their JENKINSFILE. Most often, developers use Blue Ocean to create a JENKINSFILE, as part of setting up a new Jenkins Pipeline project.
Common JENKINSFILE Filenames
.jenkinsfile - The name developers must assign to their Jenkins Pipeline's JENKINSFILE.
How to open a JENKINSFILE file
You can open a JENKINSFILE with Microsoft Visual Studio Code or any other text editor, to view and edit the Jenkins Pipeline definition it contains. If possible, you should open a JENKINSFILE with a source code editor that supports Apache Groovy syntax highlighting.
For instructions on how to use a JENKINSFILE with Jenkins Pipeline, refer to Jenkins' official documentation.