Skip to content

Instantly share code, notes, and snippets.

@johnstosh
johnstosh / johnstosh.jenkins
Last active Sep 14, 2017
declarative jenkins pipeline for parallel builds
View johnstosh.jenkins
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 Apr 28, 2012
Java NetBeans - (Jackpot) refactoring -- Change show() and hide() into setVisible()
View Change show() and hide() into setVisible().hint
<!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