Add configuration name to AppVeyor IRC notification message

Since all AppVeyor builds are from the master branch, I replaced the branch
name with the configuration name.
This commit is contained in:
Jyrki Vesterinen 2016-12-02 06:14:56 +02:00
parent 3d2bbf94b1
commit bd020fe19f
3 changed files with 6 additions and 4 deletions

View File

@ -16,7 +16,7 @@ before_build:
- set PATH=C:\projects\external\dll;%PATH%
on_success:
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {branch} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_green}Succeeded,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {configuration_name} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_green}Succeeded,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"
on_failure:
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {branch} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_red}Failed,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {configuration_name} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_red}Failed,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"

View File

@ -23,7 +23,7 @@ build_script:
- msbuild projectfiles\VC14\wesnoth.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
on_success:
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {branch} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_green}Succeeded,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {configuration_name} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_green}Succeeded,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"
on_failure:
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {branch} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_red}Failed,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"
- "python utils\\appveyor\\irc-notify.py wesnoth-dev {bold}{project_name} - {configuration_name} {color_green}{author}{plain} {bold}{short_commit}: {plain}{message} {color_red}Failed,{bold}Details: {plain}{build_url},{bold}Commit: {plain}{commit_url}"

View File

@ -69,6 +69,7 @@ def appveyor_vars():
appveyor_url = environ.get('APPVEYOR_URL')
message_extended = environ.get('APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED')
configuration_name = environ.get('CONFIGURATION')
branch = environ.get('APPVEYOR_REPO_BRANCH')
author = environ.get('APPVEYOR_REPO_COMMIT_AUTHOR')
author_email = environ.get('APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL')
@ -100,6 +101,7 @@ def appveyor_vars():
repo_provider=repo_provider,
repo_name=repo_name,
branch=branch,
configuration_name=configuration_name,
author=author,
author_email=author_email,
timestamp=timestamp,