How do you implement CI CD using Jenkins

0 votes
Aug 30, 2019 in Jenkins by Shawn
1,288 views

1 answer to this question.

0 votes

Continuous Integration using Jenkins and Git plugin

  • Create a new Jenkins item as a ‘Pipeline’.
  • Add ‘Git’ as branch source and give the Project repository url.
  • Every time source code is pushed to the remote git repository from the local git repo;
  • Jenkins job gets started(triggered).
  • Jenkins build the code and the output is available under “console output”
  • In the git repository add a ‘jenkinsfile’ commit and push the code to git repository.
  • Add a Jenkinsfile in the git repository
pipeline {
   agent { docker { image 'ubuntu:latest' } }
   stages {
       stage('build') {
           steps {
               sh 'uname -a'
           }
       }
stage('Test') {
           steps {
               sh './jenkins/scripts/test.sh'
           }
       }
   }
}
answered Aug 30, 2019 by Sirajul
• 59,230 points

Related Questions In Jenkins

0 votes
1 answer
0 votes
1 answer

How to do CI integration with code review tools

Here is an explanation. If you can switch ...READ MORE

answered Mar 27, 2018 in Jenkins by Atul
• 10,240 points
1,100 views
0 votes
1 answer

Error while talking to remote Oracle DB using Jenkins-CI

I installed Oracle XE to talk to ...READ MORE

answered May 1, 2018 in Jenkins by shubham
• 7,340 points
1,664 views
0 votes
1 answer

How do I pass value from my Fake # script to the host build server (Jenkins)

You can use the EnvInject plugin to pass environment ...READ MORE

answered Jul 11, 2018 in Jenkins by Kalgi
• 2,680 points
1,140 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
3,460 views
+2 votes
1 answer
0 votes
1 answer

How do you configure automatic build in jenkins?

Works in Jenkins can be activated intermittently ...READ MORE

answered Aug 6, 2019 in Jenkins by Sirajul
• 59,230 points
681 views
0 votes
3 answers

How can I make Jenkins CI with Git trigger on pushes to master?

To automatically run build on code commit, follow ...READ MORE

answered Aug 7, 2019 in Jenkins by Sirajul
• 59,230 points
4,485 views
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