Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
adapt
ace
Commits
628c0755
Commit
628c0755
authored
Apr 10, 2019
by
Michael Ritter
Browse files
Add content type header to curl uploads
parent
a63468a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
628c0755
...
...
@@ -62,7 +62,7 @@ upload:
-
/^release-.*$/
script
:
-
'
mvn
package'
-
'
for
f
in
`find
ace-am/src/main/sql
-type
f`;
do
curl
-X
POST
-H
"Authorization:
token
$BUILD_TOKEN"
--data-binary
@$f
$SERVER/artifacts/ace/$CI_BUILD_REF_NAME/$(echo
$CI_BUILD_REF
|
cut
-c
-7)/$(basename
$f);
done'
-
'
for
f
in
`find
ace-am/target
-type
f
-name
"*.war"`;
do
curl
-X
POST
-H
"Authorization:
token
$BUILD_TOKEN"
--data-binary
@$f
$SERVER/artifacts/ace/$CI_BUILD_REF_NAME/$(echo
$CI_BUILD_REF
|
cut
-c
-7)/$(basename
$f);
done'
-
'
for
f
in
`find
ace-ims-ear/target
-type
f
-name
"*.ear"`;
do
curl
-X
POST
-H
"Authorization:
token
$BUILD_TOKEN"
--data-binary
@$f
$SERVER/artifacts/ace/$CI_BUILD_REF_NAME/$(echo
$CI_BUILD_REF
|
cut
-c
-7)/$(basename
$f);
done'
-
'
for
f
in
`find
ace-am/src/main/sql
-type
f`;
do
curl
-X
POST
-H
"Content-Type:
application/octet-stream"
-H
"Authorization:
token
$BUILD_TOKEN"
--data-binary
@$f
$SERVER/artifacts/ace/$CI_BUILD_REF_NAME/$(echo
$CI_BUILD_REF
|
cut
-c
-7)/$(basename
$f);
done'
-
'
for
f
in
`find
ace-am/target
-type
f
-name
"*.war"`;
do
curl
-X
POST
-H
"Content-Type:
application/octet-stream"
-H
"Authorization:
token
$BUILD_TOKEN"
--data-binary
@$f
$SERVER/artifacts/ace/$CI_BUILD_REF_NAME/$(echo
$CI_BUILD_REF
|
cut
-c
-7)/$(basename
$f);
done'
-
'
for
f
in
`find
ace-ims-ear/target
-type
f
-name
"*.ear"`;
do
curl
-X
POST
-H
"Content-Type:
application/octet-stream"
-H
"Authorization:
token
$BUILD_TOKEN"
--data-binary
@$f
$SERVER/artifacts/ace/$CI_BUILD_REF_NAME/$(echo
$CI_BUILD_REF
|
cut
-c
-7)/$(basename
$f);
done'
Write
Preview
Markdown
is supported
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