Watch Me Code, Episode 7 [Video]

DZone 's Guide to

Watch Me Code, Episode 7 [Video]

This coding video continues the series by starting to focus on writing the implementation for the pipeline we have been developing so far.

· DevOps Zone ·
Free Resource

What do software engineers hate? Parsing strings into dates and scraping HTML!

After the setting up our classpath in Episode 6 of "Watch Me Code," we start to tackle writing the implementation...

This time we start by extracting the last modified timestamp of a branch or tag by HTML scraping a gitweb commit view page and parsing the text date. As expected, we don't exactly get the right element first time. We have fun finding the correct format for the date parser... oh and we write a test with incorrect test data!

If you are interested in examining my work so far, you can look at the GitHub code snapshot as of the end of this video.

Check out the entire series:

devops ,jenkins ,pipelines ,programming

Published at DZone with permission of Stephen Connolly . See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}