Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
53b12eef
Commit
53b12eef
authored
Apr 04, 2019
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
cada732f
c7746fba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
promote.sh
ci/scripts/promote.sh
+10
-1
No files found.
ci/scripts/promote.sh
View file @
53b12eef
...
@@ -30,7 +30,16 @@ curl \
...
@@ -30,7 +30,16 @@ curl \
-d
"{
\"
status
\"
:
\"
staged
\"
,
\"
sourceRepo
\"
:
\"
libs-staging-local
\"
,
\"
targetRepo
\"
:
\"
${
targetRepo
}
\"
}"
\
-d
"{
\"
status
\"
:
\"
staged
\"
,
\"
sourceRepo
\"
:
\"
libs-staging-local
\"
,
\"
targetRepo
\"
:
\"
${
targetRepo
}
\"
}"
\
-f
\
-f
\
-X
\
-X
\
POST
"
${
ARTIFACTORY_SERVER
}
/api/build/promote/
${
buildName
}
/
${
buildNumber
}
"
>
/dev/null
||
{
echo
"Failed to promote"
>
&2
;
exit
1
;
}
POST
"
${
ARTIFACTORY_SERVER
}
/api/build/promote/
${
buildName
}
/
${
buildNumber
}
"
>
/dev/null
||
{
result
=
$(
curl
-s
-u
${
ARTIFACTORY_USERNAME
}
:
${
ARTIFACTORY_PASSWORD
}
-f
"
${
ARTIFACTORY_SERVER
}
/api/build/
${
buildName
}
/
${
buildNumber
}
"
)
resultRepo
=
$(
echo
$result
| jq
-r
'.buildInfo.statuses[0].repository'
)
if
[[
$resultRepo
=
"libs-release-local"
]]
;
then
echo
"Already promoted"
else
echo
"Failed to promote"
>
&2
exit
1
fi
}
if
[[
$RELEASE_TYPE
=
"RELEASE"
]]
;
then
if
[[
$RELEASE_TYPE
=
"RELEASE"
]]
;
then
curl
\
curl
\
...
...
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