XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 4.0.0.CR1
    • 4.0.0.Beta2
    • build

    Description

      This job needs to be tied to multiple git repos:

      https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/DevStudio/view/DevStudio_Trunk/job/jbosstools-docs-nightly/configure

      For an example of how to do a job w/ multiple git repos as source, see this one:

      https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/DevStudio/view/DevStudio_Trunk/job/jbosstools-4.0_trunk.tests/

      NOTE: You must set three advanced fields (each SCM entry has TWO Advanced buttons when configuring in the browser) for each repo to avoid collisions when fetching:

      If you want to edit the config.xml file offline, the code looks like this, eg., for the jbosstools-base repo (which replaces common, tests, usage, and runtime):

            <hudson.plugins.git.GitSCM>
              <configVersion>2</configVersion>
              <userRemoteConfigs>
                <hudson.plugins.git.UserRemoteConfig>
                  <name/>
                  <refspec/>
                  <url>git://github.com/jbosstools/jbosstools-base.git</url>
                </hudson.plugins.git.UserRemoteConfig>
              </userRemoteConfigs>
              <branches>
                <hudson.plugins.git.BranchSpec>
                  <name>origin/master</name>
                </hudson.plugins.git.BranchSpec>
              </branches>
              <disableSubmodules>false</disableSubmodules>
              <recursiveSubmodules>false</recursiveSubmodules>
              <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
              <authorOrCommitter>false</authorOrCommitter>
              <clean>false</clean>
              <wipeOutWorkspace>false</wipeOutWorkspace>
              <pruneBranches>false</pruneBranches>
              <remotePoll>false</remotePoll>
              <ignoreNotifyCommit>false</ignoreNotifyCommit>
              <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
              <gitTool>Default</gitTool>
              <submoduleCfg class="list"/>
              <relativeTargetDir>sources/base</relativeTargetDir>
              <reference/>
              <excludedRegions/>
              <excludedUsers/>
              <gitConfigName/>
              <gitConfigEmail/>
              <skipTag>false</skipTag>
              <includedRegions/>
              <scmName>base</scmName>
            </hudson.plugins.git.GitSCM>
      

      You can also set filters to only watch the repo (when deciding when to build automatically) for specific paths instead of the whole repo:

      For a complete list of the new merged repos, see:

      http://download.jboss.org/jbosstools/builds/cascade/swimlanes.html
      https://github.com/jbosstools/

      Attachments

        Issue Links

          Activity

            People

              irooskov Isaac Rooskov (Inactive)
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: