how to achieve workflow like given bellow

31 views
Skip to first unread message

Nayan Makwana

unread,
Jul 26, 2022, 12:58:19 AM7/26/22
to go-cd
Screenshot_1.png

i want to archive this kind of work flow
1. the build process is not there because build is prepare by the developers
2. i am stuck at condition based running pipeline 
3 i want to define env or param which can be auto increase or decrease as per build id 

Thanks In advance

Ashwanth Kumar

unread,
Jul 26, 2022, 1:12:15 AM7/26/22
to go...@googlegroups.com
Hello,

Without getting into too much specifics, the way we used to construct conditional workflows are as follows: The condition is modelled as a stage in the pipeline A usually. The If-true is pipeline B and if-else is pipeline C.So you run your workflow and towards the end (on the last stage), you check the condition you want and if it's true trigger pipeline B, else pipeline C. You can use the APIs (or a simple cURL request to do that). This way you get all the benefits of using GoCD pipelines like better visibility, tracking, etc. To make identification easier, we also use the parent labels to track things better.

If you want any (mutable) state to be persisted and/or be available as part of the pipeline or to its dependents, IMHO the best way is to write the state in a file (JSON/CSV/text YMMV) and expose it as an/many artifacts to be consumed later in the pipeline or fetch it in downstream for later consumption.

Thanks,


--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/9bf8510b-d663-4c67-8572-adc91c766240n%40googlegroups.com.


--

Ashwanth Kumar / ashwanthkumar.in

Nayan Makwana

unread,
Jul 26, 2022, 1:41:09 AM7/26/22
to go-cd
Thank you @Ashwanthkumar

I have dropped mail to you. if you can help me I will be grateful
regards
Nayan Makwana

Nayan Makwana

unread,
Jul 26, 2022, 2:08:20 AM7/26/22
to go-cd
Hello All,
I just joined as a devops engineer. I don't have any experience in the devops field. I read the document of go-cd and started learning but at some point. I have some problems as
1. Ihow to create a user in gocd
2. How can I use api with gocd
3. the biggest problem is can how auto-change env or param value after deployment as per version

can any help me to solve this
Reply all
Reply to author
Forward
0 new messages