Skip to content

/AWS1/CL_AMF=>STARTJOB()

About StartJob

Starts a new job for a branch of an Amplify app.

Method Signature

IMPORTING

Required arguments:

IV_APPID TYPE /AWS1/AMFAPPID /AWS1/AMFAPPID

The unique ID for an Amplify app.

IV_BRANCHNAME TYPE /AWS1/AMFBRANCHNAME /AWS1/AMFBRANCHNAME

The name of the branch to use for the job.

IV_JOBTYPE TYPE /AWS1/AMFJOBTYPE /AWS1/AMFJOBTYPE

Describes the type for the job. The job type RELEASE starts a new job with the latest change from the specified branch. This value is available only for apps that are connected to a repository.

The job type RETRY retries an existing job. If the job type value is RETRY, the jobId is also required.

Optional arguments:

IV_JOBID TYPE /AWS1/AMFJOBID /AWS1/AMFJOBID

The unique ID for an existing job. This is required if the value of jobType is RETRY.

IV_JOBREASON TYPE /AWS1/AMFJOBREASON /AWS1/AMFJOBREASON

A descriptive reason for starting the job.

IV_COMMITID TYPE /AWS1/AMFCOMMITID /AWS1/AMFCOMMITID

The commit ID from a third-party repository provider for the job.

IV_COMMITMESSAGE TYPE /AWS1/AMFCOMMITMESSAGE /AWS1/AMFCOMMITMESSAGE

The commit message from a third-party repository provider for the job.

IV_COMMITTIME TYPE /AWS1/AMFCOMMITTIME /AWS1/AMFCOMMITTIME

The commit date and time for the job.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_AMFSTARTJOBRESULT /AWS1/CL_AMFSTARTJOBRESULT