Skip to content

Instantly share code, notes, and snippets.

View michbeck100's full-sized avatar

Michael Kotten michbeck100

View GitHub Profile
#!/bin/sh
INSTALL_DIR=pimatic-test
PIMATIC_DIR=$INSTALL_DIR/node_modules/pimatic
mkdir ${INSTALL_DIR}
npm install pimatic-mobile-frontend@test --prefix ${INSTALL_DIR}
sed -i -e 's/"pimatic": "0\.9\.\*"//g' ${INSTALL_DIR}/node_modules/pimatic-mobile-frontend/package.json
npm install pimatic@test --prefix ${INSTALL_DIR} --production
sed -i -e 's/0\.9\.44-a/0.9.44/g' ${PIMATIC_DIR}/package.json
import hudson.maven.MavenModuleSet
hudson.model.Hudson.instance.items.findAll {
job ->
!job.isBuilding() && job.isBuildable() && job instanceof MavenModuleSet
}.each {
job ->
def builds = job.builds.collect {it.getDisplayName()}
println("deleting modules for builds other than " + builds)
job.getModules().each {