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

Mulibranch pipeline job and mercurialSCMSource traits request

      Without passing trait (behaviour) installation for multibranch pipeline using mercurial there's no chance to run jobs (probably due to hg-cache requirement or something like this).

      I discovered

      mercurialInstallationSCMSourceTrait

      in jenkins job reference manual but this node I can not apply to the following configuration:

      multibranchPipelineJob('ci-per-branch'){
          displayName('CI')
          description('Continuous Integration Tests')
          triggers {
              periodic(10)
          }
      
          branchSources {
      
              branchSource {
                  source {
                      mercurialSCMSource {
                          id "ci-per-branch-id"
                          credentialsId "access-bot-id"
                          source "https://repolocation/"
                          // here should be installation option to make it work
                      }
                  }
              }
          }
      
          orphanedItemStrategy {
              discardOldItems {
                  numToKeep(0)
                  daysToKeep(0)
              }
          }
      }
      

      Unfortunately I have not found how to configure it by another ways.

          [JENKINS-51530] Mulibranch pipeline job and mercurialSCMSource traits request

          Nickolas Fox created issue -
          Nickolas Fox made changes -
          Description Original: Without passing trait (behaviour) installation for multibranch pipeline using mercurial there's no chance to run jobs (probably due to hg-cache requirement or something like this).

          I discovered {code}mercurialInstallationSCMSourceTrait{code} in jenkins job reference manual but this node I can not apply to the following configuration:
          {code}
          multibranchPipelineJob('ci-per-branch'){
              displayName('CI')
              description('Continuous Integration Tests')
              triggers {
                  periodic(10)
              }

              branchSources {

                  branchSource {
                      source {
                          mercurialSCMSource {
                              id "ci-per-branch-id"
                              credentialsId "bsw-bm-bot"
                              source "https://hg.iponweb.net/bidswitch/ui-ci/"
                              // here should be installation option to make it work
                          }
                      }
                  }
              }

              orphanedItemStrategy {
                  discardOldItems {
                      numToKeep(0)
                      daysToKeep(0)
                  }
              }
          }
          {code}

          Unfortunately I have not find how to configure it by another ways.
          New: Without passing trait (behaviour) installation for multibranch pipeline using mercurial there's no chance to run jobs (probably due to hg-cache requirement or something like this).

          I discovered {code}mercurialInstallationSCMSourceTrait{code} in jenkins job reference manual but this node I can not apply to the following configuration:
          {code}
          multibranchPipelineJob('ci-per-branch'){
              displayName('CI')
              description('Continuous Integration Tests')
              triggers {
                  periodic(10)
              }

              branchSources {

                  branchSource {
                      source {
                          mercurialSCMSource {
                              id "ci-per-branch-id"
                              credentialsId "access-bot-id"
                              source "https://repolocation/"
                              // here should be installation option to make it work
                          }
                      }
                  }
              }

              orphanedItemStrategy {
                  discardOldItems {
                      numToKeep(0)
                      daysToKeep(0)
                  }
              }
          }
          {code}

          Unfortunately I have not find how to configure it by another ways.
          Daniel Spilker made changes -
          Component/s New: mercurial-plugin [ 15502 ]
          Daniel Spilker made changes -
          Link New: This issue relates to JENKINS-26535 [ JENKINS-26535 ]
          Nickolas Fox made changes -
          Description Original: Without passing trait (behaviour) installation for multibranch pipeline using mercurial there's no chance to run jobs (probably due to hg-cache requirement or something like this).

          I discovered {code}mercurialInstallationSCMSourceTrait{code} in jenkins job reference manual but this node I can not apply to the following configuration:
          {code}
          multibranchPipelineJob('ci-per-branch'){
              displayName('CI')
              description('Continuous Integration Tests')
              triggers {
                  periodic(10)
              }

              branchSources {

                  branchSource {
                      source {
                          mercurialSCMSource {
                              id "ci-per-branch-id"
                              credentialsId "access-bot-id"
                              source "https://repolocation/"
                              // here should be installation option to make it work
                          }
                      }
                  }
              }

              orphanedItemStrategy {
                  discardOldItems {
                      numToKeep(0)
                      daysToKeep(0)
                  }
              }
          }
          {code}

          Unfortunately I have not find how to configure it by another ways.
          New: Without passing trait (behaviour) installation for multibranch pipeline using mercurial there's no chance to run jobs (probably due to hg-cache requirement or something like this).

          I discovered {code}mercurialInstallationSCMSourceTrait{code} in jenkins job reference manual but this node I can not apply to the following configuration:
          {code}
          multibranchPipelineJob('ci-per-branch'){
              displayName('CI')
              description('Continuous Integration Tests')
              triggers {
                  periodic(10)
              }

              branchSources {

                  branchSource {
                      source {
                          mercurialSCMSource {
                              id "ci-per-branch-id"
                              credentialsId "access-bot-id"
                              source "https://repolocation/"
                              // here should be installation option to make it work
                          }
                      }
                  }
              }

              orphanedItemStrategy {
                  discardOldItems {
                      numToKeep(0)
                      daysToKeep(0)
                  }
              }
          }
          {code}

          Unfortunately I have not found how to configure it by another ways.
          Daniel Spilker made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            jglick Jesse Glick
            nickolasfox Nickolas Fox
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: