Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Legal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Security and Compliance
Legal
Commits
71a61d3d
Commit
71a61d3d
authored
2 months ago
by
Maya Muralidhar
Browse files
Options
Downloads
Plain Diff
Merge branch 'azure-remove-jdk17-overrides' into 'master'
Remove Azure JDK17 Overrides See merge request
!589
parents
a56ac8af
1bc3f24a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!589
Remove Azure JDK17 Overrides
Pipeline
#301994
passed
2 months ago
Stage: build
Stage: coverage
Stage: scan
Stage: publish
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-110
0 additions, 110 deletions
.gitlab-ci.yml
with
0 additions
and
110 deletions
.gitlab-ci.yml
+
0
−
110
View file @
71a61d3d
...
...
@@ -78,101 +78,6 @@ include:
-
local
:
"
/publish.yml"
.maven
:
image
:
maven:3.8.3-openjdk-17-slim
tags
:
[
"
osdu-medium"
]
variables
:
MAVEN_REPO_PATH
:
"
$CI_PROJECT_DIR/.m2/repository"
MAVEN_CLI_OPTS
:
"
--batch-mode
--settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml"
cache
:
paths
:
-
$MAVEN_REPO_PATH
artifacts
:
paths
:
-
./**/target/*.jar
-
./**/maven-*-output.txt
when
:
always
expire_in
:
2 days
before_script
:
-
|
# Check for the presence of a maven wrapper script
apt-get update && apt-get install -y python3
if [ -e "$CI_PROJECT_DIR/mvnw" ]; then
export MAVEN_BINARY="$CI_PROJECT_DIR/mvnw"
unset MAVEN_CONFIG
mkdir -pv .mvn/wrapper
else
export MAVEN_BINARY="mvn"
fi
-
export MAVEN="$MAVEN_BINARY $MAVEN_CLI_OPTS -Dmaven.repo.local=$MAVEN_REPO_PATH"
-
echo $MAVEN_BINARY
-
echo $MAVEN_CLI_OPTS
-
echo $MAVEN_REPO_PATH
-
echo $MAVEN
-
mkdir -pv $MAVEN_REPO_PATH
-
export ALL_MAVEN_BUILD_DIRS_Z=$(mktemp)
-
python3 --version
# This scans for all pom.xml files that aren't listed as a child pom (as
# determine by the presence of a <parent> tag).
-
|
(python3 | sort -z > $ALL_MAVEN_BUILD_DIRS_Z) <<EOF
from xml.dom.minidom import parse
import os
import sys
allPomFiles = set()
submoduleFiles = set()
for root, dirnames, filenames in os.walk(os.environ['CI_PROJECT_DIR']):
if 'pom.xml' in filenames:
pomFile = os.path.join(root, 'pom.xml')
allPomFiles.add(pomFile)
dom = parse(pomFile)
for modules in dom.getElementsByTagName('modules'):
for module in modules.getElementsByTagName('module'):
submoduleFiles.add(os.path.join(root, module.firstChild.nodeValue, "pom.xml"))
for pomFile in allPomFiles:
if pomFile not in submoduleFiles:
dir = os.path.dirname(pomFile)
sys.stdout.write(dir + '\0')
EOF
-
xargs -0rn 1 echo < $ALL_MAVEN_BUILD_DIRS_Z
# This creates a script for running maven, capturing output to a file.
# - First argument is the directory to build from
# - Second argument is the name to use for the logfile
# - The remaining arguments are the maven command to run
-
export MAVEN_BUILD=$(tempfile -m 755 -p build -s .sh)
-
echo "#!/bin/bash" > $MAVEN_BUILD
-
|
cat >> $MAVEN_BUILD <<EOF
id=maven_build_\$(echo "\$@" | sha1sum | head -c 7)
cd "\$1"; shift
outputFile="\$1"; shift
echo "********************************************************************************"
echo -e "\e[0Ksection_start:\$(date +%s):\${id}\r\e[0K\e[1m\$(pwd)\e[0m"
echo -e "\e[32;1m\$MAVEN" "\$@" "\e[0m"
if \$MAVEN "\$@" > "\$outputFile" 2>&1; then
tail -n 25 "\$outputFile";
echo -e "\e[36m**** Showing the last 25 lines of the passed build (above). See Job artifacts for full log details *****\e[0m";
echo -e "\e[0Ksection_end:\$(date +%s):\${id}\r\e[0K"
else
tail -n 200 "\$outputFile";
echo -e "\e[31m**** Showing the last 200 lines of the failed build (above). See Job artifacts for full log details *****\e[0m";
echo -e "\e[0Ksection_end:\$(date +%s):\${id}\r\e[0K"
exit 255;
fi
EOF
# This creates a script for applying the $MAVEN_BUILD script to all build directories
-
export MAVEN_FOREACH=$(tempfile -m 755 -p fr-ec -s .sh)
-
echo "#!/bin/sh" > $MAVEN_FOREACH
-
echo 'xargs -0rI {} $MAVEN_BUILD {} "$@" < $ALL_MAVEN_BUILD_DIRS_Z' >> $MAVEN_FOREACH
download_plugins
:
image
:
maven:3.8.3-openjdk-17-slim
stage
:
build
...
...
@@ -199,28 +104,13 @@ download_plugins:
variables
:
-
$CORE == '1'
gemnasium-maven-dependency_scanning
:
variables
:
DS_JAVA_VERSION
:
17
azure_deploy
:
variables
:
AZURE_COVERAGE_THRESHOLD
:
80
azure_containerize
:
needs
:
[
"
azure-compile-and-unit-test"
]
variables
:
AZURE_CONTAINERIZE_REPOSITORY
:
"
https://gitlab-ci-token:${CI_JOB_TOKEN}@community.opengroup.org/osdu/platform/deployment-and-operations/base-containers-azure/service-base-image"
azure_test
:
image
:
community.opengroup.org:5555/osdu/platform/deployment-and-operations/base-containers-azure/azure-maven17:v0.0.1
azure_code_coverage
:
variables
:
AZURE_COVERAGE_THRESHOLD
:
80
fossa-analyze
:
image
:
$CI_REGISTRY/divido/fossa-with-cache:v0.9-jdk17
fossa-check-notice
:
image
:
$CI_REGISTRY/divido/fossa-with-cache:v0.9-jdk17
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment