Skip to content

Instantly share code, notes, and snippets.

@ederparaiso
ederparaiso / jenkins-flow-nested-jobs.groovy
Last active January 6, 2021 12:43
Sample jenkins result examples
// https://javadoc.jenkins-ci.org/hudson/model/Result.html
/*
ABORTED - The build was manually aborted.
FAILURE - The build had a fatal error.
NOT_BUILT - The module was not built.
SUCCESS - The build had no errors.
UNSTABLE - The build had some errors but they were not fatal.
*/
pipeline {
@ederparaiso
ederparaiso / docker-cleanup.sh
Created May 3, 2022 21:39
docker system prune cron job with discord notification
#!/bin/sh
docker system prune --force
OUT=$?
WEBHOOK_URL="url webhook discord"
if [ $OUT = 0 ]
then
STATUS="Ok"