Index: Jenkinsfile
===================================================================
--- Jenkinsfile	(revision b98313cc94333a53e6c4d11578278a910dc7678b)
+++ Jenkinsfile	(revision e0549dbab72a67bf701950f5c9cbd57eafa875da)
@@ -25,4 +25,5 @@
 
 			Settings = prepare_build()
+			echo "${currentBuild.changeSets}"
 
 			clean()
@@ -197,6 +198,4 @@
 //Standard build email notification
 def email(String status, boolean log, boolean bIsSandbox) {
-	echo "${currentBuild.changeSets}"
-
 	//Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
 	//Configurations for email format
@@ -247,5 +246,5 @@
 	def email_to = "cforall@lists.uwaterloo.ca"
 
-	if( !bIsSandbox ) {
+	if( Settings && !Settings.IsSandbox ) {
 		//send email notification
 		emailext body: email_body, subject: email_subject, to: email_to, attachLog: log
