• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Continuous Integration and Continuous Delivery in CICD

 
Ranch Hand
Posts: 2931
13
  • Number of slices to send:
    Optional 'thank-you' note:
CICD is  Continuous Integration Continuous Delivery. Is it correct to say that Continuus integration means automation of build pipelines where we push the code and when test cases passes it gets checked into a version control repository (like git, bitbucket etc) and for this we require tools like Jenkins and next required is way to deploy it a Continuous Delivery which means that after this the deployable files need to be deployed to some server or cloud like AWS and for this we require tools like CodeDeploy and Spinnaker? Thanks
 
Saloon Keeper
Posts: 15621
366
  • Number of slices to send:
    Optional 'thank-you' note:

Monica Shiralkar wrote:Is it correct to say that Continuus integration means automation of build pipelines where we push the code and when test cases passes it gets checked into a version control repository


You got it the wrong way around.

Code gets checked into version control by a developer, which in turn triggers build pipelines that build and test the software.

When tests pass, the next step is triggered, which usually is not related to version control, but rather to some form of deploying the build artefacts.

for this we require tools like Jenkins


Jenkins is a good example of a CI tool, but note that CI can also be done by something as simple as a Git hook that calls a compiler.

Continuous Delivery which means that after this the deployable files need to be deployed to some server or cloud like AWS and for this we require tools like CodeDeploy and Spinnaker?


Again, these are common scenarios, but far from the only ones.

Continuous Delivery can also just mean bundling the deployable artifacts together and putting them in a shared folder, or making them available for download on a website.
 
Saloon Keeper
Posts: 27868
196
  • Number of slices to send:
    Optional 'thank-you' note:
As Stephan has said, Jenkins is one CI/CD management tool, but not the only one and for that matter you can always roll your own. Ansible, for example, can handle many CD tasks.
 
Monica Shiralkar
Ranch Hand
Posts: 2931
13
  • Number of slices to send:
    Optional 'thank-you' note:
thanks

Stephan van Hulst wrote:
You got it the wrong way around.

Code gets checked into version control by a developer, which in turn triggers build pipelines that build and test the software.


Yes. I realize that mistakenly I said in the wrong order and code check-in is the first step.

Stephan van Hulst wrote:

When tests pass, the next step is triggered, which usually is not related to version control, but rather to some form of deploying the build artefacts.



Is it correct to say that  preparing the build artefacts is CI and deploying the build artefacts is CD. If not, then up to what stage exactly does it come under CI and from where stage does CD begin?

Stephan van Hulst wrote:
Jenkins is a good example of a CI tool



Is it correct to say that Jenkins can do things like build pipeline (involving running the unit testes and preparing the build artefacts) but it cannot do the Deploy part and for that we require something?

Stephan van Hulst wrote:
Continuous Delivery can also just mean bundling the deployable artifacts together and putting them in a shared folder or making them available for download on a website.



Is it correct to say that in any case the end result of continuous delivery, would be that code is ready to be run now from wherever it is intended to be run from?

Stephan van Hulst wrote:
Again, these are common scenarios, but far from the only ones.


If the code is to be deployed and run from Cloud then, it requires things like CodeDeploy or Spinnaker, but if the code is required to be just deployed on Tomcat then what is required as CD tool and can it be done without using a CD tool too, if so how?





 
Tim Holloway
Saloon Keeper
Posts: 27868
196
  • Number of slices to send:
    Optional 'thank-you' note:
Jenkins  can definitely deploy the artefacts it makes. I've suggested that it do so for the JForum (Ranch) software, in fact. Jenkins is really just a fancy scripting and control system so it can do pretty much any sequence of applications/services, especially — though not exclusively —if they are in Java.

DevOps tools such as Ansible, Salt and Puppet are often used to do deployment as well. One of my favorite setups is to make Maven built an RPM package from the project. RPM is RedHat Package Manager and OS packages for the Red Hat, CentOS, Fedora and similar systems are RPMs. It's also possible for Maven to build .deb packages for Debian/Ubuntu family or For that matter, to make Windows installables. Those can then be deployed by a CI/CD tool like Jenkins or the DevOps tools. I prefer to build RPMs over simple WARs because often you need to be able to construct exernal resource that an OS package manager can do that can't be done by unpriivileged Java code. Although for simple deploys I might have Ansible create the support files and copy the deployable app into the target server(s). DevOps utilities are especially useful for deployment of elastic resources.

Quite a few people here on the Ranch actually just have Maven build and deploy directly, although I'm not a big fan of that myself.

There are all sorts of mix-and-match strategies you can use. It's mainly a matter of picking what works for you.
 
Monica Shiralkar
Ranch Hand
Posts: 2931
13
  • Number of slices to send:
    Optional 'thank-you' note:

Tim Holloway wrote:Jenkins  can definitely deploy the artefacts it makes .



