-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
132a1d1
commit dd33960
Showing
33 changed files
with
525 additions
and
42 deletions.
There are no files selected for viewing
Binary file added
BIN
+3.02 KB
...li/a/io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/0.1.2/simple-jdk17-0.1.2.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
.../io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/0.1.2/simple-jdk17-0.1.2.jar.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
91b7797090e2ac1f51e2fb268458442f |
1 change: 1 addition & 0 deletions
1
...io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/0.1.2/simple-jdk17-0.1.2.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d596fd8a5faffa8540c08d083f6d41afe42fcece |
19 changes: 19 additions & 0 deletions
19
...li/a/io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/0.1.2/simple-jdk17-0.1.2.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>io.github.stuartwdouglas.hacbs-test.simple</groupId> | ||
<artifactId>simple-jdk17</artifactId> | ||
<version>0.1.2</version> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
<properties> | ||
<maven.compiler.target>17</maven.compiler.target> | ||
<maven.compiler.source>17</maven.compiler.source> | ||
</properties> | ||
<build /> | ||
</project> |
1 change: 1 addition & 0 deletions
1
.../io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/0.1.2/simple-jdk17-0.1.2.pom.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
08ec474b353ff180282668bf5e81cd76 |
1 change: 1 addition & 0 deletions
1
...io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/0.1.2/simple-jdk17-0.1.2.pom.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7a10727c99f5257a25fd6590a9dce5847c7b82bc |
12 changes: 12 additions & 0 deletions
12
...mponents/cli/a/io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/maven-metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metadata> | ||
<groupId>io.github.stuartwdouglas.hacbs-test.simple</groupId> | ||
<artifactId>simple-jdk17</artifactId> | ||
<versioning> | ||
<release>0.1.2</release> | ||
<versions> | ||
<version>0.1.2</version> | ||
</versions> | ||
<lastUpdated>20230807050400</lastUpdated> | ||
</versioning> | ||
</metadata> |
1 change: 1 addition & 0 deletions
1
...ents/cli/a/io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/maven-metadata.xml.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
85d3068fd5a413da484a2789a7e9bd87 |
1 change: 1 addition & 0 deletions
1
...nts/cli/a/io/github/stuartwdouglas/hacbs-test/simple/simple-jdk17/maven-metadata.xml.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ef470d8d906a7d371f9876b2311b100caf7688f8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...nts/management-console/src/main/java/com/redhat/hacbs/management/dto/BuildAttemptDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package com.redhat.hacbs.management.dto; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
|
||
import com.redhat.hacbs.management.model.BuildAttempt; | ||
|
||
public record BuildAttemptDTO( | ||
@Schema(required = true) long id, | ||
String jdk, | ||
String mavenVersion, | ||
String gradleVersion, | ||
String sbtVersion, | ||
String antVersion, | ||
String tool, | ||
String builderImage, | ||
|
||
String preBuildImage, | ||
String hermeticBuilderImage, | ||
String outputImage, | ||
String outputImageDigest, | ||
String commandLine, | ||
String preBuildScript, | ||
String postBuildScript, | ||
String enforceVersion, | ||
boolean disableSubModules, | ||
int additionalMemory, | ||
String repositories, | ||
String allowedDifferences, | ||
|
||
String buildLogsUrl, | ||
String buildPipelineUrl, | ||
|
||
//List<AdditionalDownload> additionalDownloads, | ||
|
||
boolean successful, | ||
boolean passedVerification, | ||
|
||
//StoredDependencyBuild dependencyBuild, | ||
|
||
//List<BuildFile> storedBuildResults, | ||
String upstreamDifferences) { | ||
|
||
public static BuildAttemptDTO of(BuildAttempt i) { | ||
return new BuildAttemptDTO( | ||
i.id, | ||
i.jdk, | ||
i.mavenVersion, | ||
i.gradleVersion, | ||
i.sbtVersion, | ||
i.antVersion, | ||
i.tool, | ||
i.builderImage, | ||
i.preBuildImage, | ||
i.hermeticBuilderImage, | ||
i.outputImage, | ||
i.outputImageDigest, | ||
i.commandLine, | ||
i.preBuildScript, | ||
i.postBuildScript, | ||
i.enforceVersion, | ||
i.disableSubModules, | ||
i.additionalMemory, | ||
i.repositories, | ||
i.allowedDifferences, | ||
i.buildLogsUrl, | ||
i.buildPipelineUrl, | ||
i.successful, | ||
i.passedVerification, | ||
i.upstreamDifferences); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...components/management-console/src/main/java/com/redhat/hacbs/management/dto/BuildDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.redhat.hacbs.management.dto; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
|
||
import com.redhat.hacbs.management.model.MavenArtifact; | ||
import com.redhat.hacbs.management.model.StoredDependencyBuild; | ||
|
||
public record BuildDTO( | ||
@Schema(required = true) long id, | ||
@Schema(required = true) String name, | ||
String scmRepo, | ||
String tag, | ||
String commit, | ||
String contextPath, | ||
boolean succeeded, | ||
boolean contaminated, | ||
List<String> artifacts, | ||
BuildAttemptDTO successfulBuild, | ||
List<BuildAttemptDTO> buildAttempts) { | ||
public static BuildDTO of(StoredDependencyBuild build) { | ||
BuildAttemptDTO success = build.buildAttempts.stream().filter(s -> s.successful).findFirst().map(BuildAttemptDTO::of) | ||
.orElse(null); | ||
List<BuildAttemptDTO> others = build.buildAttempts.stream().filter(s -> success == null || s.id != success.id()) | ||
.map(BuildAttemptDTO::of).toList(); | ||
return new BuildDTO( | ||
build.id, | ||
build.buildIdentifier.dependencyBuildName, | ||
build.buildIdentifier.repository.url, | ||
build.buildIdentifier.tag, | ||
build.buildIdentifier.hash, | ||
build.buildIdentifier.contextPath, | ||
build.succeeded, | ||
build.contaminated, | ||
build.producedArtifacts.stream().map(MavenArtifact::gav).toList(), | ||
success, | ||
others); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...nts/management-console/src/main/webui/src/app/BuildStatusPieChart/BuildStatusPieChart.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.