[jbossts-issues] [JBoss JIRA] (JBTM-1072) Get hudson to comment on pull requests as they are tested

Paul Robinson (JIRA) jira-events at lists.jboss.org
Wed Oct 3 04:30:03 EDT 2012

    [ https://issues.jboss.org/browse/JBTM-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723551#comment-12723551 ] 

Paul Robinson commented on JBTM-1072:


btny-pulls-blacktie and btny-pulls-quickstarts are tied to Windows2008. btny-pulls-documentation will run on any machine (including windows).

It's not going to be trivial to get this working on windows:

function comment_on_pull
    if [ "$COMMENT_ON_PULL" = "" ]; then return; fi

    PULL_NUMBER=$(echo $GIT_BRANCH | awk -F 'pull' '{ print $2 }' | awk -F '/' '{ print $2 }')
    if [ "$PULL_NUMBER" != "" ]
        JSON="{ \"body\": \"$1\" }"
        curl -d "$JSON" -ujbosstm-bot:$BOT_PASSWORD https://api.github.com/repos/$GIT_ACCOUNT/$GIT_REPO/issues/$PULL_NUMBER/comments
        echo "Not a pull request, so not commenting"

I guess the only way to do this is by having the job run cygwin with a bash script that does the above. I don't fancy finding Windows commands for all of the above!

> Get hudson to comment on pull requests as they are tested
> ---------------------------------------------------------
>                 Key: JBTM-1072
>                 URL: https://issues.jboss.org/browse/JBTM-1072
>             Project: JBoss Transaction Manager
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Build System
>            Reporter: Tom Jenkinson
>            Assignee: Paul Robinson
>             Fix For: 4.17.1, 5.0.0.M2
> Hudson should comment on the pull request when:
> Test starts
> A set of tests pass (e.g. XTS crash rec
> When the job passes/fails
> The following job is a PoC that I created:
> Here you will see that we have a jbosstm-bot user that creates the comment.
> I think the code will need to go in narayana.sh as only it knows the progress of the tests.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the jbossts-issues mailing list