Advertisement
Guest User

charon exampl input

a guest
May 8th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.73 KB | None | 0 0
  1. def call(
  2.         String taskRegExps,
  3.         String fromRevision,
  4.         String toRevision,
  5.         String flockCredential,
  6.         Object options,
  7.         Closure body
  8. ) {
  9. /*
  10. Options:
  11.  - pullRequestLinkTemplate - default value "..bla bla",
  12.  - taskLinkTemplate - default value "..bla bla",
  13.  - environment - default value empty "",
  14.  - deployer: {username, flockUserId},
  15.  - serviceName - default value empty "",
  16. */
  17.     def CHARON_VERSION = "master"
  18.  // ...........
  19.     try {
  20.         body()
  21.  
  22.         try {
  23.             send(msg, false)
  24.         } (e) {
  25.             // mark build unstable
  26.             // write message "all is ok, but we can't send message to flock, check token"
  27.         }
  28.     } catch (e) {
  29.  
  30.         send(msg, true)
  31.  
  32.         throw e
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement