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

          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

          I guess "Log4jHotPatch" refers to https://github.com/corretto/hotpatch-for-apache-log4j2. But I don't see any "signer information" in https://updates.jenkins.io/download/plugins/bitbucket-push-and-pull-request/2.8.1/bitbucket-push-and-pull-request.hpi, so I don't understand what Java is comparing to what.

          Kalle Niemitalo added a comment - 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 I guess "Log4jHotPatch" refers to https://github.com/corretto/hotpatch-for-apache-log4j2 . But I don't see any "signer information" in https://updates.jenkins.io/download/plugins/bitbucket-push-and-pull-request/2.8.1/bitbucket-push-and-pull-request.hpi , so I don't understand what Java is comparing to what.

          Similar error at https://github.com/opensearch-project/opensearch-ci/issues/56, but no root cause analysis.

          Kalle Niemitalo added a comment - Similar error at https://github.com/opensearch-project/opensearch-ci/issues/56 , but no root cause analysis.
          faroug Abdalaziz made changes -
          Attachment New: Screen Shot 2022-02-28 at 2.50.17 PM.png [ 57355 ]

          What is wired is that the first time Works fine. and then it won't work.

          faroug Abdalaziz added a comment - What is wired is that the first time Works fine. and then it won't work.

          https://github.com/corretto/hotpatch-for-apache-log4j2/issues/49 mentions a time window "before the agent has attached to the JVM process". Did the successful build happen before or after Log4jHotPatch logged "Successfully loaded the agent"?

          Kalle Niemitalo added a comment - https://github.com/corretto/hotpatch-for-apache-log4j2/issues/49 mentions a time window "before the agent has attached to the JVM process". Did the successful build happen before or after Log4jHotPatch logged "Successfully loaded the agent" ?

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

              Created:
              Updated: