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
environment:
- LOCAL_MAVEN=/var/www/maven
- BUILD_NUMBER=$CI_PIPELINE_NUMBER
volumes:
- /var/www/maven:/var/www/maven

View file

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