Executing repotools that are supported by the Engineering Lifecycle Management operator
Administrators and support team run the repotools in the Engineering Lifecycle Management on Hybrid Cloud containers when the server is running. You can use commands to run the repotool.
Following is the sample ELMOperation YAML file to run a repotool command:
apiVersion: elm.ibm.com/v1
kind: ELMOperation
metadata:
name: elmoperation-sample
namespace: repotool-test
spec:
allApplications: false
operationType: executeRepotoolCommand
repotoolCommand: backupJFSIndexes
repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=elm-auth-secret::SCIM_PROVIDER_USERID adminPassword=elm-auth-secret::SCIM_PROVIDER_PASSWORD
selectedApplications:
ldx: false
lqe: false
dcc: false
jts: true
rb: false
ccm: false
eni: false
rm: false
gc: false
qm: false
jas: false
Following are restrictive rules that are implemented to run repotool command by using the ELMOperation API
- allApplications
- This field needs to be set as false, as the execution of a particular repotool command on all applications together or parallel is not supported.
- selectedApplications
- This field needs only one application set to
true
, as running a repotool command on multiple applications simultaneously is not advisable. Also, application set totrue
must support repotool command execution.Note: JAS, LQE, LDX, RB applications do not support repotool execution.
- operationType
- This field is for ELMOperation instance creation to run repotool command. It needs to be set as
executeRepotoolCommand - repotoolCommand
- This field is used to input the repotool command to be executed. Traditionally, commands are
executed by using repotool
‘appname’.shfiles:./repotools-jts.sh -backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=ADMIN adminPassword=ADMINHowever, with ELMOperation yaml, you need to input the repotool command and its parameters in the following way:
For example,‘backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip’backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=elm-auth-secret::SCIM_PROVIDER_USERID adminPassword=elm-auth-secret::SCIM_PROVIDER_PASSWORD’For more information, see ELMOperation, execute Repotool commandsNote:- Default location for
‘teamserver.properties’argument for repotool commands is ‘/elm/server/conf/jts/teamserver.properties’ - The operator determines the execution mode (online or offline) for any supported command.
- For repotool commands that require any argument with input file path, you need to copy it to the
location
‘/elm/server/conf’and provide the path to the argument. For more information, see Repository tools command-line reference
- Default location for