Search code examples
jenkinsjenkins-pluginsdreamhost

Store log file / console output of Jenkins job build in dreamhost


We've some Jenkins jobs. when a new build is created in Jenkins, we want to store the console output or log file in dreamhost (http://www.dreamhost.com).

we already have buckets, access_key and secret_key in dreamhost.

How can we store the console output of every build by shell commands, plugin or any idea?


Solution

  • With a post step shell script, you can get the console log file with a wget command:

    wget -O my_build.log ${BUILD_URL}consoleText
    

    Next, you can upload your log file with a SCP or a FTP command.