Ability to return successfully from a job before completing all the next steps

circle.yml

#1

Hello,

I do not understand that there is a way to make a job return successfully after a particular step, bypassing deployment for example. Returning exit 0 from a bash step, continues on to the next step. I know about the multiple jobs and ability to trigger another deploy build but that doesn’t work well for us as the build artifacts (go binaries) cannot be shared between builds.

So i’m asking for a confirmation and whether we can expect such a feature later.

Thank you


#2

This will be possible with Workflows, “coming soon”.


#3

Ok thank you


#4

We have release Workflows. You can read about it here.


#5

@KunalJain
In workflow I can trigger jobs.
But how can I mark a job as successful without running all of its steps?


#6

To stop a job and mark it sucessfull:

  - steps:
    - run: circleci step halt

circleci is the same command used to run the build locally:
https://circleci.com/docs/2.0/local-jobs/


#7

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.