Skip to content

Instantly share code, notes, and snippets.

@hemp
hemp / scan-multibranch-pipeline-trigger.md
Created January 29, 2020 15:40
Groovy to set the scan interval for Jenkins multibranch pipeline jobs

Scan Multibranch Pipeline Trigger

Enabling this schedule on all multi-branch pipeline build jobs helps with maintaining consistency between the code repository and Jenkins.

There is not a way to set this through a Jenkinsfile nor run this from inside a build job (reference).

The

Keybase proof

I hereby claim:

  • I am hemp on github.
  • I am hemp (https://keybase.io/hemp) on keybase.
  • I have a public key ASA6DqxmHhuUPCcGxW2r0vSdvGgiKcPs7NUfBjliyKKdlgo

To claim this, I am signing this object:

@hemp
hemp / bitbucket-soft-wrap-diffs.md
Last active July 23, 2018 15:47
bitbucket soft-wrap diffs bookmarklet

BitBucket Soft-Wrap Diffs Bookmarklet

Soft-Wrap Diffs GIF on Imgur

Create a bookmark in Chrome or Firefox and copy/paste this code into the URL.

javascript:(function()%7Bvar%20a%3Ddocument.createElement('style')%2Cb%3Bdocument.head.appendChild(a)%3Bb%3Da.sheet%3Bb.insertRule('.udiff-line%20.source%20%7B%20height%3A%20initial%3B%20white-space%3A%20pre-wrap%3B%20word-wrap%3A%20normal%3B%20%7D'%2C0)%3B%7D)()

This bookmarklet adds the following user-style: