Skip to content

Instantly share code, notes, and snippets.

@abayer
abayer / check-updates
Last active September 28, 2018 20:43 — forked from rtyler/check-updates
A simple script to update a pom.xml for the latest updates
#!/usr/bin/env bash
DEPENDS=$(xmlstarlet sel -N x='http://maven.apache.org/POM/4.0.0' \
-t -m x:project/x:dependencies/x:dependency \
-v x:artifactId -o ' ' \
pom.xml)
if [ ! -f update-center.actual.json ]; then
wget https://updates.jenkins.io/update-center.actual.json;
fi;
@abayer
abayer / examplePipeline.groovy
Last active April 1, 2021 08:03 — forked from rsandell/examplePipeline.groovy
Example declarative pipeline
pipeline {
agent none
environment {
MAVEN_OPTS = "-Xmx1024m"
}
parameters {
stringParam(defaultValue: "install", description: "What Maven goal to call", name: "MAVEN_GOAL")