Main repository for GoCD - Continuous Delivery server
Clone or download
GaneshSPatil Send an email notification when job is cancelled due to timeout (#5370)…
… (#5506)

Fix:
* Post a StageStatusTopic message when a job is completed regardless of the
 job state (passed, failed or cancelled).
* Explicitly post a StageStatusMessage when the job is cancelled by
  user and none of the jobs are assigned.

Who sends the email?:
	- When job is cancelled by GoCD, the JobStatusListener will send an
	  email notification.
	- When the stage is cancelled by user and at least one job is assigned
 	  to the agent, the JobStatusListener will send an email notification.
 	  As, JobStatusListener will be invoked for the assigned job, when
	  the state of the job changes to cancelled.
	- When the stage is cancelled by user and no jobs are assigned,
	  the StageService.CancelStage will send an email notification.
	  As, None of the jobs were scheduled, change in the jobs state from
	  scheduled to cancelled will not invoke the jobStatusListener.

Reason:
* StageStatusTopic was NOT invoked if the stage was not completed normally.
  A normal completion of the job involved only PASSED or FAILED stage state.
* Cancelled Stage due to timeout cancellation of a job scenario was missed
  while story implementation.

Older commit references (from cruise repo):
* 99dd349eefea4fb080b2c5146062207bfdcbda29
* 3ee6dc7cc125626565f46900cb51ffc4e0eaee66
Latest commit bbeebad Dec 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ci Do not download the JDK if it is not already present Nov 14, 2018
.github Fix typo Sep 25, 2017
.idea Add changes to idea files from new idea version Dec 13, 2018
addon-api/database Re-org code to fit the gradle convention Jan 4, 2018
agent-bootstrapper Fix a bunch of deprecation warnings Dec 4, 2018
agent-common Remove usage of deprecated class Oct 9, 2018
agent-launcher Fix a bunch of deprecation warnings Dec 4, 2018
agent-process-launcher #000 - Fix test runner configuration Sep 10, 2018
agent Improve the error message when agent gets 403 Nov 30, 2018
api Fix for issue #5541 (#5555) Dec 13, 2018
app-server De-dup the version of JRuby used in build scripts Jul 10, 2018
base #000 - Ignore external XML entities in XUnit XML handling Dec 6, 2018
buildSrc Fixup osx installers (Fixes #3934) Dec 6, 2018
commandline #000 - Fix test runner configuration Sep 10, 2018
common Fix a bunch of deprecation warnings Dec 4, 2018
config Fix for issue #5541 (#5555) Dec 13, 2018
db Cleanup code May 25, 2018
development-utility Upgrade jgit Oct 27, 2018
domain Send an email notification when job is cancelled due to timeout (#5370)… Dec 14, 2018
gradle/wrapper Upgrade to gradle 4.10.2 Nov 20, 2018
installers Simplify the osx installer a bit more: Dec 7, 2018
jar-class-loader Revert "Add the main jar to the classloader" Jul 12, 2018
javasysmon-wrapper Add correct dependencies and jars to verify task. Sep 19, 2018
jetty9 Fix code to work with rails 5.2.1 Sep 11, 2018
manual-testing/ant_hg Initial commit from internal Go repository. Apr 15, 2014
plugin-infra confirepos fix artifact_origin default to gocd Dec 4, 2018
rack_hack #000 - Fix test runner configuration Sep 10, 2018
release Check if BUILD_MAP_USER and BUILD_MAP_PASSWORD is set before updating… May 4, 2017
scripts scripts/clean-workingdir.sh should ignore .ruby-version as well Oct 4, 2018
server-launcher Simplify the osx installer a bit more: Dec 7, 2018
server Send an email notification when job is cancelled due to timeout (#5370)… Dec 14, 2018
spark Implement user search API. Fixes #5560 Dec 13, 2018
test Fix a bunch of deprecation warnings Dec 4, 2018
tfs-impl/tfs-impl-14 #000 - Fix test runner configuration Sep 10, 2018
tw-go-plugins Update bundled yaml plugin to support external fetch task (#4930) Jul 10, 2018
util Fix a bunch of deprecation warnings Dec 4, 2018
.gitignore Implement user search API. Fixes #5560 Dec 13, 2018
.gradle-projects Fixup project paths Feb 8, 2018
.nvmrc Update .nvmrc to use latest LTS/carbon build Sep 15, 2018
CODE_OF_CONDUCT.md Updating the code of conduct Apr 12, 2017
CONTRIBUTING.md Change links to gocd.org Jun 8, 2017
LICENSE Fix license Dec 16, 2015
README.md updated readme to include intro guide Sep 17, 2018
Vagrantfile Remove a bad sudo binary Mar 16, 2017
build.gradle Tweak the template to initialize the controller Dec 13, 2018
gradle.properties Add support for running the server on java 9/10 Sep 11, 2018
gradlew Change build scripts for newer versions of gradle Jun 30, 2017
gradlew.bat Upgrade gradle to version 3.0 Aug 19, 2016
settings-parent.gradle * Fix enterprise build Jan 16, 2018
settings.gradle Implement user search API. Fixes #5560 Dec 13, 2018

README.md

GoCD

Join the chat at https://gitter.im/gocd/gocd

This is the main repository for GoCD - a continuous delivery server. GoCD helps you automate and streamline the build-test-release cycle for worry-free, continuous delivery of your product.

To quickly build your first pipeline while learning key GoCD concepts, visit our Intro to GoCD guide.

Development Setup

This is a Java/JRuby on Rails project. Here is the guide to setup your development environment.

Contributing

We'd love it if you contributed to GoCD. For information on contributing to this project, please see our contributor's guide. A lot of useful information like links to user documentation, design documentation, mailing lists etc. can be found in the resources section.

License

GoCD is an open source project, sponsored by ThoughtWorks Inc. under the Apache License, Version 2.0.