Yes, you can create a Jenkins pipeline manually without having to write the script/code in the Jenkinsfile.
Suppose I have to create a pipeline comprising of 3 jobs namely:
Job 1 : Compile
Job 2 : Test
Job 3 : Package
Create the jobs.
Here I have created 3 jobs as specified above which use Git repository for the source code and maven (invoking top level maven targets and specifying the goal as compile)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=4435893060689564434)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=12072042049289382912)
After Creating all the 3 jobs the next step we have to do is to connect them in the form of a pipeline. In order to do this we need to configure two things: Build Triggers and Post Build Actions.
Go to Configure tab of the compile job -> Build Trigger ->Select "Build after other projects are built"->Specify the job that should trigger it.
Since I want to manually build the compile job, I am not specifying a build trigger for the compile job.
Next Go to "Post build Actions" ->Select "Build other projects" -> Specify the job that you want to trigger next. In this case,I want Test to run after compile. Hence I specify Test job as shown below :
![](https://www.edureka.co/community/?qa=blob&qa_blobid=10061328978468414374)
Similarly I configure Test job : Build Trigger in this case would be compile and Post build action would be to build Package job as shown below
![](https://www.edureka.co/community/?qa=blob&qa_blobid=13713472134509028677)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=14516466155263374036)
Same for Package job: Build Trigger would be Test and since this is the last job in the pipeline there is no Post build action for this job.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=8815522338305026941)
Now for the pipeline view you will need to install "Build Pipeline plugin".
Go to Manage Jenkins -> Manage Plugins -> Available tab -> search for Build Pipeline plugin->Install it.
Once the plugin is installed Go to Jenkins Dashboard -> click on + on top of the list of jobs -> click on build pipeline view.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=15659891631770751512)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=12476367588247190894)
Enter the view name and also the initial job and the number of builds as shown:
![](https://www.edureka.co/community/?qa=blob&qa_blobid=10805438101280011248)
You will be able to see the pipeline built successfully and when you build the first job the pipeline would start as shown:
![](https://www.edureka.co/community/?qa=blob&qa_blobid=15117089257098663240)
Compile job will automatically trigger Test job after its execution which on completion will trigger Package job as shown below:
![](https://www.edureka.co/community/?qa=blob&qa_blobid=3272480308698167834)
On Complete Execution the pipeline would look like:
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16981996972517415749)