bazarms / jobflow

A tool written in Go designed to execute a flow of jobs, which are themselves composed of tasks, as the same way of Ansible or some CI tools such as Travis, Gitlab or Circle.
GNU General Public License v3.0
2 stars 0 forks source link

[flow]: Jobs being executed randomly in the flow, not in the order defined in the flow file #55

Closed uthng closed 5 years ago

uthng commented 5 years ago

Need to check that while parsing flow file, jobs are added in the order as defined in the flow file (maybe an issue caused by using map)

uthng commented 5 years ago

the fix [e928c4f](/uthng/jobflow/commit/e928c4f326a378e94981a23b916db7faf79c50b7) does not work correctly. In order to be sure that jobs are executed in the same order as defined in the configuration file, we need to put jobs in an array under jobs. In this case, just like task, each job has a default name: job-1, job-2 etc. if name is not specified.