allegro / allegro/axion-release-plugin

CurrentVersion is returning old version

未關閉
#846 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Groovy
星號
641
分支
165
平均合併
49 分鐘
30 天內合併 PR
9

描述

The plugin was working just fine until this release. Now it returning the wrong version. Here is the output of `git tag`:

```
1.0.0
1.1.0
1.1.0-SNAPSHOT
1.2.0
1.2.0-SNAPSHOT
1.3.0
1.3.0-SNAPSHOT
1.4.0
1.4.0-SNAPSHOT
1.5.0
1.5.0-SNAPSHOT
1.6.0
1.6.0-SNAPSHOT
1.7.0-SNAPSHOT
```

When executing `gradle currentVersion` I would expect it to return `1.7.0-SNAPSHOT`. Instead it returns:

```
Project version: 1.6.0
```

This means when trying to do a release it says:

```
Working on released version 1.6.0, nothing to release
```

Relevant Gradle config:

```
plugins {
id("pl.allegro.tech.build.axion-release").version("1.18.13")
}

scmVersion {
useHighestVersion()
tag {
initialVersion({ _, _ -> "1.0.0" })
prefix = ""
}
nextVersion {
suffix.set("SNAPSHOT")
separator.set("-")
}
versionIncrementer("incrementMinor")
repository {
pushTagsOnly.set(true)
remote.set(System.getenv("CI_SERVER_URL") + "/" + System.getenv("CI_PROJECT_NAMESPACE") + "/" + System.getenv("CI_PROJECT_NAME") + ".git")
}
}
```

How can I go about troubleshooting this?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。