Versions Compared

Key

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

Display feature availability
StartingFromRelease1.9

...

Introduction

The JobSchedulerSSHJob can run with either the Trilead implementation (default) or the JSch implementation by JCraftJobScheduler JITL SSH job uses either an SSH implementation from Trilead or, starting with JobScheduler version 1.9, an implementation of JCraft's JSch.

JSch is the default implementation for the JITL SSH job from JobScheduler version 1.10 onwards. The Trilead SSH implementation will not be supported from JobScheduler version 1.12 and removed later.

The JSch implementation for SSH connections adds the use of return values to the already existing functionality of the JobSchedulerSSHJob.

To use the JSch implementation in JobScheduler Version 1.9.x you have to configure the following parameter in the params section of the scheduler.xml, in newer versions you don´t have to configure this parameter.

The Trilead implementation is deprecated starting with JobScheduler 1.10.0 and will be removed in future releases. If you still want to use the Trilead SSH implementation in versions 1.10 and newer, change the below parameter value shown below to false in JobScheduler Releases 1.10.x.

Code Block
languagexml
<param name="jitl.ssh.use_jsch_impl" value="true"/>

...

Jira
serverSOS JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJITL-151

Jira
serverSOS JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJITL-446

Jira
serverSOS JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJITL-449

Passing variables back to the JobScheduler

...

  • format: 
    • <command> <placeholder1> = <placeholder2>
  • default value: 
    • export %1s%s=%2s'%s'
  • description: 
    • The command to set an environment variable. The values for placeholders 1 and 2 will be set implicitly at the start of the job execution. The placeholders are mandatory.

...

  • format: 
    • <command> <placeholder>
  • default value: 
    • rm %s
  • description:
    • The command to delete the temporary file with the return values. The placeholder will be substituted during the job execution. 

Parameters available starting with release 1.12.2

temp_dir

  • type
    • String
  • description:
    • This parameter is used to set the path of tte remote folder where the user has write privileges.
      •  if the parameter is not set the default working dir of the SSH session is used.

auto_detect_os

The SSH Job always tries to detect the remote OS and assumes the remote shell. The preCommandpostCommandRead and postCommandDelete parameters will be set automatically.

  • type
    • boolean
  • description:
    • If set to false this parameter deactivates the automatic setting of the above mentioned parameters, detection of the remote OS and shell will be carried out and logged regardlessly.
  • default value: 
    • true

Configuration

To use the return-values-feature configure a SSH job with JOE and choose JobSchedulerSSHJob

...