Please note that the environment section is not able to expand environment variables

This commit is contained in:
Ell 2023-07-10 18:35:57 +02:00
parent 7ba311c2bf
commit 3975e5fe2a
2 changed files with 2 additions and 3 deletions

View file

@ -13,6 +13,5 @@ steps:
- ./gradlew publish --no-daemon - ./gradlew publish --no-daemon
environment: environment:
- LOCAL_MAVEN=/var/www/maven - LOCAL_MAVEN=/var/www/maven
- BUILD_NUMBER=$CI_PIPELINE_NUMBER
volumes: volumes:
- /var/www/maven:/var/www/maven - /var/www/maven:/var/www/maven

View file

@ -9,8 +9,8 @@ plugins {
jarJar.enable() jarJar.enable()
version = mod_version version = mod_version
if (System.getenv('BUILD_NUMBER') != null) { if (System.getenv('CI_PIPELINE_NUMBER') != null) {
version += "." + System.getenv('BUILD_NUMBER') version += "." + System.getenv('CI_PIPELINE_NUMBER')
} }
group = mod_group_id group = mod_group_id