Merge remote-tracking branch 'origin/production'

This commit is contained in:
Dan Hawkins 2022-01-09 17:02:29 +00:00
commit d4513a8a6a

View 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