blob: a94c3b68f8cd4c4060557129da296496a45b5b18 [file] [log] [blame]
Nicolas De Loof58826312014-11-28 10:52:05 +01001#!/usr/local/Cellar/bash/4.3.30/bin/bash
2set -e
3
4declare -A aliases
5aliases=(
Nicolas De Loof0b88a122015-01-05 10:38:37 +01006 [1.596]='weekly'
7 [1.580.2]='latest'
Nicolas De Loof58826312014-11-28 10:52:05 +01008)
9
10versions=( */ )
11versions=( "${versions[@]%/}" )
12url='git://github.com/cloudbees/jenkins-ci.org-docker'
13
Nicolas De Loofc164ea12014-12-02 16:48:59 +010014echo '# maintainer: Nicolas De Loof <nicolas.deloof@gmail.com> (@ndeloof)'
15echo '# maintainer: Michael Neale <mneale@cloudbees.com> (@michaelneale)'
Nicolas De Loof58826312014-11-28 10:52:05 +010016
Nicolas De Loofc164ea12014-12-02 16:48:59 +010017echo
Nicolas De Loof58826312014-11-28 10:52:05 +010018for version in "${versions[@]}"; do
19 commit="$(git log -1 --format='format:%H' -- "$version")"
20 versionAliases=( $version ${aliases[$version]} )
21
Nicolas De Loof58826312014-11-28 10:52:05 +010022 for va in "${versionAliases[@]}"; do
23 echo "$va: ${url}@${commit} $version"
24 done
25done