Explorar o código

contrib/ci.inria.fr/Jenkinsfile-windows: send an email

Nathalie Furmento %!s(int64=6) %!d(string=hai) anos
pai
achega
1a92832fd7
Modificáronse 1 ficheiros con 41 adicións e 41 borrados
  1. 41 41
      contrib/ci.inria.fr/Jenkinsfile-windows

+ 41 - 41
contrib/ci.inria.fr/Jenkinsfile-windows

@@ -82,8 +82,8 @@ pipeline
 									unstash 'script-windows-check'
 									unstash 'script-windows-check'
 									unstash 'script-windows-build'
 									unstash 'script-windows-build'
 									bat './job-1-check-windows.bat'
 									bat './job-1-check-windows.bat'
-									if (env.KEEP_WORKING_DIRECTORY != 'true')
+//									if (env.KEEP_WORKING_DIRECTORY != 'true')
-										deleteDir()
+//										deleteDir()
 								}
 								}
 							}
 							}
 						}
 						}
@@ -94,43 +94,43 @@ pipeline
 		}
 		}
 	}
 	}
 
 
-//	post
+	post
-//	{
+	{
-//		// hooks are called in order: always, changed, aborted, failure, success, unstable
+		// hooks are called in order: always, changed, aborted, failure, success, unstable
-//		changed
+		changed
-//		{
+		{
-//			echo "Build status has changed."
+			echo "Build status has changed."
-//			script
+			script
-//			{
+			{
-//
+
-//				statusHasChanged = true
+				statusHasChanged = true
-//			}
+			}
-//		}
+		}
-//		success
+		success
-//		{
+		{
-//			echo "Build success."
+			echo "Build success."
-//			// email when changed to success
+			// email when changed to success
-//			script
+			script
-//			{
+			{
-//				if (statusHasChanged)
+				if (statusHasChanged)
-//				{
+				{
-//					emailext(body: '${DEFAULT_CONTENT}',
+					emailext(body: '${DEFAULT_CONTENT}',
-//						 subject: '${DEFAULT_SUBJECT}',
+						 subject: '${DEFAULT_SUBJECT}',
-//						 replyTo: '$DEFAULT_REPLYTO',
+						 replyTo: '$DEFAULT_REPLYTO',
-//						 to: '$DEFAULT_RECIPIENTS',
+						 to: '$DEFAULT_RECIPIENTS',
-//						 recipientProviders: [[$class: 'CulpritsRecipientProvider'],[$class: 'RequesterRecipientProvider']])
+						 recipientProviders: [[$class: 'CulpritsRecipientProvider'],[$class: 'RequesterRecipientProvider']])
-//				}
+				}
-//			}
+			}
-//		}
+		}
-//		failure
+		failure
-//		{
+		{
-//			echo "Build failure."
+			echo "Build failure."
-//			// always email on failure
+			// always email on failure
-//			emailext(body: '${DEFAULT_CONTENT}',
+			emailext(body: '${DEFAULT_CONTENT}',
-//				 subject: '${DEFAULT_SUBJECT}',
+				 subject: '${DEFAULT_SUBJECT}',
-//				 replyTo: '$DEFAULT_REPLYTO',
+				 replyTo: '$DEFAULT_REPLYTO',
-//				 to: '$DEFAULT_RECIPIENTS',
+				 to: '$DEFAULT_RECIPIENTS',
-//				 recipientProviders: [[$class: 'CulpritsRecipientProvider'],[$class: 'RequesterRecipientProvider']])
+				 recipientProviders: [[$class: 'CulpritsRecipientProvider'],[$class: 'RequesterRecipientProvider']])
-//		}
+		}
-//	}
+	}
 }
 }