This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def jobNames = [ | |
'job1', | |
'job2', | |
'job3', | |
'job4' | |
] | |
def branches = [ | |
'master', | |
'v1', | |
'v2', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REPO="My-Job-Name" | |
TOKEN="token from jenkins" | |
JENKINSURL="http://login:[email protected]/" | |
declare -A branches | |
while read oldrev newrew ref; do | |
if [ -z $ref ]; then |