Comments (8)
@raboley Currently unsure. No success myself... was hoping someone at MS might be able to answer the question here.
from azure-devops-go-api.
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.
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 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.
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.
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.
same here, is it marked as an bug/error? or are we missing something?
from azure-devops-go-api.
I also got the same error meesage.
Is there an estaimated time to fix this issue?
from azure-devops-go-api.
Related Issues (20)
- Add Support for Service Principal and Managed Identities HOT 2
- Pipeline general setting -Cannot config disable creation of classic build and classic release pipelines HOT 6
- This repo is missing important files
- v6 + v7 pipelines module don't return continuationToken
- Get user status (active/inactive) - inactive field is deprecated.
- Support for `tokens/pats` API methods
- v7 create service endpoint missing project name field in argument.
- Alternative of PAT for authentication? HOT 1
- Unable to create Pipeline: Value cannot be null. Parameter name: Path HOT 2
- [Feature Request] Add support to list and manage service principals identities
- Add pipeline configuration details in pipeline client
- [Feature Request] Include pipeline data in Approval object in v7 pipeline approvals
- [Feature Request] Include Security Role Assignment HOT 3
- TFVC ChangeSet changes api doesn't support pagination in the request Input. HOT 1
- Graph::ListUsers API Fails to Return `IsDeletedInOrigin` Property Value
- Question: Is it possible to retrieve a list of all repositorys and their clone urls of a project? HOT 1
- How to customize the http.client? HOT 1
- [V7] ReadIdentities doens't work as intended
- [V7] GetSelf panic
- Resource interface{} structure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-devops-go-api.