<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Peter Reid on Medium]]></title>
        <description><![CDATA[Stories by Peter Reid on Medium]]></description>
        <link>https://medium.com/@ReidWeb?source=rss-9f8161fb7c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ByNGtVLFTcafZLPAoyuFTA.png</url>
            <title>Stories by Peter Reid on Medium</title>
            <link>https://medium.com/@ReidWeb?source=rss-9f8161fb7c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:34:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ReidWeb/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My MacOS software suite]]></title>
            <link>https://medium.com/techtalk-blog/my-macos-software-suite-bb91c2edabc3?source=rss-9f8161fb7c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb91c2edabc3</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Peter Reid]]></dc:creator>
            <pubDate>Mon, 31 Jul 2017 20:08:58 GMT</pubDate>
            <atom:updated>2017-07-31T20:21:52.536Z</atom:updated>
            <content:encoded><![CDATA[<h4>My top picks for software on MacOS.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQTWWa4X1y4cyGVRNCpCJQ.jpeg" /><figcaption>Stock image, not my macbook!</figcaption></figure><p><em>So I’ve been using a Macbook Pro for twelve months now, and with a number of people recently asking me what I use on a day-to-day basis I thought it’d be a good idea to note it down.</em></p><h3>Mail App: Spark</h3><p>For some time I used the stock mail app, and I did dabble with AirMail and Polymail for short stints, but they never stuck. Spark is different, it’s a beautifully designed mail app which doesn’t get in my way. You can use keyboard shortcuts and swipe actions to perform pretty much any common action (archive, delete, save for later, pin etc.), you can set custom archive folders, and the app is able to predict which folder you will move a message to based on the subject line and the sender (at least I believe that’s how it does it, I’m not 100% sure). Using any other mail app on any other platform just feels like a massive step back to me after using Spark. The one downside to Spark is that it does do some cloud-storage in some respects, so usage in a corporate environment is unlikely to be a good idea.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0v2EN66vCoePKK-qFwsIg.png" /><figcaption>Image credit <a href="https://sparkmailapp.com/">sparkmailapp.com</a></figcaption></figure><p><a href="https://sparkmailapp.com/"><em>Spark</em></a><em> is available in the</em><a href="https://itunes.apple.com/app/id1176895641?mt=12"><em> App store for free</em></a><em>.</em></p><h3>Calendar App: Fantastical 2</h3><p>So it’s fair to say that I’m quite obsessed with organisation of my time, mostly so I stay as productive as possible. Having a good calendar app is essential to this, I initially tried using the stock calendar app and had a bad experience, in September a friend of mine introduced me to Fantastical and I haven’t looked back since. “<em>It’s a calendar app, how special can it be?” </em>I hear you ask. Well Fantastical is more than just a calendar app, it’s an organisation app. Sitting in your menu bar so you can access it at the click of an icon, or at the press of a button with a shortcut combo, it is constantly accessible with it’s beautiful drop down interface. Add to that the quite brilliant natural language input and you’ve got me hooked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*cYXU9tVf1ZjiXHQduHrWLw@2x.png" /><figcaption>Image credit <a href="https://flexibits.com/fantastical">flexibits.com</a></figcaption></figure><p><a href="https://flexibits.com/fantastical"><em>Fantastical 2</em></a><em> is available from </em><a href="https://flexibits.com/fantastical"><em>Flexibits</em></a><em> and on the</em><a href="http://geni.us/2Qqf"><em> App Store</em></a><em> for £48.99/$49.99</em></p><h3>Developer Tools: iTerm2 &amp; (oh-my-)zsh</h3><p>I’ve grouped these two together because quite simply you can’t talk about one without the other. Of all the apps I’ve listed here, these are actually the only two I’ve used since day-zero of my MacOS experience. iTerm2 is a wonderfully customisable terminal application, with plenty of features that the stock terminal lacks.</p><p>zsh or the ‘Z’ shell, is a replacement for bash or any other shell, with a number of <a href="https://www.reddit.com/r/linux/comments/1csl7c/bash_vs_zsh/">improvements</a> over other shells. Add in the wonderful oh-my-zsh project with it’s large ecosystem of plugins and themes enabling neat features such as showing the version of a node module you are currently looking at, showing your git working branch and git status and you have an experience that’s available nowhere else. It’s also supports transparency, which is nice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJxBj7zHK8ZhSONcGlRb7Q.png" /><figcaption>My iTerm2 setup, with ‘Bira’ oh-my-zsh theme</figcaption></figure><p><em>iTerm 2 is available for free at </em><a href="https://www.iterm2.com/index.html"><em>iTerm2.com</em></a><em> for free, zsh is available in brew, oh-my-zsh is available on </em><a href="https://github.com/robbyrussell/oh-my-zsh"><em>GitHub</em></a><em>.</em></p><h3>Utility: Alfred</h3><p>So Alfred is a pretty strange app to see a use case for, MacOS’ built in ‘Spotlight’ search is pretty awesome, especially compared to the search features of Windows, however I always found it particularly lacking in certain areas — namely seamless web search, developer documentation search (with <a href="https://kapeli.com/dash">Dash</a>), and shortcuts (lock, shutdown). It’s amazingly extensible, and I wouldn’t go back to Spotlight after using Alfred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*9XIbWprqdMGvuootqeqjMw@2x.jpeg" /><figcaption>Image credit <a href="https://www.alfredapp.com/">alfredapp.com</a></figcaption></figure><p><em>Alfred is available from </em><a href="https://www.alfredapp.com/"><em>alfredapp.com</em></a><em> for free, with extensibility coming at the cost of £19/$25.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb91c2edabc3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techtalk-blog/my-macos-software-suite-bb91c2edabc3">My MacOS software suite</a> was originally published in <a href="https://medium.com/techtalk-blog">TechTalk.blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up a CDN with AWS S3 and CloudFront]]></title>
            <link>https://medium.com/techtalk-blog/setting-up-a-cdn-with-aws-s3-and-cloudfront-32885d775de6?source=rss-9f8161fb7c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/32885d775de6</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[sysadmin]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Peter Reid]]></dc:creator>
            <pubDate>Mon, 06 Feb 2017 23:33:00 GMT</pubDate>
            <atom:updated>2017-05-18T14:26:02.265Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this tutorial I’ll walk you through setting up your own CDN with Amazon Web Services (AWS) S3 and CloudFront.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tHrHh5h-Uz0Vm2TiVFaTBA.jpeg" /></figure><p>In this modern era of web development where ‘pagespeed’ can be <a href="http://searchengineland.com/google-says-page-speed-ranking-factor-use-mobile-page-speed-mobile-sites-upcoming-months-250874">critical factor in your SEO</a> and vital for <a href="https://blog.kissmetrics.com/speed-is-a-killer/">retaining user’s attention</a> many sites will require the use of a Content Distribution Network (CDN) to host their static assets. In this tutorial I’ll walk you through setting up your own CDN with Amazon Web Services (AWS) <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html">S3</a> and <a href="https://aws.amazon.com/cloudfront/">CloudFront</a>.</p><h3>Pre-requisites</h3><p>For this tutorial you will require an <a href="https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct">AWS account</a> with access to create S3 buckets and CloudFront distributions. As of time of writing the resources used in this tutorial are available for <a href="https://aws.amazon.com/free/">free for new customers for 12 months through the AWS free tier</a>.</p><h3>Create an S3 bucket</h3><p>In order to set up our CDN we will need somewhere to upload and store our files to, on AWS this is S3. Head over to the <a href="https://console.aws.amazon.com/s3">S3 console</a> and click ‘Create Bucket’. A dialog will appear as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/0*olEMUi-QEfplqNfQ.png" /></figure><p>For <em>Bucket Name</em> you should enter a descriptive name with no spaces so you can identify this bucket in your console, it is worth noting that this is the domain name that will appear if you link directly to your bucket e.g https://s3-eu-west-1.amazonaws.com/peters-demo-cdn-bucket/, this name must also be unique across the whole of AWS. For this tutorial I am going to use peters-cdn-bucket, take a note of the name you use as this will be required in later steps.</p><p>For <em>Region</em> you should select the region that you want to be the ‘canonical source’ for your CDN, this is also the region you will be uploading the files too, so for optimal upload speed you should probably select the region geographically closest to you — so I will choose EU (Ireland).</p><p>Now click ‘Next’. You will be presented with the following screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/0*QZ_CdK6HaN068z_N.png" /></figure><p>On this screen you can set various additional options such as tracking versions of files in case you want to revert to a previous version, logging requests to AWS CloudWatch and tagging this bucket so you can show it in reports in your billing dashboard along with other resources of a similar nature. For this tutorial we won’t need any of these so just click ‘Next’. You will now be presented with the following screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*9HnXrL-0jZZbu5hi.png" /></figure><p>You can use this screen to modify access permissions for your bucket, under the ‘manager users’ section you could add other IAM users from your account that you want to be able to access this bucket. We are not going to modify the public permissions, as we will be giving public access through CloudFront and we will do this later with an IAM policy. Click ‘Next’. You will be presented with the following screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*5ADRjyoVLWZaVBNS.png" /></figure><p>Review your settings and edit them if you spot an error, then click ‘Create Bucket’.</p><h3>Adding files to your bucket</h3><p>Now that you have a bucket set up, let’s get to adding some files to serve to it. For this example I’m going to use a .jpg file testImg.jpg. Click your bucket name in the console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ksHwBCuQxe3Ski38.png" /></figure><p>You should be presented with the following screen showing the ‘getting started’ dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vxktci_3G50mZYNP.png" /></figure><p>To upload a file you can do any of the following:</p><ul><li>Click ‘Upload file’ and select your file(s) using the file select dialog of your OS.</li><li>Click ‘Upload file’ and drag the files onto the dialog.</li><li>Drag a file into the bucket area</li></ul><p>Upload your file using any of the above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*9MhfQ7N4fu_5rgO-.png" /></figure><p>Once your uploads are completed click ‘Next’.</p><p>On the ‘Set permissions’ tab we do not need to choose anything for this tutorial, so click ‘Next’ to proceed to the ‘Set properties’ tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/0*SbhN5CwuyIuTlwTZ.png" /></figure><p>In the ‘Set properties’ tab that is illustrated above, scroll down until you see the ‘Metadata’ heading as shown in the picture. Click the dropdown that reads Select a header... and choose Cache-Control which should be the first option in the dropdown. Now enter a Header Value of max-age=2592000 and click &#39;Save&#39;. This value of 2592000 tells user&#39;s browsers to retain the resource in their cache for a maximum of 2592000 seconds (or 30 days) after initially requesting the resource. Your dialog should now look like so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*6O5b2adnGpwmAy7g.png" /></figure><p>Click ‘Next’ to progress to the ‘Review’ screen, review your changes and click ‘Upload’. You should now see your file inside your directory.</p><p><em>If you need to edit the metadata of an object in your bucket after initial upload, you can click the name of the file in your bucket console, select the ‘properties’ and click on the ‘Metadata’ box to modify the values.</em></p><p>Next up: we want to head over to the <a href="https://console.aws.amazon.com/acm/home?region=us-east-1">AWS Certificate Manager console for US-East-1</a> (North Virginia — this is where certificates for CloudFront distributions must be placed, no other region is valid). It is worth noting that all certificates acquired from Certificate Manager are <a href="https://aws.amazon.com/certificate-manager/pricing/">free</a>.</p><p>On the home page of the Certificate Manager console, click Request a Certificate.</p><p>In the Domain Name field enter the domain name on which you want to host your custom CDN for example mycdn.reidweb.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HIlRyhgzg4CsxdhA.png" /></figure><p>If you have any further domains to add, add them now. It is worth noting that you can only have one certificate associated with a CloudFront distribution — so if you have multiple domains you’ll have to include them all on the same certificate. Once you are done click Review and Request.</p><p>Verify your details are correct and click Confirm and Request. On the next screen verify the contact details that AWS has determined for that domain - you should see your email address listed - head over to your email inbox and click the verification link in the email followed by I approve on the web-page that opens.</p><p>Click continue to go back to the Certificate Manager console home page, you should see the certificate you requested listed.</p><p>We now have our file(s) uploaded to AWS S3 we simply could setup ‘static website hosting’ to access them directly over HTTP(S), however we want to set up our resources to be distributed from AWS’ CDN offering ‘CloudFront’ so they are distributed to a series of <a href="https://aws.amazon.com/cloudfront/details/">‘edge locations’</a> around the globe for fast-access from anywhere so that user’s browsers in Asia don’t have to make a request to your bucket in Europe to get your resources.</p><p>Head over to the <a href="https://console.aws.amazon.com/cloudfront">CloudFront console</a> and click ‘Create Distributon’ at the top of the screen. You will be presented with a screen asking you to choose between ‘Web’ or ‘RTMP’, in this case we are distributing resources such as images, css and javascript for use on webpages, so choose ‘Get Started’ for ‘Web’.</p><p>On the ‘Create Distribution’ screen you will want to set the options as follows:</p><ul><li><em>Origin Domain Name</em> start typing the <strong>name of your bucket</strong> (e.g. peters-cdn-bucket) and you should get an autofill option such as peters-cdn-bucket.s3.amazonaws.com</li><li><em>Origin Path</em> to the directory within your bucket you want to make all paths relative to, if you uploaded your files straight to the root of your bucket just set this to /</li><li><em>Origin ID</em> can usually be set to the value it defaulted to (your bucket name prefaced with S3).</li><li><em>Origin Custom Headers</em> can be left blank for this use-case.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/0*ko5MimLCoIOTEBEi.png" /></figure><p>It’s <a href="https://webmasters.googleblog.com/2014/08/https-as-ranking-signal.html">increasingly standard practice</a> to not permit standard non-secure HTTP connections, so let’s set <em>Viewer Protocol Policy</em> as Redirect HTTP to HTTPS. For <em>Compress Objects automatically</em> choose Yes. The remaining <em>Default Cache Behavior Settings</em> can be left on their defaults.</p><p>For ‘Distribution Settings’, you can choose your pricing class. Then set the Domain Name to the custom domain name you selected earlier for your certificate e.g. mycdn.reidweb.com. For the SSL Certificate option choose Custom SSL Certificate and select your SSL certificate from earlier from the dropdown. Leave the rest of the options at their default values</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*RjJJ_KXrESkCSI4F.png" /></figure><p>Click Create Distribution.</p><p>Now to play the waiting game, your CloudFront distribution will take 20–40 mins in my experience to propagate settings out across the AWS edge location network. Furthermore, any changes you ever make to the distribution settings will have to be ‘re-deployed’ which can take time.</p><p>Now we need to grant our distribution permission to read the files from our S3 bucket. Click your Distribution ID, then click ‘Origins’, select the default origin. For Restrict Bucket Access choose Yes, choose Create a New Identity. For Grant Read Permissions on Bucket choose Yes, Updated Bucket Policy. Then choose &#39;Yes, Edit&#39; to save your choices.</p><h3>Setting up the domain</h3><p>Now that we have our objects/resources in place in S3, our certificate provisioned, and our CloudFront distribution <strong>deployed</strong>, we need to set up our domain name to point at our CloudFront distribution.</p><p>In the CloudFront console, click on your distribution ID. Copy the value of the Domain Name value into your clipboard.</p><p>Now go over to your domain control panel (in my case AWS Route 53) and add a new CNAME record with the name of your domain from earlier e.g. mycdn.reidweb.com, and a value of your Domain Name value from your CloudFront distribution - leaving the TTL on it&#39;s default value should be sufficient. Save this change and wait for it to propagate out.</p><h3>Testing it out</h3><p>Head over to your S3 bucket from earlier and view the name of the resource you uploaded e.g. testImg.jpg, copy this name and append it onto the end of your custom CDN domain in URL form e.g. https://mycdn.reidweb.com/testImg.jpg; take this URL and visit in your browser. If the image loads up you now have a working CDN with edge location distribution and caching, browser caching, and compression enabled - allowing your users to have optimal load times regardless of geo-location.</p><h3>Your Next Steps</h3><p>You can upload more objects to the ‘directory structure’ of your AWS bucket, and treat them as you would file paths of a conventional server. Enable object versioning if you find you are uploading new versions of files frequently, as this will clear the cache at edge locations of your file, so the new version is distributed. Alternatively use ‘invalidation requests’ in the CloudFront console to force the edge locations to clear their cache of one of your resources.</p><h3>My Next Steps</h3><p>I’ll hopefully soon be checking out AWS CloudFormation, and should be able to simplify this entire guide down into 3–4 CloudFormation templates!</p><p><em>Originally published at </em><a href="https://reidweb.com/2017/02/06/cloudfront-cdn-tutorial/"><em>reidweb.com</em></a><em> on February 6, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32885d775de6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techtalk-blog/setting-up-a-cdn-with-aws-s3-and-cloudfront-32885d775de6">Setting up a CDN with AWS S3 and CloudFront</a> was originally published in <a href="https://medium.com/techtalk-blog">TechTalk.blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I’ve learnt about Jenkins Pipelines]]></title>
            <link>https://medium.com/techtalk-blog/what-ive-learnt-about-jenkins-pipelines-fc8715aebdc4?source=rss-9f8161fb7c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc8715aebdc4</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Peter Reid]]></dc:creator>
            <pubDate>Wed, 01 Feb 2017 23:09:33 GMT</pubDate>
            <atom:updated>2017-05-18T14:26:43.996Z</atom:updated>
            <content:encoded><![CDATA[<h4>Pipelines were introduced to Jenkins in April 2016, in this article I talk through some of the best pipeline steps and the weaknesses of pipelines.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rglQbPRxrLkpMjoV4VIbSQ.jpeg" /><figcaption>Pipelines!</figcaption></figure><p>Since <a href="https://jenkins.io/blog/2016/04/26/jenkins-20-is-here/">last April</a> I’ve been using the latest version of Jenkins for a number of test projects and some academic projects, I’ve found the documentation for performing a number of operations very sparse, and after much experimentation I have some knowledge to share with you.</p><h3>Tips on writing Pipelines</h3><p>Unfortunately, I haven’t yet found a way to send HTML formatted emails in the same way that you can with <a href="https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin"><em>email-ext</em></a> for traditonal jobs in Jenkins, judging by <a href="https://groups.google.com/d/msg/jenkinsci-users/turlQIsPgCc/IyCDfty7MgAJ">discussion on the forums</a> and the <a href="https://jenkins.io/doc/pipeline/steps/email-ext/">docs</a> it appears that email-ext does not support this at present. I’ve found mailing the build log to the ‘culprit(s)’ is the best option, but I’ve also seen instances of simply sending a link to the build on build failure along with the message ‘build failed’. To send a log on failed build you can do the following in your jenkinsfile.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9110215c3ed1ca04c4905cf61a8bd18/href">https://medium.com/media/d9110215c3ed1ca04c4905cf61a8bd18/href</a></iframe><p><em>Update 2017–02–06: I have been informed by ‘Yeroc’ in the comments that the </em><em>Pipeline Model Definition Plugin implements better syntax to replace the </em><em>try...finally block in the above example. I&#39;m currently investigating this.</em></p><h3>Sending Slack notifications</h3><p>If email isn’t your thing you may want to send notifications out to Slack when your build commences, fails or completes successfully. I found out how to do this in a great post by Liam Newman over on the <a href="https://jenkins.io/blog/2016/07/18/pipline-notifications/">Jenkins project blog</a>.</p><p>First walk through the <a href="https://my.slack.com/services/new/jenkins-ci">install wizard on your Slack team</a> to setup a key for your Jenkins instance to use.</p><p>Then go ahead and install the Slack plugin for Jenkins and configure it with the settings you set above. The problem here is that there is no project level configuration option for the Slack plugin, so if you have multiple teams with different Slack teams using the same Jenkins installation then you may not be able to do this in the way in which you could do with traditional jobs.</p><p>You can add the following pipeline step to notify your team when the pipeline starts a build.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/91cdb84ce3f1886e3eb41ab554b712e9/href">https://medium.com/media/91cdb84ce3f1886e3eb41ab554b712e9/href</a></iframe><p>To notify your team when your pipeline fails you can add the following</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f0ac967a95dcccc35e835f57051e58e/href">https://medium.com/media/2f0ac967a95dcccc35e835f57051e58e/href</a></iframe><p>and to notify them of a successful build you should add</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2012248491b8f88f5f38c7801c1f2ad4/href">https://medium.com/media/2012248491b8f88f5f38c7801c1f2ad4/href</a></iframe><h3>Running tests and archiving the results</h3><p>One thing I’ve picked up on that you can quite easily omit when testing out your pipeline is that you should surround your step that runs your tests in a try...finally or it will fail to run the &#39;results archiver&#39; and you&#39;ll have to go digging through a lengthy console log to find the failing tests.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/892bac89b3604bc39855ee2ccbcbc208/href">https://medium.com/media/892bac89b3604bc39855ee2ccbcbc208/href</a></iframe><h3>My thoughts</h3><ul><li>‘Configuration-as-code’ allows for <strong>greater traceability of changes</strong> (through version control) to the build process — a much requested feature of traditional jobs.</li><li>‘Configuration-as-code’ allows for administrators to <strong>restrict administrator access for a pipeline to only those who absolutely require it</strong>, rather than granting administrative permissions to all the users of a pipeline who may not necessarily be trusted to ‘not break the pipeline’.</li><li>‘Configuration-as-code’ allows for much <strong>easier sharing of build processes</strong> between teams, projects and in the open-source community — if you ever had to manually copy over another Jenkins job’s configuration you’ll know why I love this so much.</li><li>I find the <a href="https://wiki.jenkins-ci.org/download/attachments/102662163/who-broke-it.png?version=1&amp;modificationDate=1478695629000"><strong>stage-view GUI</strong></a><strong> much friendlier than a series of jobs chained in sequence</strong>. Coupled with the new <a href="https://jenkins.io/projects/blueocean/">Blue Ocean user experience</a> plugins Jenkins is finally aesthetically pleasing and the new UI makes it much <strong>simpler for non-technical project stakeholders to understand and use</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a4YsWbsIHhsjcEG6.png" /></figure><h3>Weaknesses</h3><ul><li>There are still <a href="https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md">plenty of plugins</a> that I and many others will consider ‘core to their CI pipeline’ missing full or partial support for pipelines. For example the Gradle, Maven, Ant, CucumberTestResultArchiver <a href="https://reidweb.com/2017/02/01/what-ive-learnt-about-jenkins-pipelines/#fn:1">1</a>and CoberturaPublisher plugins; <strong>once staple plugins in traditional jobs, do not support pipelines</strong> at the time of writing. While you can work around these limitations with shell stages invoking a series of commands manually, if you aren&#39;t familiar with the CLI syntax of a tool it can be a chore to determine the commands that Jenkins once executed for you as part of these plugins.</li><li>The <strong>lack of ‘per-project-configuration’</strong> in pipelines for many plugins that had this for jobs can lead to making certain plugins ‘unusable’ in your environment, particularly if you operate several projects with different teams who may require different source control or messaging service integrations. I believe this may be an API limitation of pipelines, with plugins simply not being able to do this.</li><li>I’ve found a number of <strong>plugins which have had very limited documentation of their available options</strong> — and have had to spend much time digging through the Jenkins issue tracker, StackOverflow and various user groups.</li></ul><h3>Conclusions</h3><p>At this point I’d say that at least in my eyes Jenkins has finally caught up with <a href="https://travis-ci.org/">Travis CI</a>, <a href="https://about.gitlab.com/gitlab-ci/">Gitlab CI</a> and <a href="https://bitbucket.org/product/features/pipelines">BitBucket Pipelines</a> having been behind for quite some time due to the lack of configuration-as-code. The plugin ecosystem still needs a lot of work to bring all the most popular plugins into the pipeline ecosystem, a fair number of plugins will need updated for pipelines to match the integrations that Travis has and the new UI still needs a lot of work; even with that Jenkins is now once again my go-to CI product, and I’d definitely recommend using it if you can withstand the limitations of Pipelines I’ve highlighted above.</p><p><em>Originally published at </em><a href="https://reidweb.com/2017/02/01/what-ive-learnt-about-jenkins-pipelines/"><em>ReidWeb.com</em></a><em> on February 1, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc8715aebdc4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techtalk-blog/what-ive-learnt-about-jenkins-pipelines-fc8715aebdc4">What I’ve learnt about Jenkins Pipelines</a> was originally published in <a href="https://medium.com/techtalk-blog">TechTalk.blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>