Hello everyone, for CI/CD purposes, we need to call prefect from Jenkins. There is no Restful API in prefect, so we need to use GraphQL. Is there any good example to share for Jenkins / Prefect integration?
k
Kevin Kho
04/22/2021, 1:24 AM
Hi @Ismail Cenik! I don’t have an example to share but it seems you can query GraphQL from Jenkins . Are you using this to start flows or register flows?
i
Ismail Cenik
04/22/2021, 8:01 AM
Hi @Kevin Kho, yes we want to start a flow
k
Kevin Kho
04/22/2021, 1:23 PM
You should be able to do this with the
create_flow_run
mutation
i
Ismail Cenik
04/22/2021, 10:04 PM
Thank you. I will try this.
r
Rob Fowler
04/22/2021, 10:08 PM
Also, if you look at the prefect cli directory, in the code for prefect run, it has everything you need to work it all out. I just ran the run and printed the graphql.