Coder Social home page Coder Social logo

Create Pipeline about azure-devops-go-api HOT 8 OPEN

microsoft avatar microsoft commented on May 12, 2024 3
Create Pipeline

from azure-devops-go-api.

Comments (8)

kpfaulkner avatar kpfaulkner commented on May 12, 2024 1

@raboley Currently unsure. No success myself... was hoping someone at MS might be able to answer the question here.

from azure-devops-go-api.

anythingascode avatar anythingascode commented on May 12, 2024 1

pipeClient.CreatePipeline is not working , i am getting following error and i dont see any Path parameter.
Value cannot be null.
Parameter name: Path
exit status 1

@kpfaulkner did you able to fix the issue?

from azure-devops-go-api.

raboley avatar raboley commented on May 12, 2024

Was wondering if writing my pipelines in go was possible and based on this issue that seems to be most likely not true. Is that correct?

from azure-devops-go-api.

raboley avatar raboley commented on May 12, 2024

@raboley Currently unsure. No success myself... was hoping someone at MS might be able to answer the question here.

I switched to just writing a go cli tool that holds all business logic, and then my pipeline just installs and runs commands from that tool to minimize the logic embedded in the pipelines.

from azure-devops-go-api.

yradsmikham avatar yradsmikham commented on May 12, 2024

Agreed with all the above comments. CreatePipeline does not appear to be in a mature state as it is missing: path, repository.id, repository.name, and repository.type.

Here's a blog that covers it more in detail: https://blog.johnnyreilly.com/2021/05/08/create-pipeline-with-azure-devops-api

Any update on this?

from azure-devops-go-api.

verthais avatar verthais commented on May 12, 2024

I've run into the issue where I try to create pipeline

func CreatePipeline(ctx *context.Context, conn *azuredevops.Connection, repository *string) (*pipelines.Pipeline, error) {
	pipeClient := pipelines.NewClient(*ctx, conn)
	name := fmt.Sprintf("%sPipeline", *repository)

	args := pipelines.CreatePipelineArgs{
		Project: project,
		InputParameters: &pipelines.CreatePipelineParameters{
			Name:   &name,
			Configuration: &pipelines.CreatePipelineConfigurationParameters{
				Type: &pipelines.ConfigurationTypeValues.Yaml,
			},
		},
	}

	respones, err := pipeClient.CreatePipeline(*ctx, args)
	if err != nil {
		return nil, err
	}

	return respones, nil
}

And I'm getting an error

YYYY/MM/DD HH:MM:SS Failed to create: pipeline Value cannot be null.
Parameter name: Path

However there is no place to specify Path for module pipelines

from azure-devops-go-api.

AdamRussak avatar AdamRussak commented on May 12, 2024

same here, is it marked as an bug/error? or are we missing something?

from azure-devops-go-api.

LTomer avatar LTomer commented on May 12, 2024

I also got the same error meesage.
Is there an estaimated time to fix this issue?

from azure-devops-go-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.