Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-com
migration
Commits
f8e34687
Commit
f8e34687
authored
Aug 07, 2018
by
Brett Walker
Browse files
find source_vars_template in proper location
parent
6597b28a
Pipeline
#88837
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bin/start-failover-procedure.sh
View file @
f8e34687
...
...
@@ -23,7 +23,7 @@ function createIssue() {
while
read
-r
line
;
do
# shellcheck disable=SC2001
body
=
$(
echo
"
$body
"
|
sed
"s#__
${
line
}
__#
${
!line
}
#"
)
done
< <
(
grep
-Eho
'export \w+'
./bin
/source_vars_template.sh|cut
-d
" "
-f2
)
done
< <
(
grep
-Eho
'export \w+'
"
${
SCRIPT_DIR
}
/source_vars_template.sh
"
|cut
-d
" "
-f2
)
PROJECT_ID
=
${
GITLAB_MIGRATION_PROJECT_PATH
/\//%2f
}
curl
--silent
--fail
--request
POST
-H
"Private-Token:
${
GITLAB_TOKEN
}
"
"
${
GITLAB_INSTANCE
}
/api/v4/projects/
${
PROJECT_ID
}
/issues"
--data-urlencode
"title=
${
title
}
"
--data-urlencode
"description=
${
body
}
"
>
/dev/null
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment