[JIRA] (JENKINS-58115) Tag not being picked up in organization scan

40 views
Skip to first unread message

g.sironi@elifesciences.org (JIRA)

unread,
Jun 20, 2019, 5:55:02 AM6/20/19
to jenkinsc...@googlegroups.com
Giorgio Sironi created an issue
 
Jenkins / Bug JENKINS-58115
Tag not being picked up in organization scan
Issue Type: Bug Bug
Assignee: Unassigned
Components: basic-branch-build-strategies-plugin, github-branch-source-plugin
Created: 2019-06-20 09:54
Environment: basic-branch-build-strategies 1.3.1
github-branch-source 2.4.5
Priority: Minor Minor
Reporter: Giorgio Sironi

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="branc...@2.4.0">
  <actions>
    <io.jenkins.blueocean.service.embedded.BlueOceanUrlAction_-DoNotShowPersistedBlueOceanUrlActions plugin="blueocean-rest-i...@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-mod...@1.3.8">
      <dockerLabel></dockerLabel>
      <registry plugin="docker-...@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-bra...@2.4.5">
      <repoOwner>elifesciences</repoOwner>
      <credentialsId>multibranch</credentialsId>
      <traits>
        <jenkins.scm.impl.trait.RegexSCMSourceFilterTrait plugin="scm...@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...@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-m...@2.21">
      <scriptPath>Jenkinsfile</scriptPath>
    </org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProjectFactory>
  </projectFactories>
  <buildStrategies>
    <jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-b...@1.3.1">
      <ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
      <ignoreUntrustedChanges>false</ignoreUntrustedChanges>
    </jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
    <jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl plugin="basic-branch-b...@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-b...@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. 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

g.sironi@elifesciences.org (JIRA)

unread,
Jun 20, 2019, 6:04:02 AM6/20/19
to jenkinsc...@googlegroups.com
Giorgio Sironi commented on Bug JENKINS-58115
 
Re: Tag not being picked up in organization scan

Pushing a new tag (all lightweight tags) now that the project already exists in the organization folder made it pick up both the old and new one:
https://github.com/elifesciences/elife-xpub-formula/tree/0.1.1

Didn't work:

[Thu Jun 20 09:13:33 BST 2019] Received Push event for tag 0.1.0 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifesciences.org:8080/github-webhook/ with timestamp Thu Jun 20 09:13:28 BST 2019
Found match against pull-requests-projects
Project pull-requests-projects does not have a corresponding sub-project
[Thu Jun 20 09:13:33 BST 2019] Finished processing Push event for tag 0.1.0 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifesciences.org:8080/github-webhook/ with timestamp Thu Jun 20 09:13:28 BST 2019. Matched 1.
[Thu Jun 20 09:13:33 BST 2019] Received Push event for tag 0.1.0 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifescien
ces.org:8080/github-webhook/ with timestamp Thu Jun 20 09:13:28 BST 2019
[Thu Jun 20 09:13:33 BST 2019] Finished processing Push event for tag 0.1.0 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifesciences.org:8080/github-webhook/ with timestamp Thu Jun 20 09:13:28 BST 2019. Matched 0.

Did work:

[Thu Jun 20 10:55:50 BST 2019] Received Push event for tag 0.1.1 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifesciences.org:8080/github-webhook/ with timestamp Thu Jun 20 10:55:45 BST 2019
Found match against pull-requests-projects
Project pull-requests-projects does not have a corresponding sub-project
[Thu Jun 20 10:55:51 BST 2019] Finished processing Push event for tag 0.1.1 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifesciences.org:8080/github-webhook/ with timestamp Thu Jun 20 10:55:45 BST 2019. Matched 1.
[Thu Jun 20 10:55:50 BST 2019] Received Push event for tag 0.1.1 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifesciences.org:8080/github-webhook/ with timestamp Thu Jun 20 10:55:45 BST 2019
[Thu Jun 20 10:55:50 BST 2019] Finished processing Push event for tag 0.1.1 in repository elifesciences/elife-xpub-formula CREATED event from 140.82.115.65 ⇒ http://alfred.elifesciences.org:8080/github-webhook/ with timestamp Thu Jun 20 10:55:45 BST 2019. Matched 0.

The scan still shows nothing:

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

bitwiseman@gmail.com (JIRA)

unread,
Feb 10, 2020, 7:40:05 PM2/10/20
to jenkinsc...@googlegroups.com

Giorgio Sironi
Please try this with Github-branch-source 2.6.0.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages