How I pass params from Jenkins to build.gradle?

前端 未结 3 1085
攒了一身酷
攒了一身酷 2020-12-22 00:44

I want to pass value to my build.gradle file through jenkins (build with params).

I have a String and I need to use this String params to make my release ?

3条回答
  •  执念已碎
    2020-12-22 01:13

    You can use the plugin This build is Parameterized and select string Parameter int that. In this you can define parameter name and value. Suppose PARA is your parameter name and value is its default value, then you can pass this value to build.gradle as $PARA. For more details see https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build.

提交回复
热议问题