mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
add deprecation warning (#4691)
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
This commit is contained in:
parent
9596f546c0
commit
0d6fb16034
@ -92,6 +92,9 @@ func checkIfStepActive(utils piperutils.FileUtils) error {
|
||||
runSteps = runConfigV1.RunSteps
|
||||
runStages = runConfigV1.RunStages
|
||||
} else {
|
||||
log.Entry().Warning("This step is using deprecated format of stage conditions which will be removed in Jan 2024. " +
|
||||
"To avoid pipeline breakage, please call checkIfStepActive command with --useV1 flag.",
|
||||
)
|
||||
runConfig := &config.RunConfig{StageConfigFile: stageConfigFile}
|
||||
err = runConfig.InitRunConfig(projectConfig, nil, nil, nil, nil, doublestar.Glob, checkStepActiveOptions.openFile)
|
||||
if err != nil {
|
||||
|
@ -81,6 +81,9 @@ func getDefaults() ([]map[string]string, error) {
|
||||
var yamlContent string
|
||||
|
||||
if !defaultsOptions.useV1 {
|
||||
log.Entry().Warning("This step is using deprecated format of stage conditions which will be removed in Jan 2024. " +
|
||||
"To avoid pipeline breakage, please call getDefaults command with --useV1 flag.",
|
||||
)
|
||||
var c config.Config
|
||||
c.ReadConfig(fc)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user