Skip to content

Instantly share code, notes, and snippets.

@johnstosh
johnstosh / johnstosh.jenkins
Last active September 14, 2017 21:24
declarative jenkins pipeline for parallel builds
pipeline {
environment {
/*
* Maybe maven 3.5.0 is why the build hangs sometimes?
* I'm trying 3.0.5 which is what's in NetBeans.
* That fixed it.
*/
mvnHome = tool 'maven-3.0.5'
jenkins2MvnVersion = 'maven-3.5.0'
@johnstosh
johnstosh / Change show() and hide() into setVisible().hint
Created April 28, 2012 02:17
Java NetBeans - (Jackpot) refactoring -- Change show() and hide() into setVisible()
<!description="Change .show() and .hide() calls
on Dialog and JDialog
into .setVisible(true) and .setVisible(false) calls, respectively.">
$s.show() :: $s instanceof java.awt.Dialog
=> $s.setVisible(true)
;;
$s.hide() :: $s instanceof java.awt.Dialog