Hot answers tagged

3

Single responsibility principle (SRP) Martin defines a responsibility as a reason to change, and concludes that a class or module should have one, and only one, reason to be changed (i.e. rewritten). As an example, consider a module that compiles and prints a report. Imagine such a module can be changed for two reasons. First, the content of the ...


2

Jenkins has been around for longer so it has a larger installed base. It doesn't matter if AWS has something that is cheaper and better. Many places don't want to put the time and energy into upgrading Jenkins. Migrating to a new CI pipeline is even "scarier" -- regardless of whether it would be a wise strategic decision. Jenkins 1.x made this far worse ...


2

Use the Groovy trim() method. For instance, def myTrimmedParam = params.myParam.trim().


1

It is possible to do this (not with any built-in steps; you essentially have to either use a global cache or write your own caching tool), but I do not recommend it. When I've tried this in the past, I often ran into race conditions. For example, one build would write to the cache while another build simultaneously reads from the cache, or two builds would ...


1

This article very clearly explains how to deploy a nodejs app using Jenkins: https://blog.couchbase.com/create-continuous-deployment-pipeline-nodejs-jenkins/


Only top voted, non community-wiki answers of a minimum length are eligible