Create a pipeline
Pick how to start, edit in the graph or in YAML, then save
Pick how to start
In the Pipelines menu, click New pipeline. A window opens where you choose How to start.
| How to start | What you get |
|---|---|
| Build only | Builds and tests the code |
| Deploy only | Deploys the chosen service to the chosen environment |
| Build and deploy | Build → deploy |
| Deploy after approval | Build → approval → deploy |
| Start from blank | No jobs yet. You can also bring in a language sample from Samples |
For the options that deploy, pick a service and an environment, then click Create. Picking a service fills in the repository to build and the image for you.
Graph and YAML
Click a job in the graph to change its settings in the side panel. Each setting is explained in Job settings. To add a job, click Add job.
Switch views with Graph and YAML at the top. Both show the same definition, so you can edit in either one.
Repository to build
A pipeline made on screen needs a repository picked under Codebase before it can run. Reference decides what to build: a branch, tag, CR or commit. To pick the repository each time you run, choose Runtime input.
Saving and the problem list
Enter a name and click Save.
If something needs fixing, an error count appears and the pipeline won't save. Click Fix in the list to open the side panel of that job or step. Warnings still let you save, but are worth a look.
Some problems, such as a misspelled key, a run condition expression or a name that already exists, are reported by the server after you click Save. They show up in the same problem list with a line number.
To throw away unsaved changes, click Revert. You go back to the last saved version.
Edit a saved pipeline
Open the pipeline and use the Edit pipeline tab. If you edit while a run is in progress, that run finishes with the definition it started with.