Artifact dependencies are randomly wiped/missing due to VCS recovery process

XMLWordPrintable

    • Type: Bug
    • Resolution: Answered
    • Priority: Low
    • None
    • Affects Version/s: 5.9.4
    • Component/s: None
    • None

      Bamboo seems to throw away the defined & downloaded artifacts randomly if it assumes a broken VCS checkout. *The artifacts dependencies are defined via "Artifact > Artifact dependencies > Create dependencies"

      Instead of redownloading it Bamboo does not reapply the artifact after recovery which will lead to a build failure due to missing files.

      The following log file extract illustrates this situation by example:

      simple	22-Dez-2015 12:29:59	conditions not set, skipping
      simple	22-Dez-2015 12:29:59	tasks list not set, skipping
      simple	22-Dez-2015 12:30:00	Build foobar - Dashboard - topic-xxKicker - Client QA #1 (XX-DASH26-CLIENTQA-1) started building on agent Speedy Gonzales
      simple	22-Dez-2015 12:30:00	Public build queue open to all fast builds (<10min!)
      simple	22-Dez-2015 12:30:00	Build working directory is /data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA
      simple	22-Dez-2015 12:30:00	Executing build foobar - Dashboard - topic-xxKicker - Client QA #1 (XX-DASH26-CLIENTQA-1)
      simple	22-Dez-2015 12:30:00	Preparing artifact 'client-node_modules' for use at client/node_modules
      simple	22-Dez-2015 12:30:12	Artifact 'client-node_modules' prepared in 0:00:12.933 at /data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA/client/node_modules
      simple	22-Dez-2015 12:30:13	Preparing artifact 'client_src_vendor' for use at client/src/vendor
      simple	22-Dez-2015 12:30:13	Artifact 'client_src_vendor' prepared in 0:00:00.587 at /data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA/client/src/vendor
      simple	22-Dez-2015 12:30:13	Running pre-build action: VCS Version Collector
      simple	22-Dez-2015 12:30:13	Starting task 'Checkout Sources' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
      simple	22-Dez-2015 12:30:13	Checking out code from XX-DASH26-CLIENTQA, revision 57bdb3401c100ef382f564d87fb839e2eb7cfedd
      simple	22-Dez-2015 12:30:13	Fetching 'refs/heads/topic/xxKicker' from 'git@gitlab.foobar.de:foobar/dashboard.git'.
      simple	22-Dez-2015 12:30:13	Warning: Permanently added '[127.0.0.1]:47638' (RSA) to the list of known hosts.
      simple	22-Dez-2015 12:30:19	Checking out revision 57bdb3401c100ef382f564d87fb839e2eb7cfedd.
      simple	22-Dez-2015 12:30:19	Creating local git repository in '/data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA/.git'.
      simple	22-Dez-2015 12:30:19	fatal: Zielpfad '/data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA' existiert bereits und ist kein leeres Verzeichnis.
      error	22-Dez-2015 12:30:19	Checkout to revision 57bdb3401c100ef382f564d87fb839e2eb7cfedd has failed.
      simple	22-Dez-2015 12:30:19	fatal: Not a git repository (or any parent up to mount point /data)
      simple	22-Dez-2015 12:30:19	Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
      simple	22-Dez-2015 12:30:19	Warning: failed to checkout source code to directory '/data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA', trying to recover...
      simple	22-Dez-2015 12:30:31	Cleaned source directory '/data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA'...
      simple	22-Dez-2015 12:30:31	Checking out revision 57bdb3401c100ef382f564d87fb839e2eb7cfedd.
      simple	22-Dez-2015 12:30:31	Creating local git repository in '/data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA/.git'.
      simple	22-Dez-2015 12:30:31	Klone nach '/data/jira/bamboo-home/xml-data/build-dir/XX-DASH26-CLIENTQA' ...
      simple	22-Dez-2015 12:30:32	Zu neuem Branch 'topic/xxKicker' gewechselt
      simple	22-Dez-2015 12:30:32	Branch topic/xxKicker konfiguriert zum Folgen von Remote-Branch topic/xxKicker von origin.
      simple	22-Dez-2015 12:30:32	Checkout completed, recover successful.
      simple	22-Dez-2015 12:30:32	Merging code from XX-DASH, revision 2dc6451a7084453e2a0d17f70ce00f44ecdcd559
      simple	22-Dez-2015 12:30:36	No new changes on XX-DASH found to merge.
      simple	22-Dez-2015 12:30:36	Updated source code to revision: 57bdb3401c100ef382f564d87fb839e2eb7cfedd
      simple	22-Dez-2015 12:30:36	Finished task 'Checkout Sources' with result: Success
      simple	22-Dez-2015 12:30:36	Starting task 'grunt dist' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
      command	22-Dez-2015 12:30:36	Beginning to execute external process for build...
      
      build	22-Dez-2015 12:30:36	grunt-cli: The grunt command line interface. (v0.1.13)
      build	22-Dez-2015 12:30:36	
      build	22-Dez-2015 12:30:36	Fatal error: Unable to find local grunt.
      build	22-Dez-2015 12:30:36	
      build	22-Dez-2015 12:30:36	If you're seeing this message, either a Gruntfile wasn't found or grunt
      build	22-Dez-2015 12:30:36	hasn't been installed locally to your project. For more information about
      build	22-Dez-2015 12:30:36	installing and configuring grunt, please see the Getting Started guide:
      build	22-Dez-2015 12:30:36	
      build	22-Dez-2015 12:30:36	http://gruntjs.com/getting-started
      simple	22-Dez-2015 12:30:36	Failing task since return code of [/usr/bin/grunt sonarRunner:analysis] was 99 while expected 0
      simple	22-Dez-2015 12:30:36	Finished task 'grunt dist' with result: Failed
      

            Assignee:
            Unassigned
            Reporter:
            Benjamin Schmid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: