Skip to content

Commit

Permalink
Merge pull request #3697 from zowe/struga0258-patch-14
Browse files Browse the repository at this point in the history
Add return code to zis plugin install
  • Loading branch information
MarkAckert authored Jan 8, 2024
2 parents b3b76b7 + 62415b5 commit ca1841e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/libs/component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ zis_plugin_install() {

if [ $changed -eq 1 ]; then
copy_to_data_set "$parmlib_member_as_unix_file" "$zwes_zis_parmlib($zwes_zis_parmlib_member)" "" "true"
if [ $? != 0 ]; then
print_error "Error ZWEL0200E: Failed to copy USS file ${parmlib_member_as_unix_file} to MVS data set ${zwes_zis_parmlib}."
return 200
fi
fi
}

Expand Down
6 changes: 5 additions & 1 deletion bin/libs/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,11 @@ export function zisPluginInstall(pluginPath: string, zisPluginlib: string, zisPa
if (changed) {
common.printDebug(`Parmlib modified, writing as \n${parmlibContents}`);
xplatform.storeFileUTF8(parmlibMemberAsUnixFile, xplatform.AUTO_DETECT, parmlibContents);
zosdataset.copyToDataset(parmlibMemberAsUnixFile, `${zisParmlib}(${zisParmlibMember})`, "", true);
const rc = zosdataset.copyToDataset(parmlibMemberAsUnixFile, `${zisParmlib}(${zisParmlibMember})`, "", true);
if (rc != 0) {
common.printError(`Error ZWEL0200E: Failed to copy USS file ${parmlibMemberAsUnixFile} to MVS data set ${zisParmlib}.`);
return 200;
}
}
return 0;
}
Expand Down
14 changes: 14 additions & 0 deletions schemas/zowe-yaml-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -861,11 +861,25 @@
"properties": {
"network": {
"$ref": "#/$defs/networkSettings"
},
"job": {
"$ref": "#/$defs/componentJobSettings"
}
}
}
}
},
"componentJobSettings": {
"$anchor": "componentJobSettings",
"type": "object",
"description": "Component level overrides for job execution behavior",
"properties": {
"suffix": {
"type": "string",
"description": "Can be used by components to declare a jobname suffix to append to their job. This is not currently used by Zowe itself, it is up to components to use this value if desired. Zowe may use this value in the future."
}
}
},
"tlsSettings": {
"$anchor": "tlsSettings",
"type": "object",
Expand Down

0 comments on commit ca1841e

Please sign in to comment.