File tree 1 file changed +3
-22
lines changed
1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -36,31 +36,12 @@ update_website() {
36
36
# Move to temp folder
37
37
cd " $TMP_DIR "
38
38
39
- declare -r masterBranch=" refs/heads/master"
40
- declare slot=" "
41
- declare user=" "
42
- declare password=" "
43
- declare message=" "
44
-
45
- if [ " $masterBranch " == " $BRANCH " ]; then
46
- slot=" sonarwhal-staging"
47
- user=$GIT_USER_NAME
48
- password=$GIT_PASSWORD
49
- message=" Hey server, this content is for you! ***NO_CI***"
50
- else
51
- slot=" sonarwhal-scanner-staging"
52
- user=$GIT_SCANNER_USER
53
- password=$GIT_SCANNER_PASSWORD
54
- message=" Hey staging server, this content is for you! ***NO_CI***"
55
- fi
56
-
57
-
58
39
git config --global user.email " $GIT_USER_EMAIL " \
59
- && git config --global user.name " $user " \
40
+ && git config --global user.name " $GIT_USER_NAME " \
60
41
&& git init \
61
42
&& git add -A \
62
- && git commit --message " $message " \
63
- && git push --quiet --force --set-upstream " https://$user : $password @ $slot .scm.azurewebsites.net:443/sonarwhal.git" master
43
+ && git commit --message " Hey server, this content is for you! ***NO_CI*** " \
44
+ && git push --quiet --force --set-upstream " https://$GIT_USER_NAME : $GIT_PASSWORD @sonarwhal-staging .scm.azurewebsites.net:443/sonarwhal.git" master
64
45
}
65
46
66
47
remove_sensitive_information () {
You can’t perform that action at this time.
0 commit comments