Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference Import External Scripts in qDup yaml script #173

Open
johnaohara opened this issue Dec 19, 2022 · 0 comments
Open

Reference Import External Scripts in qDup yaml script #173

johnaohara opened this issue Dec 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@johnaohara
Copy link
Member

qDup provides the ability to define utility scripts in external .yaml files and pass those files as CLI arguments when starting thq qDup process, e.g. java -jar /path/to/qDup.jar ./myWorkflow.yaml ./utils/myUtilScripts.yaml

It is likely that many qDup scripts will fail if users attempted to execute the scripts,without passing the additional script paths on the command line. Therefore, the utility scripts form an integral part of the runtime environment. However, the dependency is not expressed in the script .yaml, but passed as parameters via the command line. In order to unify the script definition (including dependencies) it would make sense to include the the dependency information the actual script definition itself, something such as

import:
  - ./util/doSomething.yaml
  - https://raw.githubusercontent.com/Hyperfoil/qDup/master/docs/examples/helloWorld.yaml

scripts:
  - do-something:
    - sh: cd /tmp/something
    - script: do
      with:
          test: test2
@johnaohara johnaohara added the enhancement New feature or request label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant