Limited
Limited

Reputation: 25

Create Azure Devops pipeline without code checkout

I have an Azure DevOps pipeline that i use to run scripts for exporting and importing Dynamics solutions between servers. These solution imports/exports dont require any code from a repository. I would like to just run the pipeline without the need to checkout code to speed it up and remove unneccecary steps. Is there a way to do this?

If i am not mistaken, i use the 'classic' versions of pipelines.

Upvotes: 1

Views: 2561

Answers (3)

Chris F Carroll
Chris F Carroll

Reputation: 12378

For a yml pipeline, add or change the checkout step at the top of the -steps list, to checkout: none

steps:
- checkout: none

Upvotes: 0

Haiku
Haiku

Reputation: 1

You can also use a classic release pipeline instead of build pipeline.

Release pipelines do not require any repository to be able to run, as opposed to classic build pipelines and YAML pipelines.

Screenshot of Azure DevOps menu

Upvotes: 0

Shamrai Aleksander
Shamrai Aleksander

Reputation: 16188

You can check the Don't sync sources option on the Get Sources step:

enter image description here

Upvotes: 4

Related Questions