saucelabs / bamboo_sauce

Bamboo plugin for use with Sauce OnDemand
11 stars 5 forks source link

Using Sauce plugin on a job that downloads a bamboo artifact causes bamboo error #30

Open supersighs opened 8 years ago

supersighs commented 8 years ago

I have also reported this to atlassian, the jira issue is here: https://jira.atlassian.com/browse/BAM-16373

Whenever I enable this plugin for a job that has an artifact download task, bamboo cannot download it. disabling sauce eliminates the error.

25-Sep-2015 07:46:29 Running pre-build action: Sauce OnDemand Build Configurator 25-Sep-2015 07:46:48 Running pre-build action: VCS Version Collector 25-Sep-2015 07:46:48 Starting task 'Artifact download' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask' 25-Sep-2015 07:46:48 Unable to download artifacts: missing runtime context 25-Sep-2015 07:46:48 Finished task 'Artifact download' with result: Error 25-Sep-2015 07:46:48 Running post build plugin 'Sauce OnDemand Post Runner' 25-Sep-2015 07:46:51 Running post build plugin 'Clover Results Collector' 25-Sep-2015 07:46:51 Running post build plugin 'Artifact Copier' 25-Sep-2015 07:46:51 Running post build plugin 'Docker Container Cleanup' 25-Sep-2015 07:46:51 Running post build plugin 'NCover Results Collector' 25-Sep-2015 07:46:51 Running post build plugin 'npm Cache Cleanup'

halkeye commented 8 years ago

Can you give me instructions on how to reproduce this? I'll admit I'm not super experienced with bamboo.

I tried creating a job that copies a .jar artifact from another build and have no issues.

image

What version of the plugin are you using? we just released a new one today and thats the one I've been testing with.

halkeye commented 8 years ago
simple  14-Dec-2015 13:44:17    Build JAVA - COPY - Default Job #4 (JAVA-COPY-JOB1-4) started building on agent Default Agent
simple  14-Dec-2015 13:44:17    
simple  14-Dec-2015 13:44:17    Build working directory is /Users/gavinmogan/git/atlassian-bamboo-5.9.7/xml-data/build-dir/JAVA-COPY-JOB1
simple  14-Dec-2015 13:44:17    Executing build JAVA - COPY - Default Job #4 (JAVA-COPY-JOB1-4)
simple  14-Dec-2015 13:44:17    Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple  14-Dec-2015 13:44:17    Updating source code to revision: c43bf89ccd80c706bd97ce0b93c9cf71ccc77a8b
simple  14-Dec-2015 13:44:17    Fetching 'refs/heads/master' from 'https://github.com/saucelabs/java-sauce-example.git'.
simple  14-Dec-2015 13:44:18    Checking out revision c43bf89ccd80c706bd97ce0b93c9cf71ccc77a8b.
simple  14-Dec-2015 13:44:18    Already on 'master'
simple  14-Dec-2015 13:44:18    Your branch is up-to-date with 'origin/master'.
simple  14-Dec-2015 13:44:18    Updated source code to revision: c43bf89ccd80c706bd97ce0b93c9cf71ccc77a8b
simple  14-Dec-2015 13:44:18    Finished task 'Checkout Default Repository' with result: Success
simple  14-Dec-2015 13:44:18    Running pre-build action: Sauce OnDemand Build Configurator
simple  14-Dec-2015 13:44:18    Detected active tunnel: a6d74ece93144e31b645f9f3ff3f89af
simple  14-Dec-2015 13:44:44    Sauce Connect 4.3.13 now launched for: halkeye
simple  14-Dec-2015 13:44:44    Incremented process count for halkeye, now 1
simple  14-Dec-2015 13:44:44    Running pre-build action: VCS Version Collector
simple  14-Dec-2015 13:44:44    Starting task 'Artifact download' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
simple  14-Dec-2015 13:44:44    Preparing to download plan result JAVA-JAVA-6 artifact: Shared artifact: [jar], pattern: [**/*.jar]
simple  14-Dec-2015 13:44:45    Artifact [jar] downloaded successfully in 0s to working directory
simple  14-Dec-2015 13:44:45    Finished task 'Artifact download' with result: Success
simple  14-Dec-2015 13:44:45    Starting task 'Maven 3.x' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3'
supersighs commented 8 years ago

Thanks for looking into this. I've updated the plugin to the latest version and the issue no longer exists.