Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This script finds unique, new nicknames for Jenkins to be used in commit messages.
#!/bin/sh
# Finds a unique nick name for Jenkins in the current Git history
# List from http://www.zelo.com/firstnames/alphabet/namesj.asp
names='
jaantje
jaap
jabari
jabbar
jabilo
jabin
jabir
jabulela
jacalyn
jacan
jace
jacee
jaceil
jacelyn
jacen
jacenta
jacey
jaci
jacie
jaciel
jacinda
jacinta
jacinthe
jacinto
jacira
jack
jackeline
jacki
jackie
jackleen
jacklynn
jackson
jacky
jaclyn
jaclynn
jacob
jacoba
jacobe
jacobo
jacolin
jacot
jacqualine
jacque
jacqueleen
jacquelin
jacqueline
jacquelyn
jacquelyne
jacquelynne
jacquenetta
jacquenette
jacques
jacqui
jacy
jacynth
jada
jadalynn
jadan
jadarian
jadaya
jade
jadee
jadelyn
jaden
jader
jadira
jadon
jady
jadyn
jae
jaecar
jaecilynn
jaeda
jaeden
jaedin
jaedon
jaedyn
jaegar
jaeger
jael
jaeleah
jaelin
jaelyn
jaelynn
jaena
jaenette
jafaru
jaffa
jafit
jafita
jager
jagger
jago
jahari
jahmal
jahnisce
jahve
jai
jaicee
jaida
jaide
jaiden
jaidon
jaidyn
jailyn
jaime
jaimee
jaimelynn
jaimi
jaimie
jaina
jainaba
jaine
jaione
jair
jaira
jairo
jairus
jaisa
jaisen
jaith
jaivyn
jake
jakeem
jakiara
jakib
jakinda
jaklyn
jakob
jakoba
jakobah
jakobe
jakobie
jakome
jakson
jala
jaleb
jaleel
jalen
jalita
jaliyah
jaliyiah
jamaal
jamae
jamael
jamahl
jamal
jamall
jamarcus
jamarick
jamarreon
jamee
jameel
jameelah
jamel
jamelia
james
jamese
jameson
jamey
jami
jamia
jamian
jamie
jamiel
jamielee
jamieson
jamil
jamila
jamilah
jamile
jamilee
jamilia
jamilla
jamille
jamilyn
jamin
jamion
jamir
jamison
jamiya
jamon
jan
jana
janae
janah
janai
janais
janaya
janaye
jancsi
jandi
jane
janea
janee
janeen
janel
janele
janell
janella
janelle
janene
janessa
janet
janetta
janette
janey
jani
jania
janiah
janice
janicia
janie
janiece
janielle
janin
janina
janine
janis
janise
janita
janka
jankia
janko
janna
jannae
janne
jannean
jannes
jannet
janneth
jannina
jannis
janos
jans
jansen
jansje
janson
jantis
jantje
janus
janya
janyd
janyl
japhet
japheth
jaquelin
jaquelina
jaqueline
jaquenette
jaques
jaquetta
jara
jarah
jaran
jared
jarek
jarel
jarell
jaren
jareth
jarett
jariath
jarid
jarin
jarion
jarissa
jarko
jarlath
jarman
jarmann
jarod
jaron
jarrad
jarrah
jarran
jarred
jarrel
jarrell
jarren
jarret
jarrett
jarrod
jarron
jarvis
jaryl
jaryn
jasen
jasha
jaskirit
jaslynn
jasmeen
jasmin
jasmine
jasmyn
jasmyne
jason
jasone
jasontae
jaspar
jasper
jassem
javan
javier
javiera
javiero
javin
javonna
javy
jawad
jawhar
jax
jaxine
jaxon
jay
jaya
jayani
jayar
jayce
jaycee
jaycie
jayde
jaydee
jayden
jaydon
jaydra
jaye
jaykell
jaykob
jayla
jaylend
jaylene
jayli
jaylynn
jayme
jaymee
jaymes
jaymie
jaymin
jayna
jayne
jayni
jaynie
jayron
jayronn
jayson
jayvee
jazalyn
jazlyn
jazlynn
jazmaine
jazmin
jazmina
jazmine
jazmynn
jazz
jazzalyn
jazzmine
jazzmyn
jazzy
jean
jean baptiste
jeana
jeanae
jeanatte
jeanay
jeane
jeanee
jeanell
jeanelle
jeanene
jeanetta
jeanette
jeanice
jeanie
jeanina
jeanine
jeanna
jeanne
jeannell
jeannelle
jeannette
jeannie
jeannine
jeannot
jeb
jed
jedadiah
jedaiah
jedd
jedediah
jedi
jediah
jedidiah
jeena
jeevan
jef
jeff
jefferson
jeffery
jefford
jeffrey
jeffry
jehane
jehoichin
jehu
jela
jelani
jelisa
jem
jemal
jemila
jemima
jemimah
jemina
jemma
jen
jena
jenae
jenah
jenai
jenalee
jenalyn
jenalynn
jenalyss
jenarae
jenasis
jenavieve
jenay
jenaya
jenda
jenee
jeneen
jeneka
jenel
jenell
jenella
jenelle
jenene
jenese
jenesia
jenesis
jenessa
jenetta
jenette
jeneva
jenevieve
jengo
jeni
jenice
jeniece
jenifer
jenilynn
jenina
jenine
jenise
jenisei
jenita
jenn
jenna
jennabel
jennabeth
jennae
jennah
jennalee
jennaleigh
jennalyn
jennarae
jennasee
jennavieve
jennay
jennelle
jennessa
jenneva
jenni
jennie
jennifer
jennika
jennilee
jennilyn
jennine
jennis
jenny
jenny-lee
jennyann
jennyfer
jennyver
jenralyn
jens
jensen
jensina
jensine
jenyd
jeoffroi
jeorjia
jeovana
jeovanna
jephtah
jerad
jerah
jeraldine
jeraldo
jeralyn
jeramiah
jeramie
jeramy
jeran
jerande
jerard
jerardo
jerean
jered
jerek
jerel
jerelyn
jeremae
jeremee
jeremi
jeremiah
jeremias
jeremie
jeremy
jeremyah
jeren
jerett
jereyne
jeri
jeriah
jerianne
jeric
jericho
jerick
jerico
jeriel
jerilyn
jerilynn
jerimiah
jeris
jermain
jermaine
jermane
jermayne
jerod
jerold
jerome
jeronimo
jerrad
jerrah
jerrald
jerrall
jerred
jerrel
jerrell
jerren
jerrett
jerric
jerrica
jerrick
jerrico
jerriel
jerrilyn
jerrin
jerris
jerrod
jerrold
jerron
jerry
jerryl
jerusha
jervis
jeryl
jerzie
jesaja
jeshua
jeshurun
jesiah
jesika
jeslyn
jeslynn
jesmine
jesper
jess
jessamina
jessamine
jessamyn
jesse
jessee
jessemy
jessey
jessi
jessica
jessie
jessy
jesus
jesusa
jeta
jethro
jett
jetta
jettie
jewel
jewell
jeyce
jezebel
jhovana
ji
jianna
jiao-long
jibril
jie
jiera
jilian
jilienne
jill
jillanne
jillayne
jillene
jillesa
jillian
jilliane
jilliann
jillianna
jillianne
jilly
jim
jimbo
jimena
jimi
jimmi
jimmie
jimmy
jin
jineen
jing
jing-sheng
jing-wei
jinna
jinni
jinny
jira
jiri
jirka
jiro
jiselle
jiya
jizelle
jo
joachim
joachin
joah
joan
joana
joandra
joanie
joann
joanna
joanne
joaquim
joaquin
joaquina
joaquine
joash
job
jobe
jobey
jobina
joby
jocasta
jocelin
jocelina
joceline
jocelyn
jocelyne
jocelynn
jochebed
jochele
jochelle
jocheved
jock
joda
jodayne
jodee
jodele
jodelle
jodene
jodi
jodie
jodine
jody
joe
joeanna
joeanne
joed
joei
joel
joeleene
joeliyn
joell
joella
joelle
joellen
joelliana
joelliane
joely
joen
joey
joff
johahn
johan
johanan
johann
johanna
johannah
johanne
johannes
johaunn
johfrit
john
john-paul
johnathan
johnathen
johnathon
johnell
johnelle
johnetta
johnette
johnn
johnna
johnnie
johnny
johnson
johnston
johyna
joi
joia
joie
joka
jokin
jokina
jokine
jola
jolan
jolanda
jolanka
jolee
joleen
joleigh
jolena
jolene
joli
jolie
jolina
joline
jolisa
jolleen
jollene
jollyn
jollyshandy
jolon
jomar
jon
jonah
jonalyn
jonalynn
jonam
jonas
jonatan
jonathan
jonathen
jonathena
jonathon
jonathyn
jonati
jonay
jone
jonell
jonetta
jonette
joni
jonita
jonn
jonna
jonnelle
jonni
jonnie
jonny
joop
joosef
jooseppi
joost
jopie
jora
jorah
joram
joran
jorcina
jordain
jordan
jordana
jordane
jordanna
jordanne
jordell
jorden
jordi
jordin
jordon
jordy
jordyn
jordynn
jore
jorel
jorell
jorge
jorgelina
jori
jorian
jorie
jorim
jorja
jorrel
jorrell
jorryn
jory
josalind
josalyn
josalynn
josceline
joscelyn
joscelyne
jose
joseba
josebe
josee
josef
josefa
josefina
joselito
joseph
joseph harlin
josepha
josephe
josephene
josephina
josephine
josephus
josetta
josette
josh
joshka
joshlynn
joshua
josiah
josiane
josias
josie
josilyn
josina
joslin
joslyn
josobelle
joss
josslyn
josu
josu
josue
josune
jotham
jourdaine
jourdan
jourdon
jov
jovan
jovana
jovanna
jovena
jovina
jovita
jovon
joxepa
joy
joya
joyann
joyanna
joyanne
joyce
joyceanne
joyceline
joycelyn
joycelynn
joyelle
jozef
joziah
jozlyn
jozsa
jozy
jozzlynn
ju-long
juan
juana
juanetta
juanisha
juanita
juanito
jubal
juci
jucika
jud
judah
judas
judd
jude
judeana
judeena
judi
judie
judit
judith
juditha
judson
judy
juha
juji
jukka
jule
julee
juleen
jules
julia
julian
juliana
julianna
julianne
juliano
juliauna
julie
julien
julienne
juliet
julieta
julietta
juliette
julina
julio
julis
julisha
julissa
julita
julius
jullianna
jullien
july
jumanah
jumoke
june
junien
junior
jur
jure
jurgen
juri
jurian
jurre
jurrian
juryanna
jussi
justain
justeen
justeene
justene
justice
justin
justina
justine
justino
justis
justise
justus
justyn
justyna
justyne
jutka
jyl
jyll
jyllina
jymie
jysen
'
used="$(git log --format=%s%n%b |
tr -c 'a-zA-Z' '\n' |
tr 'A-Z' 'a-z' |
sed -n '/^J/{N;s/\njenkins//p}' |
sort |
uniq)"
candidates="$(printf '%s%s%s' "$used" "$used" "$names" | sort | uniq -u)"
count=$(echo "$candidates" | wc -l)
random=$RANDOM
test -n "$random" ||
random=$(od -N 4 -t u4 /dev/urandom | sed -n '1s/.* //p')
pick=$((1+($random%$count)))
echo "$candidates" | sed -n "$pick{s/^j/J/;s/$/ Jenkins/;p}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.