How to override specific gradle.properties properties via Jenkins?
Trying to achieve arithmetic posting with gradle. Currently, properties are taken from gradle.properties
located in the workspace.
name=sample project
group=com.sample.mico.cluster.service
version=1.0.1
description=sample cluster service
artifactory_username=admin
artifactory_password=*********
artifactory_url=http://xx.xx.xx.xxx:8080/artifactory
artifactory_repo=libs-release-local
internal_repo=http://1xx.xx.xx.xxx:8080/artifactory/libs-release
Here I need to override " artifactory_url
" " internal_repo
" properties and password via jenkins. Jenkins is currently using the "Artifactory plugin". Because it shouldn't be controlled by developers through commit.
But all the other details I have to take from build.gradle
, for example "name", "version".
Any way to achieve this?
+3
source to share
No one has answered this question yet
Check out similar questions: