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

Tag not being picked up in organization scan

XMLWordPrintable

      Have created a recent tag on a repository where pull requests have previously been built correctly:

      https://github.com/elifesciences/elife-xpub-formula/tree/0.1.0

      This is my configuration:

      <?xml version='1.1' encoding='UTF-8'?>
      <jenkins.branch.OrganizationFolder plugin="branch-api@2.4.0">
        <actions>
          <io.jenkins.blueocean.service.embedded.BlueOceanUrlAction_-DoNotShowPersistedBlueOceanUrlActions plugin="blueocean-rest-impl@1.14.0"/>
        </actions>
        <description></description>
        <displayName>Pull Requests (projects)</displayName>
        <properties>
          <jenkins.branch.OrganizationChildHealthMetricsProperty>
            <templates>
              <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric plugin="cloudbees-folder@6.8">
                <nonRecursive>false</nonRecursive>
              </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric>
            </templates>
          </jenkins.branch.OrganizationChildHealthMetricsProperty>
          <jenkins.branch.OrganizationChildOrphanedItemsProperty>
            <strategy class="jenkins.branch.OrganizationChildOrphanedItemsProperty$Inherit"/>
          </jenkins.branch.OrganizationChildOrphanedItemsProperty>
          <jenkins.branch.OrganizationChildTriggersProperty>
            <templates>
              <com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger plugin="cloudbees-folder@6.8">
                <spec>H H/4 * * *</spec>
                <interval>86400000</interval>
              </com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger>
            </templates>
          </jenkins.branch.OrganizationChildTriggersProperty>
          <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.8">
            <dockerLabel></dockerLabel>
            <registry plugin="docker-commons@1.14"/>
          </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig>
        </properties>
        <folderViews class="jenkins.branch.OrganizationFolderViewHolder">
          <owner reference="../.."/>
        </folderViews>
        <healthMetrics>
          <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric plugin="cloudbees-folder@6.8">
            <nonRecursive>false</nonRecursive>
          </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric>
        </healthMetrics>
        <icon class="jenkins.branch.MetadataActionFolderIcon">
          <owner class="jenkins.branch.OrganizationFolder" reference="../.."/>
        </icon>
        <orphanedItemStrategy class="com.cloudbees.hudson.plugins.folder.computed.DefaultOrphanedItemStrategy" plugin="cloudbees-folder@6.8">
          <pruneDeadBranches>true</pruneDeadBranches>
          <daysToKeep>1</daysToKeep>
          <numToKeep>-1</numToKeep>
        </orphanedItemStrategy>
        <triggers>
          <com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger plugin="cloudbees-folder@6.8">
            <spec>H/30 * * * *</spec>
            <interval>7200000</interval>
          </com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger>
        </triggers>
        <disabled>false</disabled>
        <navigators>
          <org.jenkinsci.plugins.github__branch__source.GitHubSCMNavigator plugin="github-branch-source@2.4.5">
            <repoOwner>elifesciences</repoOwner>
            <credentialsId>multibranch</credentialsId>
            <traits>
              <jenkins.scm.impl.trait.RegexSCMSourceFilterTrait plugin="scm-api@2.4.1">
                <regex>annotations|api-client-php|api-dummy|api-faker-php|api-problem-php|api-raml|api-sdk-php|api-validator-php|api-validator-python|bot-lax-adaptor|builder|bus-sdk-php|bus-sdk-python|cermine-docker|chemist|civinky-service|contentmine-docker|content-negotiator-php|data-pipeline|data-pipeline-bigquery-views|data-pipeline-ejp-to-json-converter|digest-parser|digests|econ-tools|ejp-csv-parser|elife-api|elife-article|elife-base-images|elife-bot|elife-crossref-xml-generation|elife-dashboard|elife-ga-metrics|elife-ink|elife-jenkins-workflow-libs|elife-metrics|elife-poa-xml-generation|elife-pubmed-xml-generation|elife-spectrum|elife-tools|elife-xpub|elife-xpub-deployment|error-pages|figure-viewer|hypothesis-dummy|jats-generator|journal|journal-cms|lax|logging-sdk-php|metypeset-docker|medium|observer|orcid-dummy|package-poa|pattern-library|patterns-php|peerscout|personalised-covers|ping-php|profiles|proofreader-php|proofreader-python|rds-example|recommendations|schematron-validator|sciencebeam|sciencebeam-alignment|sciencebeam-cluster-pipeline-poc|sciencebeam-grobid-training|sciencebeam-gym|sciencebeam-judge|sciencebeam-texture|sciencebeam-trainer-delft|sciencebeam-trainer-grobid|sciencebeam-trainer-grobid-tools|sciencebeam-utils|search|strip-coverletter|ubr|(.+-formula)</regex>
              </jenkins.scm.impl.trait.RegexSCMSourceFilterTrait>
              <org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>
                <strategyId>2</strategyId>
              </org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>
              <org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>
                <strategyId>2</strategyId>
                <trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>
              </org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>
              <org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>
              <jenkins.scm.impl.trait.WildcardSCMHeadFilterTrait plugin="scm-api@2.4.1">
                <includes>*</includes>
                <excludes>develop approved master</excludes>
              </jenkins.scm.impl.trait.WildcardSCMHeadFilterTrait>
              <org.jenkinsci.plugins.github__branch__source.SSHCheckoutTrait>
                <credentialsId>5186c1e8-ba8b-4d0a-8eff-74ddf6afc593</credentialsId>
              </org.jenkinsci.plugins.github__branch__source.SSHCheckoutTrait>
            </traits>
          </org.jenkinsci.plugins.github__branch__source.GitHubSCMNavigator>
        </navigators>
        <projectFactories>
          <org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProjectFactory plugin="workflow-multibranch@2.21">
            <scriptPath>Jenkinsfile</scriptPath>
          </org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProjectFactory>
        </projectFactories>
        <buildStrategies>
          <jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies@1.3.1">
            <ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
            <ignoreUntrustedChanges>false</ignoreUntrustedChanges>
          </jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
          <jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl plugin="basic-branch-build-strategies@1.3.1">
            <filters>
              <jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-RegexNameFilter>
                <regex>.*</regex>
                <caseSensitive>true</caseSensitive>
              </jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-RegexNameFilter>
            </filters>
          </jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl>
          <jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies@1.3.1">
            <atLeastMillis>-1</atLeastMillis>
            <atMostMillis>604800000</atMostMillis>
          </jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
        </buildStrategies>
      </jenkins.branch.OrganizationFolder> 

      However, every scan just says:

      Proposing elife-xpub-formula
      Examining elifesciences/elife-xpub-formula
      
        Checking pull-requests...
      
        Getting remote pull requests...
      
        0 pull requests were processed
      
        Checking tags...
      
        Getting remote tags...
      
        0 tags were processed
      
      Finished examining elifesciences/elife-xpub-formula
      
      

      I tried creating loggers for jenkins.branch.buildstrategies.basic or org.jenkinsci.plugins.github_branch_source but they remain empty while the scan runs so I'm not setting them up correctly. 

       

            Unassigned Unassigned
            giorgiosironi Giorgio Sironi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: