Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14915

Job has task that uses source control but no repositories exists

    XMLWordPrintable

Details

    Description

      To reproduce the issue
      1. Create a linked repository
      2. Create a Deployment Plan and add an Environment "ENV1"
        1. Add a "Source Code Checkout" task and use the linked repository above created.
      3. Run your deployment.
      4. Clone the Environment "ENV1" by naming it as "ENV2"
      5. Run the "ENV2" deployment by promoting the same release or generating a new one.
        The following message comes up:
      Stacktrace
      ...
      2014-08-13 15:52:24,659 INFO [10-BAM::Default Agent::Agent:pool-25-thread-1] [DefaultErrorHandler] Recording an error: Error occurred while executing the build for Deployment of 'release-1.2' on 'ENV2' : 917505-983042 : Job has task that uses source control but no repositories exists.
      2014-08-13 15:52:24,659 WARN [10-BAM::Default Agent::Agent:pool-25-thread-1] [BuildAgentControllerImpl] Error occurred while executing the build for Deployment of 'release-1.2' on 'ENV2'
      com.atlassian.bamboo.repository.RepositoryDefinitionException: Job has task that uses source control but no repositories exists.
      	at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:70)
      	at com.atlassian.bamboo.repository.RepositoryFunctions$IdSelectorToRepositoryDefinition.apply(RepositoryFunctions.java:51)
      	at com.atlassian.bamboo.task.repository.RepositoryTaskHelper.getRepositoryDefinitionByIdSelector(RepositoryTaskHelper.java:129)
      	at com.atlassian.bamboo.v2.build.task.CheckoutDirectoriesSnapshotHelper.<init>(CheckoutDirectoriesSnapshotHelper.java:124)
      	at com.atlassian.bamboo.v2.build.task.InitializeBuild.prepareWorkingDirectory(InitializeBuild.java:101)
      	at com.atlassian.bamboo.v2.build.task.InitializeBuild.doCall(InitializeBuild.java:82)
      	at com.atlassian.bamboo.v2.build.task.InitializeBuild.call(InitializeBuild.java:53)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110)
      	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      	at java.lang.Thread.run(Thread.java:744)
      ...
      
      Workaround suggested
      1. Edit you environment "ENV2" tasks and hit the "Save" button under the "Source Code Checkout" task.

      Attachments

        Activity

          People

            dkjellin Daniel
            rsperafico Rafael Sperafico (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: