jenkins automatic deploy

+2 votes
i have three jobs job1:api  job2:ui   job3:deploy

i have to auto mate job 3 when job1 and job 2 build is completed it should have to trigger job 3
Aug 29, 2019 in DevOps & Agile by abhay
1,019 views

1 answer to this question.

+1 vote

You could probably configure these 3 jobs in a Jenkins pipeline

  • 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.

  • Inorder to automate job3, what you can do is you can configure a post build step in job 2 where you can trigger job 3 automatically, after job2 build is complete.

  • For a basic understanding of how a jenkins pipeline is to be configured you could refer to  https://www.edureka.co/community/48208/possible-create-jenkins-pipeline-without-using-jenkinsfile

answered Aug 29, 2019 by Sirajul
• 59,230 points
i have been configured those three jobs through pipeline only .

 i will explain in details with the first two jobs we can get one tar and jar file .

first two jobs will will trigger automatically when code checkin.

third job i am copying those files from console i need to build them .i have written pipeline script for that .

the thing is that i need to trigger automatically third job .

right now i am using build trigger option .

i need any other way we can automate using any script or any some other option

Since you have mentioned that your Job 3 is a deploy job, I guess your requirement is for automated deployment, if i have got that right.

There are many plugins available which can be used to transfer the build files after a successful build to the respective application/web server. One example is the “Deploy to container Plugin”.

You could probably try it to serve your purpose. Check this out: https://plugins.jenkins.io/deploy

Related Questions In DevOps & Agile

0 votes
1 answer

What OS is Jenkins installed on Azure Virtual Machine?

Under Managed Jenkins there's a section called ...READ MORE

answered Apr 4, 2018 in DevOps & Agile by DareDev
• 6,890 points
847 views
0 votes
1 answer

Is there any difference between jenkins ssh publishers and ansible?

In a Layman’s language they're the same ...READ MORE

answered Apr 9, 2018 in DevOps & Agile by shubham
• 7,340 points
1,236 views
0 votes
1 answer

Is it possible to to create IIS Site and application Pool using Web Deploy

You can try and use the ServerManager ...READ MORE

answered Apr 20, 2018 in DevOps & Agile by ajs3033
• 7,300 points
2,035 views
0 votes
2 answers

Unable to use jenkins to run oracle script on remote DB

add ORACLE_HOME  in jenkins global variable. READ MORE

answered Mar 27, 2019 in DevOps & Agile by hal
6,021 views
0 votes
1 answer

Is it possible to preserve local ivy repository in Bluemix BUILD & DEPLOY?

You're right--the pipeline spins up a new ...READ MORE

answered Jul 19, 2018 in DevOps & Agile by Atul
• 10,240 points
552 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,024 views
+2 votes
1 answer
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP