Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ultimate DevOps: OpenShift Dedicated With CloudBees Jenkins Platform (Andy Pemberton)

1,195 views

Published on

Are you ready to innovate with cloud-native app development? Are you ready to accelerate business agility with continuous delivery (CD)? Well, now you can easily do both using CloudBees Jenkins Platform within OpenShift Dedicated by Red Hat. In this session, you'll learn how to seamlessly use this CD solution to fully automate your application development, test, and delivery life cycle. Using the CloudBees platform to automate your CD pipelines allows your developers to focus on what they do best—innovating. Combine that with the elasticity and scale of the Docker-based OpenShift Dedicated environment, and you'll remove many of the obstacles to business growth. Come see the future of digital innovation.

Published in: Software
  • Be the first to comment

Ultimate DevOps: OpenShift Dedicated With CloudBees Jenkins Platform (Andy Pemberton)

  1. 1. Ultimate DevOps: OpenShift & CloudBees Jenkins Platform Andy Pemberton @apemberton
  2. 2. About Andy Author of DZone Refcard on Jenkins Pipeline Hands-on Delivery experience on CloudBees Jenkins and Pipelines Lead CloudBees Solution Architecture and Consulting Teams @apemberton
  3. 3. OpenShift: PaaS by Red Hat, Built on Docker and Kubernetes
  4. 4. projects templates applications services routes pods imagestreams deployment
  5. 5. $ oc login --token=$foobar --server=https://api.foo.openshift.com $ oc new-project mobile-development $ oc project mobile-development $ oc new-app https://github.com/cloudbees/openshift-example.git $ oc scale mobile-deposit-ui-1 --replicas=4 Examples
  6. 6. $ oc help Examples
  7. 7. OpenShift Web Console
  8. 8. Jenkins
  9. 9. Easy to Start java -jar jenkins.war
  10. 10. Jenkins Popularity 0 1,000,000 2,000,000 3,000,000 4,000,000 5,000,000 6,000,000 7,000,000 0 20,000 40,000 60,000 80,000 100,000 120,000 11/1/2008 11/1/2009 11/1/2010 11/1/2011 11/1/2012 11/1/2013 11/1/2014 Active Jenkins Installations Worldwide Total Jenkins Jobs Worldwide http://www.infoq.com/research/ci-server http://stats.jenkins-ci.org/jenkins-stats
  11. 11. CloudBees Jenkins Enterprise … part of CloudBees Jenkins Platform Jenkins for the EnterpriseCommunity Innovation
  12. 12. Jenkins + OpenShift: better together +
  13. 13. Jenkins + OpenShift: better together MASTER AGENT AGENT AGENT AGENT AGENT AGENT Use case #1: OpenShift as an Elastic Runtime for Jenkins
  14. 14. Jenkins + OpenShift: better together MASTER Use case #2: OpenShift as deployment target from Jenkins
  15. 15. Jenkins + OpenShift: better together MASTER AGENT AGENT AGENT
  16. 16. Jenkins Pipeline
  17. 17. Pipeline: a new Job Type
  18. 18. Pipeline: a new Job Type ✓ Concise ✓ Long-running ✓ Durable ✓ Flexible ✓ Extensible 19
  19. 19. stage 'build' node { checkout scm tool 'mvn-3.3' sh 'mvn clean install' stash name: 'source', excludes: 'target/' } stage 'test' node { unstash 'source' sh 'mvn verify' }
  20. 20. Pipeline-as-Code
  21. 21. PIPELINE
  22. 22. Jenkins Pipeline + OpenShift
  23. 23. Live Demo. What could go wrong?
  24. 24. https://github.com/cloudbees/openshift- example
  25. 25. wrap([$class: 'OpenShiftBuildWrapper', url: 'https://api.foobar.openshift.com', credentialsId: 'development-credentials', installation: 'oc-latest']){ ... } Your OpenShift server API (Origin, Enterprise, etc.) Credentials for your OpenShift account (probably a serviceaccount) CLI version for your OpenShift Server, defined by a Jenkins Tool
  26. 26. wrap([$class: 'OpenShiftBuildWrapper', ... ]){ oc('project mobile-development -q') def bc = oc('get bc -o json') if(!bc.items) { oc("new-app --name=mobile-deposit-ui --code='.’ --image-stream=jboss-webserver30-tomcat8-openshift") wait('app=mobile-deposit-ui', 5, 'MINUTES') oc('expose service mobile-deposit-ui') } else { oc("start-build mobile-deposit-ui --from-dir=. --wait") } }
  27. 27. Additional Resources https://blog.openshift.com/openshift-cloudbees-jenkins-enterprise-devops https://www.cloudbees.com/partners/platform/red-hat @apemberton
  28. 28. www.cloudbees.com/get-started
  29. 29. CloudBees Jenkins Platform Editions Platinum Support Gold Support Enterprise Edition Cloud/Container Support Private SaaS Edition  Self-Service  Docker-based  Elastic & Resilient  Private Cloud  Analytics  Shared Resources

×