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

Update Bamboo SBT Task to be compatible with versions after 4.4.3

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • None
    • Plugins
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Currently, the latest version of Bamboo that this plugin can be used with is 4.4.3: Bamboo SBT Task

            [BAM-13592] Update Bamboo SBT Task to be compatible with versions after 4.4.3

            Krystian Brazulewicz added a comment - Also existing Marketplace home of the plugin https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.sbt.bamboo-sbt-plugin was replaced by https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.sbt.bamboo-sbt-plugin

            Krystian Brazulewicz added a comment - - edited

            I've built new version of SBT plugin against Bamboo 5.10. Also I fixed the problem with successful build not being correctly recognized.
            Go to https://bitbucket.org/atlassian/bamboo-sbt-plugin/downloads for most recent downloads.

            Krystian Brazulewicz added a comment - - edited I've built new version of SBT plugin against Bamboo 5.10. Also I fixed the problem with successful build not being correctly recognized. Go to https://bitbucket.org/atlassian/bamboo-sbt-plugin/downloads for most recent downloads.

            I don't know – looks correct. Maybe the sbt version is the issue (I'm speculating).
            Can you try with an updated version of sbt? (i have 0.13.8)

            Boris Capitanu added a comment - I don't know – looks correct. Maybe the sbt version is the issue (I'm speculating). Can you try with an updated version of sbt? (i have 0.13.8)

            Hiroyuki added a comment -

            Here is a part of Failing log from build log after adding the environment variables.

            build 23-May-2015 06:28:48 [info] - should list all certificates
            build 23-May-2015 06:28:48 [info] Passed: Total 34, Failed 0, Errors 0, Passed 34
            build 23-May-2015 06:28:48 [success] Total time: 48 s, completed May 23, 2015 6:28:48 AM
            simple 23-May-2015 06:28:48 Failing task since text '[success]' was not found in last 250 log entries
            simple 23-May-2015 06:28:48 Parsing test results under /data/atlassian/application-data/bamboo/xml-data/build-dir/5865473/JIMPORT-CE-CER...
            simple 23-May-2015 06:28:48 Finished task 'SBT Task' with result: Failed

            And here is a screenshot for my SBT task setting.
            https://dl.dropboxusercontent.com/u/22797689/sbt_task_setting.png

            FYI, sbt version: 0.13.1
            Scala: 2.10.2

            Hiroyuki added a comment - Here is a part of Failing log from build log after adding the environment variables. build 23-May-2015 06:28:48 [info [0m] - should list all certificates build 23-May-2015 06:28:48 [info [0m] Passed: Total 34, Failed 0, Errors 0, Passed 34 build 23-May-2015 06:28:48 [success [0m] Total time: 48 s, completed May 23, 2015 6:28:48 AM simple 23-May-2015 06:28:48 Failing task since text ' [success] ' was not found in last 250 log entries simple 23-May-2015 06:28:48 Parsing test results under /data/atlassian/application-data/bamboo/xml-data/build-dir/5865473/JIMPORT-CE-CER... simple 23-May-2015 06:28:48 Finished task 'SBT Task' with result: Failed And here is a screenshot for my SBT task setting. https://dl.dropboxusercontent.com/u/22797689/sbt_task_setting.png FYI, sbt version: 0.13.1 Scala: 2.10.2

            Can u post log again after adding JAVA_OPTS setting in the Environment variables section?
            Also make sure you only have "clean test" in the builder.sbt.target section, no other stuff.
            Setting JAVA_OPTS like that worked for me on same version of Bamboo and same SNAPSHOT plugin...

            Boris Capitanu added a comment - Can u post log again after adding JAVA_OPTS setting in the Environment variables section? Also make sure you only have "clean test" in the builder.sbt.target section, no other stuff. Setting JAVA_OPTS like that worked for me on same version of Bamboo and same SNAPSHOT plugin...

            Hiroyuki added a comment -

            I added 'JAVA_OPTS="-Dsbt.log.noformat=true -Dsbt.log.format=false"' to Environment variables, but I still have same problem.

            Hiroyuki added a comment - I added 'JAVA_OPTS="-Dsbt.log.noformat=true -Dsbt.log.format=false"' to Environment variables, but I still have same problem.

            Perhaps it would make sense if the sbt task plugin checks for this argument (and add it when missing), or make it check the sbt return code instead of text (if text is the only option, improve the text check?).

            Sebastiaan Jansen added a comment - Perhaps it would make sense if the sbt task plugin checks for this argument (and add it when missing), or make it check the sbt return code instead of text (if text is the only option, improve the text check?).

            build 22-May-2015 03:00:31 [info] Passed: Total 34, Failed 0, Errors 0, Passed 34
            build 22-May-2015 03:00:31 [success] Total time: 44 s, completed May 22, 2015 3:00:31 AM

            Thats the weird check it's doing.

            Do you have in the Environment variables something like this:

            JAVA_OPTS="-Dsbt.log.noformat=true -Dsbt.log.format=false"

            Sebastiaan Jansen added a comment - build 22-May-2015 03:00:31 [info [0m] Passed: Total 34, Failed 0, Errors 0, Passed 34 build 22-May-2015 03:00:31 [success [0m] Total time: 44 s, completed May 22, 2015 3:00:31 AM Thats the weird check it's doing. Do you have in the Environment variables something like this: JAVA_OPTS="-Dsbt.log.noformat=true -Dsbt.log.format=false"

            Hiroyuki added a comment -

            I installed SNAPSHOT version and tried to run the build, but SBT Task Plugin could not understand `[success] (color coded)` string, even after added to `Environment variables` :

            -Dsbt.log.format=false

            Bamboo 5.8.1 build 5866

            Here is the build log: https://dl.dropboxusercontent.com/u/22797689/JIMPORT-CE-JOB1-20.log

            Hiroyuki added a comment - I installed SNAPSHOT version and tried to run the build, but SBT Task Plugin could not understand ` [success] (color coded)` string, even after added to `Environment variables` : -Dsbt.log.format=false Bamboo 5.8.1 build 5866 Here is the build log: https://dl.dropboxusercontent.com/u/22797689/JIMPORT-CE-JOB1-20.log

            Ah yes, that works as well. I already had a few options in Environment variables but I did not enclose them in JAVA_OPTS.

            Thanks.

            Sebastiaan Jansen added a comment - Ah yes, that works as well. I already had a few options in Environment variables but I did not enclose them in JAVA_OPTS. Thanks.

              Unassigned Unassigned
              ssetayeshfar Sepideh Setayeshfar (Inactive)
              Votes:
              22 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated:
                Resolved: