Module: pipelineConfig

Represents the pipeline config page of classic jenkins. Used from within @see module:pipelineCreate

Example

self.api.page.pipelineConfig().forJob(jobName)
 .setPipelineScript(script)
 .click('@save', oncreated);

Methods


<inner> forJob(jobName)

Returns the config page of a certain job

Parameters:
Name Type Description
jobName String

name of the job to configure

Returns:

self - nightwatch page object

Type
Object

<inner> readTestScript(script)

Synchrony read the script file if exists

Parameters:
Name Type Description
script String

file name

Returns:
Type
*

<inner> setPipelineScript(script)

Set the pipeline script to the correct input field and then saves the form

Parameters:
Name Type Description
script String

the name of the script that shoould be used to be injected. Has to be present in ROOT/src/test/resources/test_scripts

Returns:

self - nightwatch page object

Type
Object