Application deployment using Jenkinsfile
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.
Getting ready
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.
Note
The previous mentioned setup is for this application deployment only.
- Install Blue Ocean plugin by navigating to
Manage Jenkins
|Manage Plugins
|Available
| SearchBlueOcean
|Install without Restart.
- Clone this repository ( https://github.com/awsstar/App-Jenkinsfile.git ) and migrate it...