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
53296cd1
Commit
53296cd1
authored
Jul 24, 2020
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport build script updates
parent
c043701d
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
26 additions
and
34 deletions
+26
-34
pom.xml
ci/images/releasescripts/pom.xml
+1
-1
Application.java
.../java/io/spring/concourse/releasescripts/Application.java
+3
-1
ArtifactoryService.java
...course/releasescripts/artifactory/ArtifactoryService.java
+1
-1
BuildInfoResponse.java
...releasescripts/artifactory/payload/BuildInfoResponse.java
+1
-1
BintrayService.java
...ring/concourse/releasescripts/bintray/BintrayService.java
+1
-1
PackageFile.java
.../spring/concourse/releasescripts/bintray/PackageFile.java
+1
-1
CommandProcessor.java
...ng/concourse/releasescripts/command/CommandProcessor.java
+1
-1
DistributeCommand.java
...g/concourse/releasescripts/command/DistributeCommand.java
+1
-1
PromoteCommand.java
...ring/concourse/releasescripts/command/PromoteCommand.java
+1
-1
PublishGradlePlugin.java
...concourse/releasescripts/command/PublishGradlePlugin.java
+1
-1
SyncToCentralCommand.java
...oncourse/releasescripts/command/SyncToCentralCommand.java
+1
-1
SonatypeService.java
...ng/concourse/releasescripts/sonatype/SonatypeService.java
+1
-1
ArtifactoryServiceTests.java
...e/releasescripts/artifactory/ArtifactoryServiceTests.java
+9
-19
BintrayServiceTests.java
...concourse/releasescripts/bintray/BintrayServiceTests.java
+1
-1
DistributeCommandTests.java
...course/releasescripts/command/DistributeCommandTests.java
+1
-1
SonatypeServiceTests.java
...ncourse/releasescripts/sonatype/SonatypeServiceTests.java
+1
-1
No files found.
ci/images/releasescripts/pom.xml
View file @
53296cd1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.2.
0
.RELEASE
</version>
<version>
2.2.
4
.RELEASE
</version>
<relativePath/>
<!-- lookup parent from repository -->
<relativePath/>
<!-- lookup parent from repository -->
</parent>
</parent>
<groupId>
io.spring.concourse.releasescripts
</groupId>
<groupId>
io.spring.concourse.releasescripts
</groupId>
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/Application.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -18,8 +18,10 @@ package io.spring.concourse.releasescripts;
...
@@ -18,8 +18,10 @@ package io.spring.concourse.releasescripts;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.properties.ConfigurationPropertiesScan
;
@SpringBootApplication
@SpringBootApplication
@ConfigurationPropertiesScan
public
class
Application
{
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/artifactory/ArtifactoryService.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/artifactory/payload/BuildInfoResponse.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray/BintrayService.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray/PackageFile.java
View file @
53296cd1
/*
/*
* Copyright 2020 the original author or authors.
* Copyright 2020
-2020
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/CommandProcessor.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/DistributeCommand.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/PromoteCommand.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/PublishGradlePlugin.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/SyncToCentralCommand.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/sonatype/SonatypeService.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/artifactory/ArtifactoryServiceTests.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -84,9 +84,7 @@ class ArtifactoryServiceTests {
...
@@ -84,9 +84,7 @@ class ArtifactoryServiceTests {
@Test
@Test
void
promoteWhenSuccessful
()
{
void
promoteWhenSuccessful
()
{
this
.
server
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/example-build/example-build-1"
))
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/"
+
"example-build"
+
"/"
+
"example-build-1"
))
.
andExpect
(
method
(
HttpMethod
.
POST
))
.
andExpect
(
method
(
HttpMethod
.
POST
))
.
andExpect
(
content
().
json
(
.
andExpect
(
content
().
json
(
"{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"libs-milestone-local\"}"
))
"{\"status\": \"staged\", \"sourceRepo\": \"libs-staging-local\", \"targetRepo\": \"libs-milestone-local\"}"
))
...
@@ -99,11 +97,9 @@ class ArtifactoryServiceTests {
...
@@ -99,11 +97,9 @@ class ArtifactoryServiceTests {
@Test
@Test
void
promoteWhenArtifactsAlreadyPromoted
()
{
void
promoteWhenArtifactsAlreadyPromoted
()
{
this
.
server
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/example-build/example-build-1"
))
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/"
+
"example-build"
+
"/"
+
"example-build-1"
))
.
andRespond
(
withStatus
(
HttpStatus
.
CONFLICT
));
.
andRespond
(
withStatus
(
HttpStatus
.
CONFLICT
));
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/
"
+
"example-build"
+
"/"
+
"
example-build-1"
))
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/
example-build/
example-build-1"
))
.
andRespond
(
withJsonFrom
(
"build-info-response.json"
));
.
andRespond
(
withJsonFrom
(
"build-info-response.json"
));
this
.
service
.
promote
(
"libs-release-local"
,
getReleaseInfo
());
this
.
service
.
promote
(
"libs-release-local"
,
getReleaseInfo
());
this
.
server
.
verify
();
this
.
server
.
verify
();
...
@@ -111,11 +107,9 @@ class ArtifactoryServiceTests {
...
@@ -111,11 +107,9 @@ class ArtifactoryServiceTests {
@Test
@Test
void
promoteWhenCheckForArtifactsAlreadyPromotedFails
()
{
void
promoteWhenCheckForArtifactsAlreadyPromotedFails
()
{
this
.
server
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/example-build/example-build-1"
))
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/"
+
"example-build"
+
"/"
+
"example-build-1"
))
.
andRespond
(
withStatus
(
HttpStatus
.
CONFLICT
));
.
andRespond
(
withStatus
(
HttpStatus
.
CONFLICT
));
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/
"
+
"example-build"
+
"/"
+
"
example-build-1"
))
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/
example-build/
example-build-1"
))
.
andRespond
(
withStatus
(
HttpStatus
.
FORBIDDEN
));
.
andRespond
(
withStatus
(
HttpStatus
.
FORBIDDEN
));
assertThatExceptionOfType
(
HttpClientErrorException
.
class
)
assertThatExceptionOfType
(
HttpClientErrorException
.
class
)
.
isThrownBy
(()
->
this
.
service
.
promote
(
"libs-release-local"
,
getReleaseInfo
()));
.
isThrownBy
(()
->
this
.
service
.
promote
(
"libs-release-local"
,
getReleaseInfo
()));
...
@@ -124,11 +118,9 @@ class ArtifactoryServiceTests {
...
@@ -124,11 +118,9 @@ class ArtifactoryServiceTests {
@Test
@Test
void
promoteWhenPromotionFails
()
{
void
promoteWhenPromotionFails
()
{
this
.
server
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/example-build/example-build-1"
))
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/promote/"
+
"example-build"
+
"/"
+
"example-build-1"
))
.
andRespond
(
withStatus
(
HttpStatus
.
CONFLICT
));
.
andRespond
(
withStatus
(
HttpStatus
.
CONFLICT
));
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/
"
+
"example-build"
+
"/"
+
"
example-build-1"
))
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/
example-build/
example-build-1"
))
.
andRespond
(
withJsonFrom
(
"staged-build-info-response.json"
));
.
andRespond
(
withJsonFrom
(
"staged-build-info-response.json"
));
assertThatExceptionOfType
(
HttpClientErrorException
.
class
)
assertThatExceptionOfType
(
HttpClientErrorException
.
class
)
.
isThrownBy
(()
->
this
.
service
.
promote
(
"libs-release-local"
,
getReleaseInfo
()));
.
isThrownBy
(()
->
this
.
service
.
promote
(
"libs-release-local"
,
getReleaseInfo
()));
...
@@ -158,9 +150,7 @@ class ArtifactoryServiceTests {
...
@@ -158,9 +150,7 @@ class ArtifactoryServiceTests {
@Test
@Test
void
distributeWhenFailure
()
throws
Exception
{
void
distributeWhenFailure
()
throws
Exception
{
ReleaseInfo
releaseInfo
=
getReleaseInfo
();
ReleaseInfo
releaseInfo
=
getReleaseInfo
();
this
.
server
this
.
server
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/distribute/example-build/example-build-1"
))
.
expect
(
requestTo
(
"https://repo.spring.io/api/build/distribute/"
+
"example-build"
+
"/"
+
"example-build-1"
))
.
andExpect
(
method
(
HttpMethod
.
POST
))
.
andExpect
(
method
(
HttpMethod
.
POST
))
.
andExpect
(
content
().
json
(
.
andExpect
(
content
().
json
(
"{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\", \"async\":\"true\"}"
))
"{\"sourceRepos\": [\"libs-release-local\"], \"targetRepo\" : \"spring-distributions\", \"async\":\"true\"}"
))
...
...
ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/bintray/BintrayServiceTests.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/command/DistributeCommandTests.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/sonatype/SonatypeServiceTests.java
View file @
53296cd1
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
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