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

Warning: CredentialId "BITBUCKET_ACCESS_TOKEN" could not be found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None

      Additional Environment Info:

      • Running Jenkins directly on Windows Server
      • Agents run in Windows Docker Containers on the Windows Server
      • Originally installed via .msi, updates via the "Automatically Update" feature
      • Browser: Irrelevant. Not a browser issue.

      To Reproduce

      1. Using the environment as described
      2. Create a project scoped Bitbucket Access Token in your cloud repo with the following scopes
        1. Repositories: Read
        2. Pull Requests: Read
        3. Webhooks: Read and write
      3. Add the token to Jenkins Credential Manager as BB_TOKEN
      4. Create new multibranch pipeline job as follows
        1. Connection:
          1. Server: Bitbucket Cloud
          2. Credentials BB_TOKEN
          3. Owner: MYORG
          4. Repo: MYREPO
          5. Clone from: Primary Server
        2. Behaviors:
          1. Discover branches, pull requests from orgin, and tags (accept defaults)
        3. Git:
          1. Clean before checkout
        4. Build Strategies:
          1. Change requests (accept defaults)
          2. Named Branches (Exact name: main)
          3. Tags (accept defaults)
        5. Build Configuration
          1. Mode: by Jenkinsfile
          2. Script Path: Jenkinsfile{}{}
          3. Jenkinsfile contents (within the repo)
            pipeline {
                agent any    
                options { 
                    disableConcurrentBuilds abortPrevious: true 
                }    
                stages {
                    stage("test") {
                        steps { powershell "Write-Host 'test'" }        
                    }    
                }
            }
      1. Scan to find branches
      2. Trigger a build either pushing changes to a branch, or via a manual build

      While the repo is cloned and updated correctly, the following warning appears in the Jenkins output (emphasis mine).

      The recommended git tool is: NONE
      Warning: CredentialId "BITBUCKET_ACCESS_TOKEN" could not be found.
      Cloning the remote Git repository
      Cloning with configured refspecs honoured and with tags
      Cloning repository https://bitbucket.org/workspace/repo.git

       

            nfalco Nikolas Falco
            ryan_taylor Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: