Skip to content

Commit

Permalink
script update
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Jul 24, 2023
1 parent e3a1d10 commit cf36b3a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ mrt-services/mrt-admin-lambda/consistency-driver/.bundle
dependencies.txt
mrt-services/it.txt
mrt-services/war.txt
bin/fresh_build2.sh
build-output/*.txt
build-output/*.jar
build-output/*.war
19 changes: 8 additions & 11 deletions bin/fresh_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ build_image() {

build_image_push() {
build_image $1 $2 "$3"
if test_flag('push')
if test_flag 'push'
then
docker push $1 >> $LOGDOCKER 2>&1
eval_jobstat $? "FAIL" "Docker push $1"
Expand Down Expand Up @@ -405,22 +405,19 @@ then
WKDIR=/apps/dpr2/merritt-workspace/daily-builds/${MD_BRANCH}.${BC_LABEL}/merritt-docker
fi

if is_daily_build_dir; then echo AAA; else echo BBB; fi
exit

show_options

# If the working directory contains "merritt-workspace/daily-builds", delete and recreate the directory
create_working_dir

# Create output files for the build steps
LOGSUM=${WKDIR_PAR}/build-log.summary.txt
LOGGIT=${WKDIR_PAR}/build-log.git.txt
LOGDOCKER=${WKDIR_PAR}/build-log.docker.txt
LOGSCAN=${WKDIR_PAR}/build-log.trivy-scan.txt
LOGSCANFIXED=${WKDIR_PAR}/build-log.trivy-scan-fixed.txt
LOGMAVEN=${WKDIR_PAR}/build-log.maven.txt
JOBSTAT=${WKDIR_PAR}/jobstat.txt
LOGSUM=${WKDIR}/build-output/build-log.summary.txt
LOGGIT=${WKDIR}/build-output/build-log.git.txt
LOGDOCKER=${WKDIR}/build-output/build-log.docker.txt
LOGSCAN=${WKDIR}/build-output/build-log.trivy-scan.txt
LOGSCANFIXED=${WKDIR}/build-output/build-log.trivy-scan-fixed.txt
LOGMAVEN=${WKDIR}/build-output/build-log.maven.txt
JOBSTAT=${WKDIR}/build-output/jobstat.txt

init_log_files

Expand Down
8 changes: 8 additions & 0 deletions build-output/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Build Output goes here

- [build-log.summary.txt](build-log.summary.txt)
- [build-log.git.txt](build-log.git.txt)
- [build-log.docker.txt](build-log.docker.txt)
- [build-log.trivy-scan.txt](build-log.trivy-scan.txt)
- [build-log.trivy-scan-fixed.txt](build-log.trivy-scan-fixed.txt)
- [build-log.maven.txt](build-log.maven.txt)

0 comments on commit cf36b3a

Please sign in to comment.