Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-2728

README.md files should be ignored during bundles computing

    XMLWordPrintable

    Details

      Description

      The following commit triggers the inclusion of marklogic bundle:
      https://github.com/nuxeo/nuxeo-core-storage-marklogic/commit/1ef1483571f6fbab6758ba719d9dfc056bbcdcc5

      In compute log, one can find the following:

      [16:24:01][getBundlesFromAddons] dir = nuxeo-core-storage-marklogic
      [16:24:01][getBundlesFromAddons] retrieving bundles from nuxeo-core-storage-marklogic
      [16:24:01][getBundlesFromAddon] [BEGIN]
      [16:24:01][getBundlesFromAddon] PRODUCT_VERSION=10.10
      [16:24:01][getBundlesFromAddon] HF_BEGIN_VERSION=00
      [16:24:01][getBundlesFromAddon] HF_END_VERSION=01
      [16:24:01][getBundlesFromAddon] pwd=/opt/jenkins/workspace/Deploy/IT-HF-pkg-build-nightly-1010/nuxeo/addons-core/nuxeo-core-storage-marklogic
      [16:24:01][getBundlesFromAddons] dir = nuxeo-core-storage-marklogic
      [16:24:01][getBundlesFromAddons] retrieving bundles from nuxeo-core-storage-marklogic
      [16:24:01][getBundlesFromAddon] [BEGIN]
      [16:24:01][getBundlesFromAddon] PRODUCT_VERSION=10.10
      [16:24:01][getBundlesFromAddon] HF_BEGIN_VERSION=00
      [16:24:01][getBundlesFromAddon] HF_END_VERSION=01
      [16:24:01][getBundlesFromAddon] pwd=/opt/jenkins/workspace/Deploy/IT-HF-pkg-build-nightly-1010/nuxeo/addons-core/nuxeo-core-storage-marklogic
      [16:24:01][getModifiedFilesFromRepo] [BEGIN]
      [16:24:01][getModifiedFilesFromRepo] PRODUCT_VERSION=10.10
      [16:24:01][getModifiedFilesFromRepo] HF_BEGIN_VERSION=00
      [16:24:01][getModifiedFilesFromRepo] HF_END_VERSION=01
      [16:24:01][getModifiedFilesFromRepo] PWD=/opt/jenkins/workspace/Deploy/IT-HF-pkg-build-nightly-1010/nuxeo/addons-core/nuxeo-core-storage-marklogic
      [16:24:01][getModifiedFilesFromRepo] HF_BEGIN_TAG=release-10.10
      [16:24:01][getModifiedFilesFromRepo] HF_END_TAG=release-10.10-HF01
      [16:24:01][getModifiedFilesFromRepo] BEGIN_TAG_EXISTS=1
      [16:24:01][getModifiedFilesFromRepo] END_TAG_EXISTS=1
      [16:24:01][getModifiedFilesFromRepo] BUNDLES_RESULT=README.md
      pom.xml
      README.md
      pom.xml
      [16:24:01][getModifiedFilesFromRepo] [END]
      [16:24:01][getPomBundle] [BEGIN]
      [16:24:01][getPomBundle] ARTIFACT_FOLDER = /opt/jenkins/workspace/Deploy/IT-HF-pkg-build-nightly-1010/nuxeo/addons-core/nuxeo-core-storage-marklogic
      [16:24:01][getPomBundle] ARTIFACT_FILENAME = pom.xml
      [16:24:01][getPomBundle] ARTIFACT_LOCATION = /opt/jenkins/workspace/Deploy/IT-HF-pkg-build-nightly-1010/nuxeo/addons-core/nuxeo-core-storage-marklogic/pom.xml
      [16:24:01][getPomBundle] ARTIFACT_ID = 
      [16:24:01][getPomBundle] GROUP_ID = 
      [16:24:01][getPomBundle] GROUP_ID (before if) = org.nuxeo.ecm.core
      [16:24:01][getPomBundle] GROUP_ID (after if) = org.nuxeo.ecm.core
      [16:24:01][getPomBundle] ARTIFACT_ID = nuxeo-core-storage-marklogic
      [16:24:01][getPomBundle] result = org.nuxeo.ecm.core:nuxeo-core-storage-marklogic
      [16:24:01][getPomBundle] [END]
      [16:24:01][getBundlesFromAddon] BUNDLES_RESULT [BEGIN]
      [16:24:01][getBundlesFromAddon] org.nuxeo.ecm.core:nuxeo-core-storage-marklogic
      [16:24:01][getBundlesFromAddon] BUNDLES_RESULT [END]
      [16:24:01][getBundlesFromAddon] [END]
      [16:24:01][getBundlesFromAddons] [END]
      [16:24:01][getBundlesFromAllRepos] ADDONS_CORE_BUNDLES [BEGIN]
      [16:24:01][getBundlesFromAllRepos] org.nuxeo.ecm.core:nuxeo-core-storage-marklogic
      [16:24:01][getBundlesFromAllRepos] ADDONS_CORE_BUNDLES [END]
      [16:24:01][getBundlesFromAllRepos] [END]
      

      this currently results in the inclusion of the marklogic bundle when it should not:

      [16:24:01][computeBundles] adding element for modified bundles
      [16:24:01][computeBundles] Checking org.nuxeo.ecm.core:nuxeo-core-storage-marklogic
      [16:24:01][computeBundles] JAR_FILE_NAME=nuxeo-core-storage-marklogic-10.10(-HF[0-9][0-9])?.*.jar
      [16:24:01][computeBundles] JAR_PATH_NAME=nxserver/bundles/nuxeo-core-storage-marklogic-10.10.jar
      [16:24:01][computeBundles] JAR_FOLDER_NAME=nxserver/bundles
      

      pom.xml is already filtered in getBundlesFromAddon:

      if getModifiedFilesFromRepo "$@" | sed '/-test\//d;/-tests\//d;/^ftest\//d;/\/ftest\//d;/^test\//d;/\/test\//d;/nuxeo-distribution\/.*\/templates/d;/pom.xml/d;/^scripts/d' | grep -q $; then
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 10 minutes
                  3h 10m