1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

add semantic version, delete obsolete actual commit value (#4669)

This commit is contained in:
tiloKo
2023-11-13 14:57:46 +01:00
committed by GitHub
parent f499e92bf1
commit 2a98742f43

View File

@@ -154,6 +154,10 @@ func (br *buildWithRepository) start() error {
ValueID: "CVERS", ValueID: "CVERS",
Value: br.repo.Name + "." + br.repo.Version + "." + br.repo.SpLevel, Value: br.repo.Name + "." + br.repo.Version + "." + br.repo.SpLevel,
}, },
{
ValueID: "SEMANTIC_VERSION",
Value: br.repo.VersionYAML,
},
{ {
ValueID: "PACKAGE_TYPE", ValueID: "PACKAGE_TYPE",
Value: br.repo.PackageType, Value: br.repo.PackageType,
@@ -180,11 +184,6 @@ func (br *buildWithRepository) start() error {
Value: br.repo.PredecessorCommitID}) Value: br.repo.PredecessorCommitID})
} }
if br.repo.CommitID != "" { if br.repo.CommitID != "" {
// old value to be used until 2302 [can be deleted earliest with 2311]
valuesInput.Values = append(valuesInput.Values,
abapbuild.Value{ValueID: "ACTUAL_DELIVERY_COMMIT",
Value: br.repo.CommitID})
// new value used as of 2302
valuesInput.Values = append(valuesInput.Values, valuesInput.Values = append(valuesInput.Values,
abapbuild.Value{ValueID: "CURRENT_DELIVERY_COMMIT", abapbuild.Value{ValueID: "CURRENT_DELIVERY_COMMIT",
Value: br.repo.CommitID}) Value: br.repo.CommitID})