Override notebooks within Jenkinsfile#152
Conversation
|
I get the feeling you know where I'm going with this PR. Can you explain to me how I can pass environment variables from the Jenkins UI so that they're only expanded in the testall shell script? |
I think in the current state things should work. What's not working? |
|
Please remove the boilerplate in the PR description. That boilerplate was for a new Jupyter env docker image release. It's not for this case. Please summarize your change short and sweet in the PR description. No need for that boilerplate. |
Specifically, the environment variables from the Jenkins UI are not being expanded in the testall shell script: http://jenkins.ouranos.ca/job/PAVICS-e2e-workflow-tests/job/config-override-notebooks/9/console For pytest: for nbconvert: |
I'm going to propose some new templates for Pull Requests. |
Ah ! True, you'll need to |
|
@Zeitsperre Going through my old PRs to review, I've replied to you for this one. Have you tried it? Why is this PR in Draft mode by the way? Not sure you want to productize it? |
tlvu
left a comment
There was a problem hiding this comment.
Please just fix the PR description before merge.
Overview
This PR adds a new filtering mechanism to make it easier to quickly run tests against individual notebooks.
Changes
ALLOWLIST_NOTEBOOKSfield for providing a filter for notebooks to be runTesting Checklist
Related Issue / Discussion
The functionality was already possible by setting a gist with a filtering function and setting
CONFIG_PARAMETERS_SCRIPT_URLto pick up the script, overriding existing settings.The changes here make it so that this can simply be performed directly on Jenkins.