'Passing salt minion id to Jenkins pipeline from a flat file

I'm looking for some ideas there. I have a set of Jenkins pipeline jobs. The Target machine /Minion name is passed as a parameter into the job and the jobs are running fine. I have been asked to drive it through a file. .i.e. all the minion ids or target machine is listed in a flat file and I want Jenkins to pick machine names in the loop and execute the pipeline. The pipeline runs salt state files in the background. Any idea, how to achieve this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source