Merge remote-tracking branch 'origin/production'
This commit is contained in:
commit
d4513a8a6a
1 changed files with 31 additions and 0 deletions
31
somsoftware/sominfo.groovy
Normal file
31
somsoftware/sominfo.groovy
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
def somsoftwareinfostore = null
|
||||
|
||||
/* Example expected JSON
|
||||
{
|
||||
"Artifact info": {
|
||||
"Location": "Jenkins job artifact",
|
||||
"Job": "SOM_GIS_master/SOM_GIS_master_build",
|
||||
"Job selector": "<stable>true</stable>",
|
||||
"Release repo": "git@hydra:som_gis-releases/som_gis_whole.git",
|
||||
"Release repo revision": ""
|
||||
}
|
||||
}*/
|
||||
|
||||
def String asJsonText() {
|
||||
return writeJSON(returnText: true, json: somsoftwareinfostore, pretty: 1)
|
||||
}
|
||||
|
||||
def boolean exists() {
|
||||
return (somsoftwareinfostore != null)
|
||||
}
|
||||
|
||||
def set(String jsontext) {
|
||||
somsoftwareinfostore = readJSON(text: jsontext)
|
||||
echo "Som software support info:\n${asJsonText()}"
|
||||
}
|
||||
|
||||
def get() {
|
||||
return somsoftwareinfostore
|
||||
}
|
||||
|
||||
return this
|
||||
Loading…
Add table
Add a link
Reference in a new issue