The Jenkinsfile and host connectivity
To ensure repeatable builds, we are going to use Jenkins scripts to run build and deployment automation. Jenkins supports a type of script called a declarative pipeline script that allows a concise definition of steps needed to build, test, and deploy software. This script is conventionally known as a Jenkinsfile
. Because these scripts are written using the Groovy language (see https://groovy-lang.org/), you can declare variables, write functions, and use many features of this very powerful language to help you build and deploy your software. Jenkins supports both a free-form scripting style and a more structured declarative style of script that uses a special Groovy DSL to provide more scaffolding for concise scripts.
See here for more information on how to write a Jenkinsfile
: https://www.jenkins.io/doc/book/pipeline/jenkinsfile/
You can either directly enter these scripts into a Jenkins job definition or store them in version control....