Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Job Resource Update Script introduced in this article can be used to create and to update variables to JS7 - Job Resources.

An implementation for use with workflows is available from the JS7 - JITL SetJobResourceJob.

Job Resource Update Script

...

Code Block
titleExample for Update of a Job Resource Variable
linenumberstrue
./js7_set_job_resource.sh \
    --url=http://joc-2-0-primary:7446 \
    --controller-id=controller \
    --user=root \
    --password=root \
    --job-resource=/ProductDemo/Variables/pdConfigurationDataSecret \
    --key=configurationDataSecret \
    --env-var=CONFIGURATION_DATA_SECRET \
    --file=./config.ini \
    --encrypt-cert./foobar.crt

# updates the "configurationDataSecret" Job Resource variable from the configuration file specified
# encrypts the content of the file using the target Agent's certificate from the foobar.crt file
# creates the additional variable "configurationDateSecret_key" and the environment variable "CONFIGURATION_DATA_SECRET_key" that both hold the encrypted symmetric key and initialization vector

...

Resources

...