[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:
-------------------------------------

Tom,

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:

{code}
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" != "" ]
    then
        JSON="{ \"body\": \"$1\" }"
        curl -d "$JSON" -ujbosstm-bot:$BOT_PASSWORD https://api.github.com/repos/$GIT_ACCOUNT/$GIT_REPO/issues/$PULL_NUMBER/comments
    else
        echo "Not a pull request, so not commenting"
    fi
}
{code}

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!

WDYT?
                
> 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: http://172.17.131.2/job/paul-test/configure
> 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