From Jenkins pipeline stage step doc:
An older, deprecated mode of this step did not take a block
argument...
In order to remove the warning just add a block argument:
stage('Stage Name') {
// some block
}
You can also generate a stage step using Snippet Generator.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…