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
986a9a49
Commit
986a9a49
authored
Sep 17, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x'
parents
99dc7914
16ff7022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
BintrayService.java
...ring/concourse/releasescripts/bintray/BintrayService.java
+8
-8
No files found.
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray/BintrayService.java
View file @
986a9a49
...
...
@@ -78,7 +78,7 @@ public class BintrayService {
logger
.
debug
(
"Checking if distribution is started"
);
RequestEntity
<
Void
>
request
=
getPackageFilesRequest
(
releaseInfo
,
1
);
try
{
logger
.
debug
(
"Checking
b
intray"
);
logger
.
debug
(
"Checking
B
intray"
);
this
.
restTemplate
.
exchange
(
request
,
PackageFile
[].
class
).
getBody
();
return
true
;
}
...
...
@@ -100,7 +100,7 @@ public class BintrayService {
RequestEntity
<
Void
>
request
=
getPackageFilesRequest
(
releaseInfo
,
0
);
try
{
waitAtMost
(
timeout
).
with
().
pollDelay
(
Duration
.
ZERO
).
pollInterval
(
pollInterval
).
until
(()
->
{
logger
.
debug
(
"Checking
b
intray"
);
logger
.
debug
(
"Checking
B
intray"
);
try
{
PackageFile
[]
published
=
this
.
restTemplate
.
exchange
(
request
,
PackageFile
[].
class
).
getBody
();
return
hasPublishedAll
(
published
,
requiredDigests
);
...
...
@@ -111,7 +111,7 @@ public class BintrayService {
});
}
catch
(
ConditionTimeoutException
ex
)
{
logger
.
debug
(
"Timeout checking
b
intray"
);
logger
.
debug
(
"Timeout checking
B
intray"
);
return
false
;
}
return
true
;
...
...
@@ -132,7 +132,7 @@ public class BintrayService {
logger
.
debug
(
"Found all required digests"
);
return
true
;
}
logger
.
debug
(
"Some
digests have not been published:"
);
logger
.
debug
(
remaining
.
size
()
+
"
digests have not been published:"
);
remaining
.
forEach
(
logger:
:
debug
);
return
false
;
}
...
...
@@ -148,7 +148,7 @@ public class BintrayService {
* @param releaseInfo the release information
*/
public
void
publishGradlePlugin
(
ReleaseInfo
releaseInfo
)
{
logger
.
debug
(
"Publishing Gradle
Pluging
"
);
logger
.
debug
(
"Publishing Gradle
plugin
"
);
RequestEntity
<
String
>
requestEntity
=
RequestEntity
.
post
(
URI
.
create
(
BINTRAY_URL
+
"packages/"
+
this
.
bintrayProperties
.
getSubject
()
+
"/"
+
this
.
bintrayProperties
.
getRepo
()
+
"/"
+
releaseInfo
.
getGroupId
()
+
"/versions/"
...
...
@@ -156,10 +156,10 @@ public class BintrayService {
.
contentType
(
MediaType
.
APPLICATION_JSON
).
body
(
GRADLE_PLUGIN_REQUEST
);
try
{
this
.
restTemplate
.
exchange
(
requestEntity
,
Object
.
class
);
logger
.
debug
(
"Publishing Gradle
Pluging
complete"
);
logger
.
debug
(
"Publishing Gradle
plugin
complete"
);
}
catch
(
HttpClientErrorException
ex
)
{
logger
.
info
(
"Failed to add attribute to
gradle plugin.
"
);
logger
.
info
(
"Failed to add attribute to
Gradle plugin
"
);
throw
ex
;
}
}
...
...
@@ -184,7 +184,7 @@ public class BintrayService {
logger
.
debug
(
"Sync complete"
);
}
catch
(
HttpClientErrorException
ex
)
{
logger
.
info
(
"Failed to sync
.
"
);
logger
.
info
(
"Failed to sync"
);
throw
ex
;
}
}
...
...
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