From 05ac3f7a5e61d39f90ea8d7acec44daa7afbb8e3 Mon Sep 17 00:00:00 2001 From: Sunny Titus <77051845+Manangka@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:08:33 +0200 Subject: [PATCH] Issue #1224 Fix the Deploy pipelines (#1225) Fixes #1224 # Description After making the switch to docker build containers some issues popped up in the deploy pipeline: - There is an permission issue when writing to the temp directory. Symlinks cant be created. This has been resolved by changing the temp directory to a folder inside the docker container - Pushing the documentation failed because the git name and email weren't set # Checklist - [x] Links to correct issue - [ ] Update changelog, if changes affect users - [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737`` - [ ] Unit tests were added - [ ] **If feature added**: Added/extended example --- .teamcity/Deploy/DeployProject.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.teamcity/Deploy/DeployProject.kt b/.teamcity/Deploy/DeployProject.kt index 470d45358..6bbf8136a 100644 --- a/.teamcity/Deploy/DeployProject.kt +++ b/.teamcity/Deploy/DeployProject.kt @@ -40,6 +40,10 @@ object BuildPackage : BuildType({ id = "Create_package" workingDir = "imod-python" scriptContent = """ + SET TEMP=%system.teamcity.build.checkoutDir%\tmpdir + SET TMPDIR=%system.teamcity.build.checkoutDir%\tmpdir + SET TMP=%system.teamcity.build.checkoutDir%\tmpdir + pixi run --environment default --frozen rm --recursive --force dist pixi run --environment default --frozen python -m build """.trimIndent() @@ -273,6 +277,10 @@ object DeployPages : BuildType({ workingDir = "imod-python" scriptContent = """ echo on + echo "Setup git" + git config --global user.email "%env.USERNAME%@%env.USERDNSDOMAIN%" + git config --global user.name "%env.USERNAME%" + echo "Checkout imod-python-pages" git remote set-url origin https://%GH_USER%:%env.GH_TOKEN%@github.com/Deltares/imod-python.git git fetch origin gh-pages