79739951

Date: 2025-08-19 13:20:15
Score: 1
Natty:
Report link

This is how I have done in Jenkins :

node {
    stage('Build') {
        def productType = params.productType

        currentBuild.displayName = "#${env.BUILD_NUMBER} - ${productType}"
        currentBuild.description = "Type: ${productType}"
    }
}

Hopefully this will help someone.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Smilebenco