Skip to content

Instantly share code, notes, and snippets.

@andreaselia
andreaselia / gist:aa2d44e3dde3b726d3affc4dec7d8b47
Created January 14, 2021 14:05
vue / nuxt reading time for blog posts/articles
<template>
<div>{{ readingTime }} min read</div>
</template>
<script>
export default {
props: ['content'],
computed: {
readingTime () {
let minutes = 0
@mrk-han
mrk-han / jenkins-playground-setup.md
Last active June 24, 2024 06:45
Setting up a Jenkins Playground: Download, Setup, Test and Run Groovy Scripts on a Local Jenkins Server Instance with MacOS

Test a Local Jenkins Instance on MacOS: Download, Setup, and Run Groovy Scripts Locally

About

There are many ways to test Jenkins...

Jenkins Pipeline Unit is great but it's generally recommended to keep all of your logic with stages and not get too crazy with custom Groovy in your pipeline. Though, it's a great option if you have a very advanced use-case and want to make sure your code is reliable.

The Replay Pipeline Run Option is awesome if you want to verify a quick change or iterate quickly on a previously setup pipeline. But it only allows for altering Jenkinsfile Code and runs against the production Jenkins Instance.