Skip to content

Commit

Permalink
Update config.yml to replace deprecated executors (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
OPeyrusse authored Dec 20, 2024
1 parent 3f98018 commit ad04ec7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ parameters:
executors:
jdk11-docker:
docker:
- image: cimg/openjdk:11.0.20-node
- image: cimg/openjdk:17.0.13
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8
Expand All @@ -22,7 +22,7 @@ executors:
LANG: C.UTF-8
LC_ALL: C.UTF-8
machine:
image: ubuntu-2004:202201-02
image: ubuntu-2404:2024.11.1

jobs:
build_and_test:
Expand All @@ -46,7 +46,7 @@ jobs:
-v "$HOME/.m2/repository:/tmp/repository" \
-v "$PWD:/home/circleci/mac" \
-w /home/circleci/mac -u root \
circleci/openjdk:11-jdk-node-browsers \
cimg/openjdk:17.0.13 \
mvn package --settings .circleci/circleci-settings.xml -Dmaven.repo.local=/tmp/repository
- save_cache:
paths: [ ~/.m2/repository ]
Expand Down
12 changes: 7 additions & 5 deletions scripts/sandbox_export_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# 2- Run the sandbox
# 3- Generate the memory statistics file for the Sandbox

# This script EXPECTS to be executed from the ROOT of a buildable mac project
# This script EXPECTS to be executed from the ROOT of a buildable mac project

# REQUIREMENTS :
# Java Development Kit 11+ (JRE is not enough as we use the jps command)
Expand All @@ -15,7 +15,7 @@
# Valid Atoti Server License
# cURL

# INPUT :
# INPUT :
# - 1 String : Atoti Server version used by the sandbox app
# - 2 String : URL of the Artifactory Sandbox repository
# - 3 Optional String : Path to the maven settings file, this file is expected to grant read access to ActiveViam artifacs
Expand All @@ -33,7 +33,7 @@ check_root(){
if [[ -z $(cat pom.xml) || -z $(cat pom.xml | grep "<artifactId>${MAC_ARTIFACTID}</artifactId>") ]]; then
echo "The execution directory of the script ${PWD} is not the root of a buildable mac project."
exit 1
fi
fi
}

check_requirements(){
Expand Down Expand Up @@ -82,6 +82,8 @@ AP_MINOR=$(echo ${AP_VERSION} | cut -f2 -d.)
AP_BUGFIX=$(echo ${AP_VERSION} | cut -f3 -d.)
if [[ ${AP_HUMAN} == 5 && ${AP_MINOR} == 8 ]]; then
echo https://artifacts.activeviam.com/share/ActivePivot_stable/${AP_VERSION}/${JDK_VERSION}/sandbox-release-${AP_VERSION}-${JDK_VERSION}.zip
elif [[ ${AP_HUMAN} == 6 && ${AP_MINOR} == 1 ]]; then
echo https://artifacts.activeviam.com/share/ActivePivot_stable/${AP_VERSION}/sandbox-${AP_VERSION}.zip
else
echo https://artifacts.activeviam.com/share/ActivePivot_stable/${AP_VERSION}/${JDK_VERSION}/sandbox-release-${AP_VERSION}.zip
fi
Expand Down Expand Up @@ -134,7 +136,7 @@ JMXTERM_VERSION=1.0.4
JMX_REPO_PATH=https://github.com/jiaqi/jmxterm/releases/download/
JMX_JAR_PATH=${JMX_REPO_PATH}v${JMXTERM_VERSION}/jmxterm-${JMXTERM_VERSION}-uber.jar

# 2- Download a sandbox project zip
# 2- Download a sandbox project zip

SANDBOX_URL=$(get_sandbox_url)
echo "$SANDBOX_URL"
Expand All @@ -159,7 +161,7 @@ if [ ! SANDBOX_VERSION==AP_VERSION ];then
echo "The downloaded sandbox version and the expected version do not match, something went wrong. Aborting."
cleanup
exit 1
fi
fi

mvn clean install -s ${MAVEN_SETTINGS} -DskipTests=true -T1C >> ${LOG_DIR}/maven.log
cd ../
Expand Down

0 comments on commit ad04ec7

Please sign in to comment.