Produced by Araxis Merge on 4/23/2019 12:14:46 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\AraxisMergeCompare\Pri_un\CCRS\CCRS-BUSRULES-v6.3\CCRS-BUSRULES-v6.3\brengine | Jenkinsfile | Wed Mar 27 19:38:08 2019 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\CCRS\CCRS-BUSRULES-v6.3\CCRS-BUSRULES-v6.3\brengine | Jenkinsfile | Wed Apr 17 17:57:39 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 286 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | #!groovy | |
| 2 | ||
| 3 | import gro ovy.json.J sonOutput | |
| 4 | import jav a.util.Opt ional | |
| 5 | import hud son.tasks. test.Abstr actTestRes ultAction | |
| 6 | import hud son.model. Actionable | |
| 7 | import hud son.tasks. junit.Case Result | |
| 8 | ||
| 9 | def slackN otificatio nChannel = "build" | |
| 10 | def author = "" | |
| 11 | def messag e = "" | |
| 12 | def testSu mmary = "" | |
| 13 | def total = 0 | |
| 14 | def failed = 0 | |
| 15 | def skippe d = 0 | |
| 16 | ||
| 17 | def notify Slack(text , channel, attachmen ts) { | |
| 18 | def sl ackURL = ' https://ho oks.slack. com/servic es/T75DXB6 SU/B8MMSUM FT/dgqnOZJ vBwM2BVr6J 1fYYxUZ' | |
| 19 | def je nkinsIcon = 'https:/ /wiki.jenk ins-ci.org /download/ attachment s/2916393/ logo.png' | |
| 20 | ||
| 21 | def pa yload = Js onOutput.t oJson([tex t: text, | |
| 22 | ch annel: cha nnel, | |
| 23 | username: " AI ", | |
| 24 | ic on_url: je nkinsIcon, | |
| 25 | at tachments: attachmen ts | |
| 26 | ]) | |
| 27 | ||
| 28 | sh "cu rl -X POST --data-ur lencode \' payload=${ payload}\' ${slackUR L}" | |
| 29 | } | |
| 30 | ||
| 31 | def getGit Author = { | |
| 32 | def co mmit = sh( returnStdo ut: true, script: 'g it rev-par se HEAD') | |
| 33 | author = sh(retu rnStdout: true, scri pt: "git - -no-pager show -s -- format='%a n' ${commi t}").trim( ) | |
| 34 | } | |
| 35 | ||
| 36 | def getLas tCommitMes sage = { | |
| 37 | messag e = sh(ret urnStdout: true, scr ipt: 'git log -1 --p retty=%B') .trim() | |
| 38 | } | |
| 39 | ||
| 40 | def popula teGlobalVa riables = { | |
| 41 | getLas tCommitMes sage() | |
| 42 | getGit Author() | |
| 43 | } | |
| 44 | ||
| 45 | node { | |
| 46 | try { | |
| 47 | st age('Check out') { | |
| 48 | checkout scm | |
| 49 | } | |
| 50 | ||
| 51 | st age ('Inte gration Te sts') { | |
| 52 | env.NODE JS_HOME = "${tool 'r ecent node '}" | |
| 53 | env.PATH ="${env.NO DEJS_HOME} /bin:${env .PATH}" | |
| 54 | ||
| 55 | sh 'npm - -version' | |
| 56 | populateG lobalVaria bles | |
| 57 | //sh 'np m install newman --g lobal' | |
| 58 | ||
| 59 | try{ | |
| 60 | sh ' npm --pref ix integra tion_tests / run engi ne-test-de v' | |
| 61 | curr entBuild.r esult = 'S UCCESS' | |
| 62 | def buildColor = current Build.resu lt == null ? "good" : "warning " | |
| 63 | def buildStatu s = curren tBuild.res ult == nul l ? "Succe ss" : curr entBuild.r esult | |
| 64 | def jobName = "${env.JOB _NAME}" | |
| 65 | jobN ame = jobN ame.getAt( 0..(jobNam e.indexOf( '/') - 1)) | |
| 66 | noti fySlack("" , slackNot ificationC hannel, [ | |
| 67 | [ | |
| 68 | title: "Integrat ion Tests for ${jobN ame}, buil d #${env.B UILD_NUMBE R}", | |
| 69 | title_ link: "${e nv.BUILD_U RL}", | |
| 70 | color: "${buildC olor}", | |
| 71 | author _name: "${ author}", | |
| 72 | text: "${buildSt atus}\n${a uthor}", | |
| 73 | fields : [ | |
| 74 | [ | |
| 75 | title: " Last Commi t", | |
| 76 | value: " ${message} ", | |
| 77 | short: f alse | |
| 78 | ] | |
| 79 | ] | |
| 80 | ] | |
| 81 | ]) | |
| 82 | } catch( Exception e){ | |
| 83 | noti fySlack("" , slackNot ificationC hannel, [ | |
| 84 | [ | |
| 85 | title: "Integrat ion Tests for ${jobN ame}, buil d #${env.B UILD_NUMBE R}", | |
| 86 | title_ link: "${e nv.BUILD_U RL}", | |
| 87 | color: "${buildC olor}", | |
| 88 | text: "${buildSt atus}\n${a uthor}", | |
| 89 | "mrkdw n_in": ["f ields"], | |
| 90 | fields : [ | |
| 91 | [ | |
| 92 | title: " Last Commi t", | |
| 93 | value: " ${message} ", | |
| 94 | short: f alse | |
| 95 | ], | |
| 96 | [ | |
| 97 | title: " Error", | |
| 98 | value: " ${e}", | |
| 99 | short: f alse | |
| 100 | ] | |
| 101 | ] | |
| 102 | ] | |
| 103 | ]) | |
| 104 | } | |
| 105 | junit 'i ntegration _tests/new man.xml' | |
| 106 | ||
| 107 | } | |
| 108 | ||
| 109 | ||
| 110 | } catc h (hudson. AbortExcep tion ae) { | |
| 111 | // ignored | |
| 112 | } catc h (e) { | |
| 113 | de f buildSta tus = "Fai led" | |
| 114 | ||
| 115 | no tifySlack( "", slackN otificatio nChannel, [ | |
| 116 | [ | |
| 117 | titl e: "${env. JOB_NAME}, build #${ env.BUILD_ NUMBER}", | |
| 118 | titl e_link: "$ {env.BUILD _URL}", | |
| 119 | colo r: "danger ", | |
| 120 | auth or_name: " ${author}" , | |
| 121 | text : "${build Status}", | |
| 122 | fiel ds: [ | |
| 123 | [ | |
| 124 | title: "Branch", | |
| 125 | value: "${env.GI T_BRANCH}" , | |
| 126 | short: true | |
| 127 | ], | |
| 128 | [ | |
| 129 | title: "Last Com mit", | |
| 130 | value: "${messag e}", | |
| 131 | short: false | |
| 132 | ], | |
| 133 | [ | |
| 134 | title: "Error", | |
| 135 | value: "${e}", | |
| 136 | short: false | |
| 137 | ] | |
| 138 | ] | |
| 139 | ] | |
| 140 | ]) | |
| 141 | ||
| 142 | th row e | |
| 143 | } | |
| 144 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.