Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67900

ERROR: Error fetching remote repo 'origin' when creating a new pipeline with changes to the parameters values if one parameter is PATH

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None

      When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below

      Started by user email
       Running as email
       Resume disabled by user, switching to high-performance, low-durability mode.
       Running on Jenkins in /var/lib/jenkins/workspace/Job
       Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
       Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
       Running in /var/lib/jenkins/workspace/Job/test
       [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
       /bin/git
       [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
       /bin/git
       The recommended git tool is: NONE
       using credential Jenkins_BitBucket_Credentails
       > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
       Fetching changes from the remote Git repository
       > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
       Fetching upstream changes from Repository_URL
       > /usr/bin/git --version # timeout=10
       > git --version # 'git version 2.32.0'
       using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
       > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
       ERROR: Error fetching remote repo 'origin'
       hudson.plugins.git.GitException: Failed to fetch from Repository_URL
       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
       at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
       at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
       at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
       at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
       at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.base/java.lang.Thread.run(Thread.java:829)
       Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
       stdout:
       stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
       error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
       fatal: could not read Password for 'https://User@bitbucket.org': terminal prompts disabled
      
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
       ... 11 more
       Stage "Build" skipped due to earlier failure(s)
       Stage "Deploy" skipped due to earlier failure(s)
       Stage "CDN Invalidation" skipped due to earlier failure(s)
       I will always say Hello again!
       Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
       ERROR: Error fetching remote repo 'origin'
       Finished: FAILURE
      

      Jenkins Pipeline 

      // def AWS_ROLE = ''
       // def getBuildUser()
      
      { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }
      
      def COLOR_MAP = [
       'SUCCESS': 'good',
       'FAILURE': 'danger',
       ]
       pipeline {
       environment
      
      { BUILD_USER = '' }
      
      agent \{ label 'Jenkins' }
       stages {
       stage('Setup parameters')
      
      { tools \\{nodejs "node"}
      
      steps {
       script { 
        properties([ 
          parameters([ 
            string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ),
            string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ),
            [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'],
            [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'],
            [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'],
            [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'],
            [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'],
            [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'],
            [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'],
            [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID'] 
            ]) 
          ]) 
        }
      }
       stage('Code Checkout'){
       steps {
       dir('test')
      
      { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
      
      }
       }
       stage('Build')
      
      { agent \\{ label 'worker' }
       tools \{nodejs "node"}
       steps {
       dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
       dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
       }
       }
       stage('Deploy') \{ agent { label 'worker' }
      
      steps {
       dir('test/build') {
       withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)
      
      { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }
      
      }
       }
       }
       stage('CDN Invalidation') {
       steps {
       withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)
      
      { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }
      
      }
       }
       }
       post {
       always
      
      { echo 'I will always say Hello again!' }
      
      success {
       slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
       }
       failure {
       slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
       }
       }
       }
      

      logs for jenkins 

       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
       Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
       Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
       No SCM configuration was found!
       Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
       No SCM configuration was found!
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
       Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
       at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
       Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
       Started Periodic background build discarder
       Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
       Finished Periodic background build discarder. 4 ms
       Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
       Started EC2 alive agents monitor
       Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
       Finished EC2 alive agents monitor. 0 ms
      

      in Jenkins 2.319.3

          [JENKINS-67900] ERROR: Error fetching remote repo 'origin' when creating a new pipeline with changes to the parameters values if one parameter is PATH

          faroug Abdalaziz created issue -
          faroug Abdalaziz made changes -
          Description Original: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below
          ```
          Started by user email
          Running as email
          Resume disabled by user, switching to high-performance, low-durability mode.
          Running on Jenkins in /var/lib/jenkins/workspace/Job
          Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
          Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
          Running in /var/lib/jenkins/workspace/Job/test
          [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
          /bin/git
          [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
          /bin/git
          The recommended git tool is: NONE
          using credential Jenkins_BitBucket_Credentails
          > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
          Fetching changes from the remote Git repository
          > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
          Fetching upstream changes from Repository_URL
          > /usr/bin/git --version # timeout=10
          > git --version # 'git version 2.32.0'
          using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
          > /usr/bin/git fetch --tags --force --progress -- Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from Repository_URL
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
          at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
          Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress -- Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
          error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
          fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
          ... 11 more
          Stage "Build" skipped due to earlier failure(s)
          Stage "Deploy" skipped due to earlier failure(s)
          Stage "CDN Invalidation" skipped due to earlier failure(s)
          I will always say Hello again!
          Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
          ERROR: Error fetching remote repo 'origin'
          Finished: FAILURE```
          Jenkins Pipeline 
          ```
          // def AWS_ROLE = ''
          // def getBuildUser() {
          // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId()
          // }
          def COLOR_MAP = [
          'SUCCESS': 'good',
          'FAILURE': 'danger',
          ]
          pipeline {
          environment {
          BUILD_USER = ''
          }
          agent \{ label 'Jenkins' }
          stages {
          stage('Setup parameters') {
          tools \{nodejs "node"}
          steps {
          script {
          properties([
          parameters([
          string(
          defaultValue: 'master',
          description: 'Specify the Brnach Name',
          name: 'BRANCH_NAME',
          trim: true
          ),
          string(
          defaultValue: 'slackId',
          description: 'Specify the Slack Channel ID or User slack ID',
          name: 'SLACK_CHANNEL',
          trim: true
          ),
          [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'],
          [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'],
          [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'],
          [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'],
          [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'],
          [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'],
          [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'],
          [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID']
          ])
          ])
          }
          }
          }
          stage('Code Checkout'){
          steps {
          dir('test') {
          git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY
          }
          }
          }
          stage('Build') {
          agent \{ label 'worker' }
          tools \{nodejs "node"}
          steps {
          dir('test') {
          git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY
          }
          dir('test') {
          sh 'npm install --prefer-offline --no-audit --progress=false'
          sh 'npm run test'
          sh 'npm run build-dev'
          }
          }
          }
          stage('Deploy') {
          agent \{ label 'worker' }
          steps {
          dir('test/build') {
          withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account) {
          s3Upload acl: 'Private',
          bucket: params.BUCKET,
          cacheControl: '',
          excludePathPattern: '',
          includePathPattern: '**',
          metadatas: [''],
          redirectLocation: '',
          sseAlgorithm: '',
          tags: '',
          workingDir: '',
          path : params.PATH
          }
          }
          }
          }
          stage('CDN Invalidation') {
          steps {
          withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account) {
          cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true)
          }
          }
          }
          }
          post {
          always {
          echo 'I will always say Hello again!'
          }
          success {
          slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
          }
          failure {
          slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
          }
          }
          }```
          logs for jenkins 
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
          Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
          Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
          No SCM configuration was found!
          Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
          No SCM configuration was found!
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
          Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
          at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
          Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
          Started Periodic background build discarder
          Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
          Finished Periodic background build discarder. 4 ms
          Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
          Started EC2 alive agents monitor
          Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
          Finished EC2 alive agents monitor. 0 ms


          in Jenkins 2.319.3
          New: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below


          {code:java}
          Started by user email
           Running as email
           Resume disabled by user, switching to high-performance, low-durability mode.
           Running on Jenkins in /var/lib/jenkins/workspace/Job
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Running in /var/lib/jenkins/workspace/Job/test
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
           /bin/git
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
           /bin/git
           The recommended git tool is: NONE
           using credential Jenkins_BitBucket_Credentails
           > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
           Fetching changes from the remote Git repository
           > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
           Fetching upstream changes from Repository_URL
           > /usr/bin/git --version # timeout=10
           > git --version # 'git version 2.32.0'
           using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
           > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from Repository_URL
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
           Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
           error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
           fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
           ... 11 more
           Stage "Build" skipped due to earlier failure(s)
           Stage "Deploy" skipped due to earlier failure(s)
           Stage "CDN Invalidation" skipped due to earlier failure(s)
           I will always say Hello again!
           Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
           ERROR: Error fetching remote repo 'origin'
           Finished: FAILURE
          {code}

           Jenkins Pipeline 
           ```
           // def AWS_ROLE = ''
           // def getBuildUser()

          { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }

          def COLOR_MAP = [
           'SUCCESS': 'good',
           'FAILURE': 'danger',
           ]
           pipeline {
           environment

          { BUILD_USER = '' }

          agent \{ label 'Jenkins' }
           stages {
           stage('Setup parameters')

          { tools \\{nodejs "node"}

          steps {
           script

          { properties([ parameters([ string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ), string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ), [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'], [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'], [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'], [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'], [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID'] ]) ]) }

          }
           }
           stage('Code Checkout'){
           steps {
           dir('test')

          { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }

          }
           }
           stage('Build')

          { agent \\{ label 'worker' }
           tools \{nodejs "node"}
           steps {
           dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
           dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
           }
           }
           stage('Deploy') \{ agent { label 'worker' }

          steps {
           dir('test/build') {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }

          }
           }
           }
           stage('CDN Invalidation') {
           steps {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }

          }
           }
           }
           post {
           always

          { echo 'I will always say Hello again!' }

          success {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           failure {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           }
           }```
           logs for jenkins 
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started Periodic background build discarder
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished Periodic background build discarder. 4 ms
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started EC2 alive agents monitor
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished EC2 alive agents monitor. 0 ms

          in Jenkins 2.319.3
          faroug Abdalaziz made changes -
          Description Original: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below


          {code:java}
          Started by user email
           Running as email
           Resume disabled by user, switching to high-performance, low-durability mode.
           Running on Jenkins in /var/lib/jenkins/workspace/Job
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Running in /var/lib/jenkins/workspace/Job/test
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
           /bin/git
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
           /bin/git
           The recommended git tool is: NONE
           using credential Jenkins_BitBucket_Credentails
           > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
           Fetching changes from the remote Git repository
           > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
           Fetching upstream changes from Repository_URL
           > /usr/bin/git --version # timeout=10
           > git --version # 'git version 2.32.0'
           using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
           > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from Repository_URL
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
           Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
           error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
           fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
           ... 11 more
           Stage "Build" skipped due to earlier failure(s)
           Stage "Deploy" skipped due to earlier failure(s)
           Stage "CDN Invalidation" skipped due to earlier failure(s)
           I will always say Hello again!
           Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
           ERROR: Error fetching remote repo 'origin'
           Finished: FAILURE
          {code}

           Jenkins Pipeline 
           ```
           // def AWS_ROLE = ''
           // def getBuildUser()

          { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }

          def COLOR_MAP = [
           'SUCCESS': 'good',
           'FAILURE': 'danger',
           ]
           pipeline {
           environment

          { BUILD_USER = '' }

          agent \{ label 'Jenkins' }
           stages {
           stage('Setup parameters')

          { tools \\{nodejs "node"}

          steps {
           script

          { properties([ parameters([ string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ), string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ), [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'], [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'], [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'], [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'], [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID'] ]) ]) }

          }
           }
           stage('Code Checkout'){
           steps {
           dir('test')

          { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }

          }
           }
           stage('Build')

          { agent \\{ label 'worker' }
           tools \{nodejs "node"}
           steps {
           dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
           dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
           }
           }
           stage('Deploy') \{ agent { label 'worker' }

          steps {
           dir('test/build') {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }

          }
           }
           }
           stage('CDN Invalidation') {
           steps {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }

          }
           }
           }
           post {
           always

          { echo 'I will always say Hello again!' }

          success {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           failure {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           }
           }```
           logs for jenkins 
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started Periodic background build discarder
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished Periodic background build discarder. 4 ms
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started EC2 alive agents monitor
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished EC2 alive agents monitor. 0 ms

          in Jenkins 2.319.3
          New: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below


          {code:java}
          Started by user email
           Running as email
           Resume disabled by user, switching to high-performance, low-durability mode.
           Running on Jenkins in /var/lib/jenkins/workspace/Job
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Running in /var/lib/jenkins/workspace/Job/test
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
           /bin/git
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
           /bin/git
           The recommended git tool is: NONE
           using credential Jenkins_BitBucket_Credentails
           > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
           Fetching changes from the remote Git repository
           > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
           Fetching upstream changes from Repository_URL
           > /usr/bin/git --version # timeout=10
           > git --version # 'git version 2.32.0'
           using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
           > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from Repository_URL
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
           Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
           error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
           fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
           ... 11 more
           Stage "Build" skipped due to earlier failure(s)
           Stage "Deploy" skipped due to earlier failure(s)
           Stage "CDN Invalidation" skipped due to earlier failure(s)
           I will always say Hello again!
           Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
           ERROR: Error fetching remote repo 'origin'
           Finished: FAILURE
          {code}

           Jenkins Pipeline 
          {code}
          // def AWS_ROLE = ''
           // def getBuildUser()

          { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }

          def COLOR_MAP = [
           'SUCCESS': 'good',
           'FAILURE': 'danger',
           ]
           pipeline {
           environment

          { BUILD_USER = '' }

          agent \{ label 'Jenkins' }
           stages {
           stage('Setup parameters')

          { tools \\{nodejs "node"}

          steps {
           script

          { properties([ parameters([ string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ), string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ), [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'], [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'], [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'], [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'], [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID'] ]) ]) }

          }
           }
           stage('Code Checkout'){
           steps {
           dir('test')

          { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }

          }
           }
           stage('Build')

          { agent \\{ label 'worker' }
           tools \{nodejs "node"}
           steps {
           dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
           dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
           }
           }
           stage('Deploy') \{ agent { label 'worker' }

          steps {
           dir('test/build') {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }

          }
           }
           }
           stage('CDN Invalidation') {
           steps {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }

          }
           }
           }
           post {
           always

          { echo 'I will always say Hello again!' }

          success {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           failure {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           }
           }
          {code}
           logs for jenkins 
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started Periodic background build discarder
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished Periodic background build discarder. 4 ms
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started EC2 alive agents monitor
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished EC2 alive agents monitor. 0 ms

          in Jenkins 2.319.3
          faroug Abdalaziz made changes -
          Description Original: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below


          {code:java}
          Started by user email
           Running as email
           Resume disabled by user, switching to high-performance, low-durability mode.
           Running on Jenkins in /var/lib/jenkins/workspace/Job
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Running in /var/lib/jenkins/workspace/Job/test
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
           /bin/git
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
           /bin/git
           The recommended git tool is: NONE
           using credential Jenkins_BitBucket_Credentails
           > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
           Fetching changes from the remote Git repository
           > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
           Fetching upstream changes from Repository_URL
           > /usr/bin/git --version # timeout=10
           > git --version # 'git version 2.32.0'
           using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
           > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from Repository_URL
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
           Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
           error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
           fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
           ... 11 more
           Stage "Build" skipped due to earlier failure(s)
           Stage "Deploy" skipped due to earlier failure(s)
           Stage "CDN Invalidation" skipped due to earlier failure(s)
           I will always say Hello again!
           Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
           ERROR: Error fetching remote repo 'origin'
           Finished: FAILURE
          {code}

           Jenkins Pipeline 
          {code}
          // def AWS_ROLE = ''
           // def getBuildUser()

          { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }

          def COLOR_MAP = [
           'SUCCESS': 'good',
           'FAILURE': 'danger',
           ]
           pipeline {
           environment

          { BUILD_USER = '' }

          agent \{ label 'Jenkins' }
           stages {
           stage('Setup parameters')

          { tools \\{nodejs "node"}

          steps {
           script

          { properties([ parameters([ string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ), string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ), [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'], [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'], [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'], [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'], [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'], [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID'] ]) ]) }

          }
           }
           stage('Code Checkout'){
           steps {
           dir('test')

          { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }

          }
           }
           stage('Build')

          { agent \\{ label 'worker' }
           tools \{nodejs "node"}
           steps {
           dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
           dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
           }
           }
           stage('Deploy') \{ agent { label 'worker' }

          steps {
           dir('test/build') {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }

          }
           }
           }
           stage('CDN Invalidation') {
           steps {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }

          }
           }
           }
           post {
           always

          { echo 'I will always say Hello again!' }

          success {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           failure {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           }
           }
          {code}
           logs for jenkins 
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started Periodic background build discarder
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished Periodic background build discarder. 4 ms
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started EC2 alive agents monitor
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished EC2 alive agents monitor. 0 ms

          in Jenkins 2.319.3
          New: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below


          {code:java}
          Started by user email
           Running as email
           Resume disabled by user, switching to high-performance, low-durability mode.
           Running on Jenkins in /var/lib/jenkins/workspace/Job
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Running in /var/lib/jenkins/workspace/Job/test
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
           /bin/git
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
           /bin/git
           The recommended git tool is: NONE
           using credential Jenkins_BitBucket_Credentails
           > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
           Fetching changes from the remote Git repository
           > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
           Fetching upstream changes from Repository_URL
           > /usr/bin/git --version # timeout=10
           > git --version # 'git version 2.32.0'
           using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
           > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from Repository_URL
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
           Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
           error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
           fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
           ... 11 more
           Stage "Build" skipped due to earlier failure(s)
           Stage "Deploy" skipped due to earlier failure(s)
           Stage "CDN Invalidation" skipped due to earlier failure(s)
           I will always say Hello again!
           Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
           ERROR: Error fetching remote repo 'origin'
           Finished: FAILURE
          {code}

           Jenkins Pipeline 
          {code}
          // def AWS_ROLE = ''
           // def getBuildUser()

          { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }

          def COLOR_MAP = [
           'SUCCESS': 'good',
           'FAILURE': 'danger',
           ]
           pipeline {
           environment

          { BUILD_USER = '' }

          agent \{ label 'Jenkins' }
           stages {
           stage('Setup parameters')

          { tools \\{nodejs "node"}

          steps {
           script {
            properties([
              parameters([
                string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ),
                string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ),
                [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'],
                [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'],
                [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'],
                [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'],
                [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID']
                ])
              ])
            }
          }
           stage('Code Checkout'){
           steps {
           dir('test')

          { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }

          }
           }
           stage('Build')

          { agent \\{ label 'worker' }
           tools \{nodejs "node"}
           steps {
           dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
           dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
           }
           }
           stage('Deploy') \{ agent { label 'worker' }

          steps {
           dir('test/build') {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }

          }
           }
           }
           stage('CDN Invalidation') {
           steps {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }

          }
           }
           }
           post {
           always

          { echo 'I will always say Hello again!' }

          success {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           failure {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           }
           }
          {code}
           logs for jenkins 
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started Periodic background build discarder
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished Periodic background build discarder. 4 ms
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started EC2 alive agents monitor
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished EC2 alive agents monitor. 0 ms

          in Jenkins 2.319.3
          faroug Abdalaziz made changes -
          Description Original: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below


          {code:java}
          Started by user email
           Running as email
           Resume disabled by user, switching to high-performance, low-durability mode.
           Running on Jenkins in /var/lib/jenkins/workspace/Job
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Running in /var/lib/jenkins/workspace/Job/test
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
           /bin/git
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
           /bin/git
           The recommended git tool is: NONE
           using credential Jenkins_BitBucket_Credentails
           > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
           Fetching changes from the remote Git repository
           > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
           Fetching upstream changes from Repository_URL
           > /usr/bin/git --version # timeout=10
           > git --version # 'git version 2.32.0'
           using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
           > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from Repository_URL
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
           Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
           error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
           fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
           ... 11 more
           Stage "Build" skipped due to earlier failure(s)
           Stage "Deploy" skipped due to earlier failure(s)
           Stage "CDN Invalidation" skipped due to earlier failure(s)
           I will always say Hello again!
           Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
           ERROR: Error fetching remote repo 'origin'
           Finished: FAILURE
          {code}

           Jenkins Pipeline 
          {code}
          // def AWS_ROLE = ''
           // def getBuildUser()

          { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }

          def COLOR_MAP = [
           'SUCCESS': 'good',
           'FAILURE': 'danger',
           ]
           pipeline {
           environment

          { BUILD_USER = '' }

          agent \{ label 'Jenkins' }
           stages {
           stage('Setup parameters')

          { tools \\{nodejs "node"}

          steps {
           script {
            properties([
              parameters([
                string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ),
                string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ),
                [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'],
                [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'],
                [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'],
                [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'],
                [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID']
                ])
              ])
            }
          }
           stage('Code Checkout'){
           steps {
           dir('test')

          { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }

          }
           }
           stage('Build')

          { agent \\{ label 'worker' }
           tools \{nodejs "node"}
           steps {
           dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
           dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
           }
           }
           stage('Deploy') \{ agent { label 'worker' }

          steps {
           dir('test/build') {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }

          }
           }
           }
           stage('CDN Invalidation') {
           steps {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }

          }
           }
           }
           post {
           always

          { echo 'I will always say Hello again!' }

          success {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           failure {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           }
           }
          {code}
           logs for jenkins 
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started Periodic background build discarder
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished Periodic background build discarder. 4 ms
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started EC2 alive agents monitor
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished EC2 alive agents monitor. 0 ms

          in Jenkins 2.319.3
          New: When creating a new build using the same Jenkins pipeline with changes to values of some parameters that are not related to the repository parameters. the job failed with below


          {code:java}
          Started by user email
           Running as email
           Resume disabled by user, switching to high-performance, low-durability mode.
           Running on Jenkins in /var/lib/jenkins/workspace/Job
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Installer "Run Shell Command" cannot be used to install "node" on the node "Jenkins"
           Running in /var/lib/jenkins/workspace/Job/test
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson5882823506668773524.sh
           /bin/git
           [Default] $ sh -e /var/lib/jenkins/tools/hudson.plugins.git.GitTool/Default/hudson11309819648014258385.sh
           /bin/git
           The recommended git tool is: NONE
           using credential Jenkins_BitBucket_Credentails
           > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Job/test/.git # timeout=10
           Fetching changes from the remote Git repository
           > /usr/bin/git config remote.origin.url Repository_URL # timeout=10
           Fetching upstream changes from Repository_URL
           > /usr/bin/git --version # timeout=10
           > git --version # 'git version 2.32.0'
           using GIT_ASKPASS to set credentials Jenkins BitBucket Credentails
           > /usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/* # timeout=10
           ERROR: Error fetching remote repo 'origin'
           hudson.plugins.git.GitException: Failed to fetch from Repository_URL
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
           at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
           at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
           at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
           Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress – Repository_URL +refs/heads/*:refs/remotes/origin/*" returned status code 128:
           stdout:
           stderr: /var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh: line 4: cat: command not found
           error: unable to read askpass response from '/var/lib/jenkins/workspace/Job/test@tmp/jenkins-gitclient-pass8019568652889463923.sh'
           fatal: could not read Password for 'https://User@bitbucket.org&#39;: terminal prompts disabled

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
           at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
           at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
           ... 11 more
           Stage "Build" skipped due to earlier failure(s)
           Stage "Deploy" skipped due to earlier failure(s)
           Stage "CDN Invalidation" skipped due to earlier failure(s)
           I will always say Hello again!
           Slack Send Pipeline step running, values are - baseUrl: <empty>, teamDomain: domainName, channel: U0261CCPEQG, color: danger, botUser: false, tokenCredentialId: Jenkins_Slack_Credentials, notifyCommitters: false, iconEmoji: <empty>, username: <empty>, timestamp: <empty>
           ERROR: Error fetching remote repo 'origin'
           Finished: FAILURE
          {code}

           Jenkins Pipeline 
          {code}
          // def AWS_ROLE = ''
           // def getBuildUser()

          { // return currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId() // }

          def COLOR_MAP = [
           'SUCCESS': 'good',
           'FAILURE': 'danger',
           ]
           pipeline {
           environment

          { BUILD_USER = '' }

          agent \{ label 'Jenkins' }
           stages {
           stage('Setup parameters')

          { tools \\{nodejs "node"}

          steps {
           script {
            properties([
              parameters([
                string( defaultValue: 'master', description: 'Specify the Brnach Name', name: 'BRANCH_NAME', trim: true ),
                string( defaultValue: 'slackId', description: 'Specify the Slack Channel ID or User slack ID', name: 'SLACK_CHANNEL', trim: true ),
                [$class: 'WHideParameterDefinition', defaultValue: 'ValuesChanged', description: 'Specify the Bucket Name', name: 'BUCKET'],
                [$class: 'WHideParameterDefinition', defaultValue: 'ROLE', description: 'Specify the RoleName', name: 'ROLE'],
                [$class: 'WHideParameterDefinition', defaultValue: 'REPOSITORY', description: 'Specify the REPOSITORY Name', name: 'REPOSITORY'],
                [$class: 'WHideParameterDefinition', defaultValue: 'http-api', description: 'Specify the path', name: 'PATH'],
                [$class: 'WHideParameterDefinition', defaultValue: 'Region', description: 'Specify the Region', name: 'Region'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Distribution Id', name: 'someDistributionId'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify the Account number', name: 'Account'],
                [$class: 'WHideParameterDefinition', defaultValue: 'xxxxxxxxxx', description: 'Specify The REACT_APP_GOOGLE_CLIENT_ID', name: 'REACT_APP_GOOGLE_CLIENT_ID']
                ])
              ])
            }
          }
           stage('Code Checkout'){
           steps {
           dir('test')

          { git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }

          }
           }
           stage('Build')

          { agent \\{ label 'worker' }
           tools \{nodejs "node"}
           steps {
           dir('test') \{ git branch: params.BRANCH_NAME, credentialsId: 'JenkinsBitBucketCredentails', url: params.REPOSITORY }
           dir('test') \{ sh 'npm install --prefer-offline --no-audit --progress=false' sh 'npm run test' sh 'npm run build-dev' }
           }
           }
           stage('Deploy') \{ agent { label 'worker' }

          steps {
           dir('test/build') {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { s3Upload acl: 'Private', bucket: params.BUCKET, cacheControl: '', excludePathPattern: '', includePathPattern: '**', metadatas: [''], redirectLocation: '', sseAlgorithm: '', tags: '', workingDir: '', path : params.PATH }

          }
           }
           }
           stage('CDN Invalidation') {
           steps {
           withAWS(credentials: 'JenkinsAWSCredentails', region: params.Region, role: params.ROLE, roleAccount: params.Account)

          { cfInvalidate(distribution: params.someDistributionId, paths:['/*'], waitForCompletion: true) }

          }
           }
           }
           post {
           always

          { echo 'I will always say Hello again!' }

          success {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           failure {
           slackSend channel: params.SLACK_CHANNEL, color: COLOR_MAP[currentBuild.currentResult], message: "Build ${currentBuild.currentResult}: ${env.JOB_NAME} #${env.BUILD_NUMBER} \n More info at: ${env.BUILD_URL}"
           }
           }
           }
          {code}
           logs for jenkins 
          {code}
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:19:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:19:53 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:20:37 AM WARNING com.cloudbees.jenkins.plugins.BitbucketJobProbe triggerMatchingJobs
           No SCM configuration was found!
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           java.lang.SecurityException: class "Log4jHotPatch"'s signer information does not match signer information of other classes in the same package
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:431)
           Feb 28, 2022 7:22:02 AM SEVERE io.jenkins.plugins.bitbucketpushandpullrequest.common.BitBucketPPRUtils$1 print
           at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started Periodic background build discarder
           Feb 28, 2022 7:22:25 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished Periodic background build discarder. 4 ms
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Started EC2 alive agents monitor
           Feb 28, 2022 7:24:09 AM INFO hudson.model.AsyncPeriodicWork lambda$doRun$1
           Finished EC2 alive agents monitor. 0 ms
          {code}
          in Jenkins 2.319.3
          faroug Abdalaziz made changes -
          Attachment New: Screen Shot 2022-02-28 at 2.50.17 PM.png [ 57355 ]
          faroug Abdalaziz made changes -
          Environment Original: Jenkins: 2.319.3
          Installed by rpm
          ---
          Browser:
          Firefox 97.0.1 (64-bit)
          Chrome Version 98.0.4758.109 (Official Build) (x86_64)
          ---
          OS: Linux - 4.14.262-200.489.amzn2.x86_64
          NAME="Amazon Linux"
          VERSION="2"
          ID="amzn"
          ID_LIKE="centos rhel fedora"
          VERSION_ID="2"
          PRETTY_NAME="Amazon Linux 2"
          ANSI_COLOR="0;33"
          CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
          HOME_URL="https://amazonlinux.com/"
          ---
          Proxy: nginx version: nginx/1.20.0
          ---
          ace-editor:1.1
          ant:1.13
          antisamy-markup-formatter:2.7
          apache-httpcomponents-client-4-api:4.5.13-1.0
          authentication-tokens:1.4
          authorize-project:1.4.0
          aws-credentials:189.v3551d5642995
          aws-java-sdk:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-cloudformation:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-codebuild:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ec2:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ecr:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ecs:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-elasticbeanstalk:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-iam:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-logs:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-minimal:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ssm:1.12.163-315.v2b_716ec8e4df
          bitbucket:223.vd12f2bca5430
          bitbucket-push-and-pull-request:2.8.1
          blueocean:1.25.2
          blueocean-autofavorite:1.2.5
          blueocean-bitbucket-pipeline:1.25.2
          blueocean-commons:1.25.2
          blueocean-config:1.25.2
          blueocean-core-js:1.25.2
          blueocean-dashboard:1.25.2
          blueocean-display-url:2.4.1
          blueocean-events:1.25.2
          blueocean-executor-info:1.25.2
          blueocean-git-pipeline:1.25.2
          blueocean-github-pipeline:1.25.2
          blueocean-i18n:1.25.2
          blueocean-jira:1.25.2
          blueocean-jwt:1.25.2
          blueocean-personalization:1.25.2
          blueocean-pipeline-api-impl:1.25.2
          blueocean-pipeline-editor:1.25.2
          blueocean-pipeline-scm-api:1.25.2
          blueocean-rest:1.25.2
          blueocean-rest-impl:1.25.2
          blueocean-web:1.25.2
          bootstrap4-api:4.6.0-3
          bootstrap5-api:5.1.3-6
          bouncycastle-api:2.25
          branch-api:2.7.0
          build-timeout:1.20
          caffeine-api:2.9.2-29.v717aac953ff3
          checks-api:1.7.2
          cloudbees-bitbucket-branch-source:757.vddedc5f2589a_
          cloudbees-folder:6.708.ve61636eb_65a_5
          codedeploy:1.23
          command-launcher:1.6
          config-file-provider:3.9.0
          copyartifact:1.46.2
          credentials:1074.v60e6c29b_b_44b_
          credentials-binding:1.27.1
          dashboard-view:2.18
          display-url-api:2.3.5
          durable-task:493.v195aefbb0ff2
          ec2:1.67
          echarts-api:5.3.0-2
          email-ext:2.87
          favorite:2.4.0
          font-awesome-api:6.0.0-1
          git:4.10.3
          git-client:3.11.0
          git-server:1.10
          github:1.34.2
          github-api:1.301-378.v9807bd746da5
          github-branch-source:2.11.4
          gradle:1.38
          handlebars:3.0.8
          handy-uri-templates-2-api:2.1.8-1.0
          hidden-parameter:0.0.4
          htmlpublisher:1.29
          jackson2-api:2.13.1-246.va8a9f3eaf46a
          javadoc:217.v905b_86277a_2a_
          javax-activation-api:1.2.0-2
          javax-mail-api:1.6.2-5
          jaxb:2.3.0.1
          jdk-tool:1.5
          jenkins-design-language:1.25.2
          jira:3.7
          jjwt-api:0.11.2-9.c8b45b8bb173
          jnr-posix-api:3.1.7-2
          job-dsl:1.78.3
          jquery3-api:3.6.0-2
          jsch:0.1.55.2
          junit:1.54
          ldap:2.8
          lockable-resources:2.14
          mailer:408.vd726a_1130320
          matrix-auth:3.0.1
          matrix-project:1.20
          maven-plugin:3.16
          mercurial:2.16
          momentjs:1.1.1
          node-iterator-api:1.5.1
          nodejs:1.5.1
          okhttp-api:4.9.3-105.vb96869f8ac3a
          pam-auth:1.7
          pipeline-aws:1.43
          pipeline-build-step:2.16
          pipeline-github-lib:36.v4c01db_ca_ed16
          pipeline-graph-analysis:188.v3a01e7973f2c
          pipeline-input-step:446.vf27b_0b_83500e
          pipeline-milestone-step:100.v60a_03cd446e1
          pipeline-model-api:1.9.3
          pipeline-model-definition:1.9.3
          pipeline-model-extensions:1.9.3
          pipeline-rest-api:2.22
          pipeline-stage-step:291.vf0a8a7aeeb50
          pipeline-stage-tags-metadata:1.9.3
          pipeline-stage-view:2.22
          plain-credentials:1.8
          plugin-util-api:2.14.0
          popper-api:1.16.1-2
          popper2-api:2.11.2-1
          pubsub-light:1.16
          resource-disposer:0.17
          role-strategy:3.2.0
          scm-api:595.vd5a_df5eb_0e39
          script-security:1138.v8e727069a_025
          simple-theme-plugin:103.va_161d09c38c7
          slack:602.v0da_f7458945d
          snakeyaml-api:1.29.1
          sse-gateway:1.25
          ssh-credentials:1.19
          ssh-slaves:1.33.0
          sshd:3.1.0
          structs:308.v852b473a2b8c
          timestamper:1.17
          token-macro:280.v97a_82642793c
          trilead-api:1.0.13
          variant:1.4
          windows-slaves:1.8
          workflow-aggregator:2.6
          workflow-api:1138.v619fd5201b_2f
          workflow-basic-steps:2.24
          workflow-cps:2659.v52d3de6044d0
          workflow-cps-global-lib:564.ve62a_4eb_b_e039
          workflow-durable-task-step:1121.va_65b_d2701486
          workflow-job:1145.v7f2433caa07f
          workflow-multibranch:711.vdfef37cda_816
          workflow-scm-step:2.13
          workflow-step-api:622.vb_8e7c15b_c95a_
          workflow-support:813.vb_d7c3d2984a_0
          ws-cleanup:0.40
          New: Jenkins: 2.319.3
          Installed by rpm
          ---
          Browser:
          Firefox 97.0.1 (64-bit)
          Chrome Version 98.0.4758.109 (Official Build) (x86_64)
          ---
          JAVA: openjdk version "11.0.13" 2021-10-19 LTS
          OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS)
          OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8-LTS, mixed mode, sharing)
          ---

          ---
          OS: Linux - 4.14.262-200.489.amzn2.x86_64
          NAME="Amazon Linux"
          VERSION="2"
          ID="amzn"
          ID_LIKE="centos rhel fedora"
          VERSION_ID="2"
          PRETTY_NAME="Amazon Linux 2"
          ANSI_COLOR="0;33"
          CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
          HOME_URL="https://amazonlinux.com/"
          ---
          Proxy: nginx version: nginx/1.20.0
          ---
          ace-editor:1.1
          ant:1.13
          antisamy-markup-formatter:2.7
          apache-httpcomponents-client-4-api:4.5.13-1.0
          authentication-tokens:1.4
          authorize-project:1.4.0
          aws-credentials:189.v3551d5642995
          aws-java-sdk:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-cloudformation:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-codebuild:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ec2:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ecr:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ecs:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-elasticbeanstalk:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-iam:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-logs:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-minimal:1.12.163-315.v2b_716ec8e4df
          aws-java-sdk-ssm:1.12.163-315.v2b_716ec8e4df
          bitbucket:223.vd12f2bca5430
          bitbucket-push-and-pull-request:2.8.1
          blueocean:1.25.2
          blueocean-autofavorite:1.2.5
          blueocean-bitbucket-pipeline:1.25.2
          blueocean-commons:1.25.2
          blueocean-config:1.25.2
          blueocean-core-js:1.25.2
          blueocean-dashboard:1.25.2
          blueocean-display-url:2.4.1
          blueocean-events:1.25.2
          blueocean-executor-info:1.25.2
          blueocean-git-pipeline:1.25.2
          blueocean-github-pipeline:1.25.2
          blueocean-i18n:1.25.2
          blueocean-jira:1.25.2
          blueocean-jwt:1.25.2
          blueocean-personalization:1.25.2
          blueocean-pipeline-api-impl:1.25.2
          blueocean-pipeline-editor:1.25.2
          blueocean-pipeline-scm-api:1.25.2
          blueocean-rest:1.25.2
          blueocean-rest-impl:1.25.2
          blueocean-web:1.25.2
          bootstrap4-api:4.6.0-3
          bootstrap5-api:5.1.3-6
          bouncycastle-api:2.25
          branch-api:2.7.0
          build-timeout:1.20
          caffeine-api:2.9.2-29.v717aac953ff3
          checks-api:1.7.2
          cloudbees-bitbucket-branch-source:757.vddedc5f2589a_
          cloudbees-folder:6.708.ve61636eb_65a_5
          codedeploy:1.23
          command-launcher:1.6
          config-file-provider:3.9.0
          copyartifact:1.46.2
          credentials:1074.v60e6c29b_b_44b_
          credentials-binding:1.27.1
          dashboard-view:2.18
          display-url-api:2.3.5
          durable-task:493.v195aefbb0ff2
          ec2:1.67
          echarts-api:5.3.0-2
          email-ext:2.87
          favorite:2.4.0
          font-awesome-api:6.0.0-1
          git:4.10.3
          git-client:3.11.0
          git-server:1.10
          github:1.34.2
          github-api:1.301-378.v9807bd746da5
          github-branch-source:2.11.4
          gradle:1.38
          handlebars:3.0.8
          handy-uri-templates-2-api:2.1.8-1.0
          hidden-parameter:0.0.4
          htmlpublisher:1.29
          jackson2-api:2.13.1-246.va8a9f3eaf46a
          javadoc:217.v905b_86277a_2a_
          javax-activation-api:1.2.0-2
          javax-mail-api:1.6.2-5
          jaxb:2.3.0.1
          jdk-tool:1.5
          jenkins-design-language:1.25.2
          jira:3.7
          jjwt-api:0.11.2-9.c8b45b8bb173
          jnr-posix-api:3.1.7-2
          job-dsl:1.78.3
          jquery3-api:3.6.0-2
          jsch:0.1.55.2
          junit:1.54
          ldap:2.8
          lockable-resources:2.14
          mailer:408.vd726a_1130320
          matrix-auth:3.0.1
          matrix-project:1.20
          maven-plugin:3.16
          mercurial:2.16
          momentjs:1.1.1
          node-iterator-api:1.5.1
          nodejs:1.5.1
          okhttp-api:4.9.3-105.vb96869f8ac3a
          pam-auth:1.7
          pipeline-aws:1.43
          pipeline-build-step:2.16
          pipeline-github-lib:36.v4c01db_ca_ed16
          pipeline-graph-analysis:188.v3a01e7973f2c
          pipeline-input-step:446.vf27b_0b_83500e
          pipeline-milestone-step:100.v60a_03cd446e1
          pipeline-model-api:1.9.3
          pipeline-model-definition:1.9.3
          pipeline-model-extensions:1.9.3
          pipeline-rest-api:2.22
          pipeline-stage-step:291.vf0a8a7aeeb50
          pipeline-stage-tags-metadata:1.9.3
          pipeline-stage-view:2.22
          plain-credentials:1.8
          plugin-util-api:2.14.0
          popper-api:1.16.1-2
          popper2-api:2.11.2-1
          pubsub-light:1.16
          resource-disposer:0.17
          role-strategy:3.2.0
          scm-api:595.vd5a_df5eb_0e39
          script-security:1138.v8e727069a_025
          simple-theme-plugin:103.va_161d09c38c7
          slack:602.v0da_f7458945d
          snakeyaml-api:1.29.1
          sse-gateway:1.25
          ssh-credentials:1.19
          ssh-slaves:1.33.0
          sshd:3.1.0
          structs:308.v852b473a2b8c
          timestamper:1.17
          token-macro:280.v97a_82642793c
          trilead-api:1.0.13
          variant:1.4
          windows-slaves:1.8
          workflow-aggregator:2.6
          workflow-api:1138.v619fd5201b_2f
          workflow-basic-steps:2.24
          workflow-cps:2659.v52d3de6044d0
          workflow-cps-global-lib:564.ve62a_4eb_b_e039
          workflow-durable-task-step:1121.va_65b_d2701486
          workflow-job:1145.v7f2433caa07f
          workflow-multibranch:711.vdfef37cda_816
          workflow-scm-step:2.13
          workflow-step-api:622.vb_8e7c15b_c95a_
          workflow-support:813.vb_d7c3d2984a_0
          ws-cleanup:0.40
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Kalle Niemitalo made changes -
          Link New: This issue relates to JENKINS-67917 [ JENKINS-67917 ]
          Kalle Niemitalo made changes -
          Link New: This issue relates to JENKINS-67950 [ JENKINS-67950 ]
          Mark Waite made changes -
          Component/s Original: git-plugin [ 15543 ]

            Unassigned Unassigned
            faroug_aziez faroug Abdalaziz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: