Skip to content

Commit e1ff2e0

Browse files
Merge pull request #557 from DataDog/carlosroman/AGTMETRICS-206-fixing-publishing
Updated gitlab job to use a virtual Python env Co-authored-by: carlosroman <carlos.roman@datadoghq.com>
2 parents 6c27ca0 + 52032d9 commit e1ff2e0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ run_unit_tests:
2222
tags:
2323
- "runner:docker"
2424

25-
image: eclipse-temurin:8u442-b06-jdk
25+
image: &jdk-image eclipse-temurin:8u452-b09-jdk
2626

2727
script:
2828
- ./mvnw -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dtests.log_level=info -Djdk.attach.allowAttachSelf=true -B test
@@ -46,16 +46,20 @@ deploy_to_sonatype:
4646
tags:
4747
- "runner:docker"
4848

49-
image: eclipse-temurin:8u442-b06-jdk
49+
image: *jdk-image
5050

5151
script:
5252
# Ensure we don't print commands being run to the logs during credential
5353
# operations
5454
- set +x
5555

56-
- echo "Installing AWSCLI..."
56+
- echo "Setting up Python virtual environment..."
5757
- apt update
58-
- apt install -y python3 python3-pip
58+
- apt install -y python3 python3-pip python3-venv
59+
- python3 -m venv venv
60+
- source venv/bin/activate
61+
- python3 -m pip install --upgrade pip
62+
- echo "Installing AWSCLI..."
5963
- python3 -m pip install awscli
6064

6165
- echo "Fetching Sonatype user..."

0 commit comments

Comments
 (0)