Skip to content

Instantly share code, notes, and snippets.

View shraddhasable's full-sized avatar

shraddha shraddhasable

View GitHub Profile
@shraddhasable
shraddhasable / nexus_upload.sh
Created February 1, 2019 09:16 — forked from jbaranski/nexus_upload.sh
Artifact upload to nexus using curl
# nexus 2.x
# Assuming you run this command against the directory the jar sits in
#
# r - repository
# hasPom - whether you are supplying the pom or you want one generated. If generated g, a, v, p, and c are not needed
# e - extension
# g - group id
# a - artifact id
# v - version
# p - packaging
image: ubuntu:zesty
services:
- mariadb
variables:
MYSQL_DATABASE: smsclub_old
MYSQL_ROOT_PASSWORD: root
before_script:
def jobName = '(...)'
Jenkins.instance.getItemByFullName(jobName).builds.findAll { it.result == Result.FAILURE}.each { it.delete() }