jiving with jenkins making the ci server dance to your tune john shepherdson, associate director,...
TRANSCRIPT
![Page 1: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/1.jpg)
JIVING WITH JENKINSMaking the CI server dance to your tune
JOHN SHEPHERDSON,
ASSOCIATE DIRECTOR, TECHNICAL SERVICES
UK DATA ARCHIVE
17 April 2014 V1.0
![Page 2: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/2.jpg)
DANCE CARD
2
Introductions
Basic steps Hoofing with Hudson Stepping with Selenium Tangoing with TV
Fancy footwork Dream Ballet Sequence Dancing Jiving with Jenkins
![Page 3: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/3.jpg)
UK Data Archive
3
• based at the University of Essex since 1967
• curator of the UK’s largest collection of digital data in the social sciences
• currently holds nearly 6,000 data collections for research and teaching, both quantitative and qualitative
• certified to ISO 27001, the international information security standard
• makes these available via the new UK Data Service
Website: www.data-archive.ac.uk
![Page 4: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/4.jpg)
UK Data Service
4
• the UK Data Service indexes all data collections in the Archive – all catalogued at thematic level
– many indexed at variable level
• also harvests metadata from other sources
• all are available for download via Discover search-and-browse catalogue:discover.ukdataservice.ac.uk
![Page 5: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/5.jpg)
UK Data Service
5
• also provides access to UK Census data (1971 to 2011)• source of guidance, training, and support for data users in
UK and around the world• currently serve approx. 24,000 registered users• newly funded to coordinate the Administrative Data
Research Network, part of UK’s Big Data strategy
Websites: ukdataservice.ac.uk, census.ukdataservice.ac.uk
• led by experts at University of Essex along with colleagues at Manchester, Leeds, Southampton, Edinburgh and UCL
![Page 6: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/6.jpg)
6
BASIC STEPS
![Page 7: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/7.jpg)
HOOFING WITH HUDSON
7
Basic CI stuff• Instrumentation• Unit testing• Style checking• Documentation
![Page 8: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/8.jpg)
Instrumentation
8
Job Status
Build History
![Page 9: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/9.jpg)
Instrumentation
9
Build artefacts
Revision history
Audit trail
Audit trail
![Page 10: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/10.jpg)
Unit Testing
10
![Page 11: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/11.jpg)
Style Checking
11
StylecopCheckStyle
![Page 12: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/12.jpg)
Code QA - Sonar
12
![Page 13: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/13.jpg)
Code QA - Sonar
13
![Page 14: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/14.jpg)
Database docs (Red Gate SQL Doc)
14
![Page 15: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/15.jpg)
Database docs (Red Gate SQL Doc)
15
![Page 16: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/16.jpg)
Class docs (dOxygen)
16
![Page 17: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/17.jpg)
Class docs (dOxygen)
17
![Page 18: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/18.jpg)
STEPPING WITH SELENIUM
18
User Journey assurance
Plugin to Firefox
Allows User clicks to be captured
convert to test scripts
run on demand
Selenium Grid
test multiple browser types and variants
See ‘Browser Watch’ presentation for more details
![Page 19: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/19.jpg)
STEPPING WITH SELENIUM
20
User Journey assurance
![Page 20: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/20.jpg)
TANGOING WITH TV
21
Other QA/Validation: Link checking, Spelling, HTML standards compliance, Accessibility
![Page 21: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/21.jpg)
FANCY FOOTWORK
![Page 22: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/22.jpg)
DREAM BALLET
23
Deployment
• Copy builds, configuration, data from server to server
• Keep test instance data in step with production
How? Wrap a tool (such as RoboCopy or Red Gate deployment manager) in a script (such as Ant) and call it from Jenkins.
![Page 23: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/23.jpg)
SEQUENCE DANCE
24
Upstream/downstream builds
• Build dependency chain
– Harvest data via web service API
– Import harvested data in to XML database
– Run quality checks against database contents
– Extract data etc.
![Page 24: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/24.jpg)
JIVING WITH JENKINS
25
From Continuous Integration to Orchestration
• Minimal coding
– Mostly configuration
– Some scripting (Ant, Shell, DOS etc.)
– Chain internally and/or call externally (REST API)
– Rich instrumentation
– Notification on success and/or failure
Make your CI server dance to your tune!
![Page 25: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/25.jpg)
26
Jira http://www.atlassian.com/software/jira
Jira Agile https://www.atlassian.com/software/jira/agile
SVN http://subversion.apache.org/
SVN Edge http://www.collab.net/products/subversion
Jenkins http://jenkins-ci.org/
Selenium http://docs.seleniumhq.org/
Stylecop http://stylecop.codeplex.com/
Resharper http://www.jetbrains.com/resharper/
Red Gate http://www.red-gate.com/products/
Doxygen http://www.stack.nl/~dimitri/doxygen/
Sonar http://www.sonarsource.org/
![Page 26: JIVING WITH JENKINS Making the CI server dance to your tune JOHN SHEPHERDSON, ASSOCIATE DIRECTOR, TECHNICAL SERVICES UK DATA ARCHIVE 17 April 2014 V1.0](https://reader038.vdocuments.mx/reader038/viewer/2022110116/551ba1f655034669548b468f/html5/thumbnails/26.jpg)
Find Out More
27
Find out more Data Archive – data-archive.ac.uk UK Data Service – ukdataservice.ac.uk
Contact Information John Shepherdson
UK Data ArchiveUniversity of Essex
Wivenhoe ParkColchester CO4 3SQE-mail: [email protected]