Fixed bad exit code.

Fixed creds GUID
This commit is contained in:
Westin Miller
2017-09-06 20:14:52 -07:00
parent 491f3d3af4
commit dcc130e2cf

4
Jenkinsfile vendored
View File

@@ -59,8 +59,8 @@ node {
gitSimpleVersion = bat(returnStdout: true, script: "@git describe --tags --abbrev=0").trim() gitSimpleVersion = bat(returnStdout: true, script: "@git describe --tags --abbrev=0").trim()
if (gitVersion == gitSimpleVersion) { if (gitVersion == gitSimpleVersion) {
stage('Release') { stage('Release') {
withCredentials([usernamePassword(credentialsId: 'e771beac-b3ee-4bc9-82b7-40a6d426d508', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'torch-github', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
powershell "./Jenkins/release.ps1 \"https://api.github.com/repos/TorchAPI/Torch/\" \"$gitSimpleVersion\" \"$USERNAME:$PASSWORD\" @(\"bin/torch-server.zip\", \"bin/torch-client.zip\")" powershell "& ./Jenkins/release.ps1 \"https://api.github.com/repos/TorchAPI/Torch/\" \"$gitSimpleVersion\" \"$USERNAME:$PASSWORD\" @(\"bin/torch-server.zip\", \"bin/torch-client.zip\")"
} }
} }
} }