In this recipe, we will deploy an application using Jenkinsfile. It will be checked in along with the source code. The Jenkins pipeline plugin will automatically detect the Jenkinsfile present in the application and start running the Jenkinsfile and perform all the operation or steps that are mentioned inside Jenkinsfile.
To deploy the application we need to perform the following setup first:
- Jenkins 2.0 installed on a server and make sure that it is running on port 80, cause the application that we will deploy is running on port 8080. We are not using a third server to deploy the application. We will going to deploy the application on Jenkins server only.