DM-285: adjust reports to new component log
This commit is contained in:
parent
9da3e2d966
commit
0d40d379f6
27
publish-custom-docker-img.sh
Executable file
27
publish-custom-docker-img.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script compiles the project, builds a docker image with the tag <BranchName>-<CommitHash> and pushes it to our nexus.
|
||||
|
||||
# Set the Nexus repository URL
|
||||
NEXUS_REPO="nexus.knecon.com:5001"
|
||||
# Set the image name
|
||||
IMAGE_NAME="red/redaction-report-service-server-v1"
|
||||
# path to image repo
|
||||
IMAGE_REPO="redaction-report-service-image-v1"
|
||||
|
||||
echo "Running build"
|
||||
mvn clean install -Pquickbuild
|
||||
|
||||
# Get the current Git branch
|
||||
GIT_BRANCH=$(git symbolic-ref --short HEAD)
|
||||
# Get the first 5 characters of the commit hash
|
||||
GIT_COMMIT_HASH=$(git rev-parse --short=5 HEAD)
|
||||
# Create the image tag by combining branch and commit hash
|
||||
IMAGE_TAG="${GIT_BRANCH}-${GIT_COMMIT_HASH}"
|
||||
IMAGE_NAME="$NEXUS_REPO/$IMAGE_NAME:$IMAGE_TAG"
|
||||
|
||||
echo "Building docker image: {$IMAGE_NAME}"
|
||||
# Build the Docker image with the specified name and tag and push to nexus
|
||||
mvn -f $IMAGE_REPO docker:build docker:push -Ddocker.image.version=$IMAGE_TAG
|
||||
|
||||
echo "Docker image '$IMAGE_NAME' has been built and pushed to Nexus."
|
||||
@ -83,9 +83,10 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.iqser.red.service</groupId>
|
||||
<artifactId>persistence-service-external-api-v2</artifactId>
|
||||
<artifactId>persistence-service-external-api-impl-v2</artifactId>
|
||||
<version>${persistence-service.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@ -44,7 +44,7 @@ public class StatusReportGenerationServiceTest {
|
||||
|
||||
String dossierId = "dossierId";
|
||||
|
||||
Dossier dossier = Dossier.builder().dossierName("dossierName").id(dossierId).build();
|
||||
Dossier dossier = Dossier.builder().name("dossierName").id(dossierId).build();
|
||||
when(dossierClient.getDossierById(dossierId, true, false)).thenReturn(dossier);
|
||||
|
||||
FileModel fileStatus1 = FileModel.builder()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user