This is some of the use cases where you may need to mask password while executing some script it in the Jenkins scripted pipeline.
Pipeline script pass all current build parameters to downstream jobs. The less and cumbersome way in which you can just pass ALL the pipeline parameters to the downstream job.

pipeline {
agent any
parameters {
choice(name: 'env', choices:['dev','qa','pre-prod','prod'] ,description: 'Choose environment to deploy')
choices(name: 'is_deploy',choices: ['yes','no'] description: 'Do you want to deploy')}
stages {
stage('Deploying App') {
steps {
echo "${params}"
script {
def current_build_params = currentBuild.rawBuild.getAction(ParametersAction).getParameters()
build job: 'downstream-pipeline-for-deployment', parameters: current_build_params
}
}
}
}
}

In some particular cases you may need to reset your jenkins build number . You can do this easily by different ways. The following methods shows how you can do this without restart your Jenkins server.
1 From jenkins script console
Go to Go to https://your-jenkins-server.com/script and copy paste following code snippet and execute it for your job. You can go to script console from Manage jenkins >> script console
Snyk’s unique combination of developer-first tooling and best in class security depth enables businesses to easily build security into their continuous development process. In this session, we are showing how you can integrate the SnykDB in your bitbucket pipeline integration. …
If we need to manage keys and certificates in Java, we need a keystore, which is simply a secure collection of aliased entries of keys and certificates. OpenJDK on CentOS stores it’s root CA’s in the file ‘/usr/lib/jvm/java-***-openjdk-1***.x86_64/jre/lib/security/cacerts‘. …