How to automatically create the build pipeline on the Jenkins server following the
configuration defined in an XML file.
Before you begin
- Retrieve this file from the Downloads tab of the
documentation page:
- jenkins_pipeline_simple.xml
Procedure
-
Open a command prompt window, browse to the folder where the
jenkins_pipeline_simple.xml is located and execute the
following Curl command to automatically create your pipeline:
curl --location -g --request POST --header "Content-Type: application/xml" --data-binary @jenkins_pipeline_simple.xml -u <jenkins_username>:<jenkins_token> <jenkins_url>/createItem?name=TalendSimplePipeline
Note: Make sure you replace the
<jenkins_username>,
<jenkins_token> and
<jenkins_url> with the values corresponding to your
environment (username and API token needed to authenticate to Jenkins, and Jenkins
server URL).
-
Click OK to confirm the pipeline creation.
Results
The new pipeline named TalendSimplePipeline is displayed on your
Jenkins dashboard.