Does it means Jenkins is CICD tool and not just a CI tool ? If Jenkins can do deployment too of the artefacts it makes, then is there any advantage of using CD tools like CodeDeploy and Spinnaker, if the CI part we are already doing using Jenkins (for triggering thr build pipeline checkin of the code which includes running of unit tests ?
 
Tim Holloway
Saloon Keeper
Posts: 27868
196
  • Number of slices to send:
    Optional 'thank-you' note:
CodeDeploy and Spinnaker are cloud support tools. I've not worked with them so I cannot say how much help that they would be, but it's entirely likely that Jenkins might be used to invoke them. I could definitely deploy via brute force to AWS, however and have done so long before such tools were available. But they're designed to make the job easier.

You definitely don't need cloud tools to deploy to your LAN, though. For example, the Ranch has its own Jenkins instance within the virtual hosting system that also contains JForum, so a cloud-specific deployer would be of little help. Definitely not one tied to a particular cloud system such as Amazon AWS.
 
Tim Holloway
Saloon Keeper
Posts: 27868
196
  • Number of slices to send:
    Optional 'thank-you' note:
As for Spinnake and Jenkins playing together, this chart may prove informative:

https://spinnaker.io/docs/guides/tutorials/codelabs/hello-deployment/
 
Tim Holloway
Saloon Keeper
Posts: 27868
196
  • Number of slices to send:
    Optional 'thank-you' note:
... And finally, note that in that chart, Jenkins is producing and deployin Debian packages (.deb files). Just like I said I like to to with RPMs. The only difference is that they're using Debian for their eample production servers and I'm using CentOS.
 
Monica Shiralkar
Ranch Hand
Posts: 2931
13
  • Number of slices to send:
    Optional 'thank-you' note:
Thanks. So, if we are using Jenkins with say CodeDeploy/Spinnaker or some other tool, then when Jenkins pipeline gets triggered by the code check and runs the test case and creates the deployable artefacts, then whatever part CodeDeploy/Spinnaker or other tool is doing by making it easy to deploy, broadly what is the way to be followed it would have been without them ?
 
Monica Shiralkar
Ranch Hand
Posts: 2931
13
  • Number of slices to send:
    Optional 'thank-you' note:
Is it so that although Jenkins is a tool that can take care of compete CICD, when it comes to cloud the better way is to use Jenkins only for CI part and do CD part using a Cloud CD tools like CodeDeploy or Spinnaker ?
 
Stephan van Hulst
Saloon Keeper
Posts: 15621
366
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
Jenkins is NOT a tool that takes care of CI/CD completely. It's a tool that manages the CI/CD pipeline. It delegates to other tools for the specifics of CI or CD.

Think about it: Why would Jenkins compile and test your code? It just delegates this to the build tool, in most cases this is likely Maven. Similarly, why would it perform deployment by itself? It just delegates this to other tools.

Depending on your requirements, CodeDeploy is an example of a tool you can use to deploy your application, and I wouldn't be surprised if there is a hook in Jenkins that allows it to call CodeDeploy when you configure it so.

I suggest that you read the Jenkins manual or follow a Jenkins tutorial.
 
Tim Holloway
Saloon Keeper
Posts: 27868
196
  • Number of slices to send:
    Optional 'thank-you' note:
Of course, many tools these days are built on other tools. Spring Boot embeds Tomcat in its productions. WebLogic has ANTLR in it. Jira is full of open-source components, even though it isn't open-source itself (nor is WebLogic).

And Maven, likewise. To get Maven to build an RPM, Maven actually runs the RPM build tools, which unfortunately means that the build host OS must be in the Red Hat family. Likewise Maven builds for ".deb" are so structured.

Virtually no system of any consequence is built up from scratch these days. It just isn't economical or even desirable.

And yes, there's a CodeDeploy plug-in for Jenkins: https://plugins.jenkins.io/codedeploy/
 
Monica Shiralkar
Ranch Hand
Posts: 2931
13
  • Number of slices to send:
    Optional 'thank-you' note:

Stephan van Hulst wrote:Jenkins is NOT a tool that takes care of CI/CD completely. It's a tool that manages the CI/CD pipeline. It delegates to other tools for the specifics of CI or CD.


Thanks. Understood.


Stephan van Hulst wrote:

Depending on your requirements, CodeDeploy is an example of a tool you can use to deploy your application



And in case of deploying not on cloud but on web servers ike Tomcat, what are the commonly used tools which Jenkins typically delegates to ?
 
Stephan van Hulst
Saloon Keeper
Posts: 15621
366
  • Number of slices to send:
    Optional 'thank-you' note:
You could just use the "Deploy to container" plugin that Jenkins comes with.
 
Monica Shiralkar
Ranch Hand
Posts: 2931
13
  • Number of slices to send:
    Optional 'thank-you' note:
Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |