Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey authored Nov 20, 2018
1 parent 0d5f1ab commit ee38d71
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,14 @@ node('windows') {

stage 'Build'

sh 'pwd'
sh 'powershell ./rebuild.ps1'
/*try{
sh 'powershell ./rebuild.ps1 > ./debug'
try{
bat 'powershell ./rebuild.ps1 > ./debug'
} catch(error) {
def error_details = readFile('./debug');
def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}"
sh "powershell (Remove-Item -Force ./debug)"
bat "powershell (Remove-Item -Force ./debug)"
handleError(message)
}*/
}

// stage 'Test'

Expand Down Expand Up @@ -94,5 +92,5 @@ def handleError(String message){
echo "${message}"
currentBuild.setResult("FAILED")
//slackSend color: 'danger', message: "${message}"
sh 'exit 1'
bat 'exit 1'
}

0 comments on commit ee38d71

Please sign in to comment.