currentBuild in Jenkins pipelines?currentBuild is a special variable in Jenkins pipelines that holds information about the current running build, such as its status, duration, and result.
currentBuild?You can access the build result status with currentBuild.result. It returns values like SUCCESS, FAILURE, or UNSTABLE.
currentBuild.duration represent?currentBuild.duration gives the time in milliseconds that the build has taken so far or took when finished.
currentBuild?Set currentBuild.result = 'FAILURE' in your pipeline script to mark the build as failed.
currentBuild be used to add a description to the build? How?Yes, you can add a description by setting currentBuild.description = 'Your description here'.
currentBuild provide in Jenkins?currentBuild holds details about the current build like status and duration.
currentBuild?The build result is stored in currentBuild.result and 'SUCCESS' means it passed.
currentBuild property gives the build duration?currentBuild.duration returns the build time in milliseconds.
currentBuild?Setting currentBuild.result to 'UNSTABLE' marks the build unstable.
currentBuild?currentBuild manages build info, not server control.
currentBuild is and list three useful properties you can access or modify.currentBuild to mark a Jenkins pipeline build as failed and add a description explaining why.