Skip to content

Instantly share code, notes, and snippets.

View identifysun's full-sized avatar

Jian Sun identifysun

View GitHub Profile
@identifysun
identifysun / artifactory-get.sh
Created January 17, 2019 07:39 — forked from suicide/artifactory-get.sh
Downloads latest artifact version from artifactory
#!/bin/bash
# downloads latest version of an artifact from artifactory
set -e
usage(){
echo "Usage: $*" >&2
exit 64
}
@identifysun
identifysun / jenkins-api.md
Created November 3, 2020 11:14 — forked from justlaputa/jenkins-api.md
Jenkins Json API

jobs

jenkins_url + /api/json?tree=jobs[name,color]

builds

jenkins_url + /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]

last build

def configuration = [
[
name : "Core",
repositories: "jenkins"
],
[
name : "Infra",
repositories: "*",
owner : "jenkins-infra"