有什么办法可以将Hg凭据传递给Gradle Release插件

时间:2018-08-14 16:43:34

标签: gradle mercurial gradle-plugin gradle-release-plugin

我正在尝试传递用户凭据,以便可以将更改提交/推回给Mercurial(Hg)。我知道他们为SVN而不是针对Hg提到了它。

我们还有什么办法可以实现汞的目标吗?

apply plugin: 'net.researchgate.release'



 release {
     failOnCommitNeeded = false
     failOnPublishNeeded = true
     failOnSnapshotDependencies = true
     failOnUnversionedFiles = false
     failOnUpdateNeeded = false
     revertOnFail = true
     preCommitText = ''
     preTagCommitMessage = 'Pre tag commit: Build '
     tagCommitMessage = 'SCM Build: '
     newVersionCommitMessage = 'Version Bumping: '
     tagTemplate = '${version}'
     versionPropertyFile = 'vendor.properties'
     versionProperties = []
     buildTasks = []
     versionPatterns = [
             /(\d+)([^\d]*$)/: { Matcher m, Project p -> m.replaceAll("${(m[0][1] as int) + 1}${m[0][2]}") }
     ]

  hg {
     username = "${System.env.bamboo_User}"
     password = "${System.env.bamboo_Password}"
    }
 }

0 个答案:

没有答案