indigo-dc / jenkins-pipeline-library

Jenkins pipeline library with common functionalities for CI/CD environments, mainly targeted for the implementation of the SQA baseline requirements from https://indigo-dc.github.io/sqa-baseline/
Apache License 2.0
11 stars 6 forks source link

Shell builder support #83

Open samuelbernardolip opened 4 years ago

samuelbernardolip commented 4 years ago

Related to the use case of passing multiple commands in config.yml, if that turns a common case, I propose to create a bash builder to generate a bash script to be supported by the library. This will be an additional solution like tox or maven, internally supported by the library, that will parse the multiple commands and create a bash script to be executed later inside container. This will also allow to process oneliners like the following: cd /jpl-validator && ./gradlew tasks

In command directive the above oneliner will not work because it expects the executable followed by the arguments to be invoked.