Jenkins
Jenkins is one of the many CI tools to automate deploying your code. Jenkins allows for a declarative language written in a file in the Git repository.
Jenkinsfile
Here is a basic example of a declarative pipeline that would live in a Jenkinsfile:
pipeline {
agent any
stages {
stage('first stage') {
steps {
echo 'Step 1'
}
}
}
}
In the preceding code, we first define which agent the work will be done on – for our use case, we will use any agent. In other cases, you might have work organized by teams, production, or other possible choices...