This commit is contained in:
@@ -8,9 +8,14 @@ pipeline {
|
|||||||
sh '''export PATH=$PATH:/usr/local/go/bin
|
sh '''export PATH=$PATH:/usr/local/go/bin
|
||||||
go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"'''
|
go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"'''
|
||||||
// Archive Build file
|
// Archive Build file
|
||||||
|
// Local
|
||||||
archiveArtifacts artifacts: 'HelloWorld-amd64*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'HelloWorld-amd64*', onlyIfSuccessful: true
|
||||||
|
//Remote sftp server
|
||||||
|
sshPublisher(publishers: [sshPublisherDesc(configName: 'centnas', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/$JOB_NAME', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'HelloWorld-amd64*')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
|
||||||
// Cleaning WorkSpace
|
// Cleaning WorkSpace
|
||||||
cleanWs()
|
cleanWs()
|
||||||
|
// send Mail
|
||||||
|
emailext body: '$DEFAULT_CONTENT', recipientProviders: [buildUser()], subject: '$DEFAULT_SUBJECT', to: 'bramm.p11@gmail.com'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user