Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use a message template from a Jenkinsfile? #117

Open
scbunn opened this issue Mar 14, 2018 · 1 comment
Open

How to use a message template from a Jenkinsfile? #117

scbunn opened this issue Mar 14, 2018 · 1 comment

Comments

@scbunn
Copy link

scbunn commented Mar 14, 2018

I would assume the following to work:

hipchatSend color: 'GREEN', failOnError: true, message: "${BUILD_DURATION} ; ${BLUE_OCEAN_URL}", notify: true, room: 'foo', 

but it doesn't.

@vkotovv
Copy link

vkotovv commented Mar 27, 2018

Here is the template I've used, worked for me:

hipchatSend color: 'RED', room: '<redacted>', failOnError: true, notify: true, 
    message: 'Building <a href=\'${BUILD_URL}\'>${JOB_DISPLAY_NAME} #${BUILD_NUMBER}</a> has FAILED. Time elapsed: ${DURATION}. Check the <a href=\'${BUILD_URL}/console\'>console output</a>.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants