Example using a secret file as a variable and sshagent
In some cases I like to use the awk interpreter for quick task. There are probably a more DSL/Groovy way to do these actions, but awk is so neat and clean.
One of the weaker things in bash are the conditionals, when compared to the simplicity and elegance of a higher language. I know the syntax of both and there are many, many caveats in the bash conditionals that make them non-trivial.
The power that the bash shell affords is hard describe and its familiarity makes the bash shell my go to for almost everything. But I'm continuing on the process of JP (Jenkins Pipelines).
With that end, I need to have some variables defined at the beginning of the run and used throughout the entire job.
Sometimes these variables will be defined in Groovy
Recently started to take them more seriously to see how much work it would be to take my current work flow and augment their power.
Most of my jobs are bash scripts that make Jenkins a glorified cron job. Previously Jenkins was very rudimentary, e.g. I just recently started using Jenkins plug-ins for config injection and secret obfuscation.
Now I'm trying to take those newly learned processes and add a whole new DSL on top.