GitLab CI secret variables for Gradle publish

后端 未结 3 1766
臣服心动
臣服心动 2021-02-20 14:39

How to setup Gradle publish task user credentials with GitLab CI secret variables? I am using gradle maven publish plugin, and here is snippet from build.gradle

         


        
3条回答
  •  梦毁少年i
    2021-02-20 15:09

    you can use environment variables directly to set gradle properties, see full documentation here.

    in your case set artifactUser and artifactPass as env variables (best as secrect ones).

提交回复
热议问题