Skip to content

Commit

Permalink
give jenkins rights to the folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jul 18, 2023
1 parent fd9dc13 commit 2a12d9d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ci/dagger-pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ async def main():
client.container().from_(f"pavics/workflow-tests:{BASE_IMAGE_TAG}")
# copy files to container
.with_directory(
"/code", client.host().directory(".", exclude=[".git", "ci"])
"/code",
client.host().directory(".", exclude=[".git", "ci"], owner="jenkins"),
)
)

# run notebooks
notebooks = (
sources.with_exec(notebook_sanitizer("/code/docs/source/notebooks"))
sources.with_exec(
notebook_sanitizer(SANITIZE_FILE_URL, "/code/docs/source/notebooks")
)
.with_env_variable("PAVICS_HOST_URL", PAVICS_HOST_URL)
.with_exec(test_notebooks("/code/docs/source/notebooks"))
)
Expand All @@ -66,13 +69,13 @@ async def main():
print(notebook_tests)


def notebook_sanitizer(notebook_path: str) -> list[str]:
def notebook_sanitizer(file_url: str, notebook_path: str) -> list[str]:
logging.debug("Copying notebook output sanitizer ...")

cmd = [
"curl",
"-L",
SANITIZE_FILE_URL,
file_url,
"-o",
f"{notebook_path}/output-sanitize.cfg",
"--silent",
Expand Down

0 comments on commit 2a12d9d

Please sign in to comment.