forked from uhafner/warnings-ng-plugin-devenv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_clone.sh
executable file
·39 lines (28 loc) · 1.31 KB
/
_clone.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
protocol="$1"
message="$2"
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: _clone.sh protocol"
exit 0
fi
protocol="${1}"
mark="$(tput setaf 2)$(tput bold)"
bold="$(tput bold)"
norm="$(tput setaf 0)$(tput sgr0)"
echo "${mark}${bold}Clone of Jenkins plugins using ${message}"
read -n 1 -s -r -p "${norm}Press any key to continue..."
echo
git clone ${protocol}uhafner/codingstyle.git || { echo "Clone failed"; exit 1; }
git clone ${protocol}jenkinsci/analysis-model.git || { echo "Clone failed"; exit 1; }
git clone ${protocol}jenkinsci/analysis-model-api-plugin.git || { echo "Clone failed"; exit 1; }
git clone ${protocol}jenkinsci/coverage-model.git || { echo "Clone failed"; exit 1; }
git clone ${protocol}jenkinsci/code-coverage-api-plugin.git || { echo "Clone failed"; exit 1; }
git clone ${protocol}jenkinsci/forensics-api-plugin.git || { echo "Clone failed"; exit 1; }
git clone ${protocol}jenkinsci/git-forensics-plugin.git || { echo "Clone failed"; exit 1; }
git clone ${protocol}jenkinsci/warnings-ng-plugin.git || { echo "Clone failed"; exit 1; }
echo ${mark}${bold}Done cloning. Note that you need to change the remotes for each
echo of the repositories you want to contribute to.
read -n 1 -s -r -p "${norm}Press any key to compile the projects..."
echo
mvn -V -U -e install -DskipTests