Skip to content

Commit 5694d30

Browse files
committed
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 <!--- Before requesting review, please go through this 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
1 parent 6c862e2 commit 5694d30

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.teamcity/Deploy/DeployProject.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ object BuildPackage : BuildType({
4040
id = "Create_package"
4141
workingDir = "imod-python"
4242
scriptContent = """
43+
SET TEMP=%system.teamcity.build.checkoutDir%\tmpdir
44+
SET TMPDIR=%system.teamcity.build.checkoutDir%\tmpdir
45+
SET TMP=%system.teamcity.build.checkoutDir%\tmpdir
46+
4347
pixi run --environment default --frozen rm --recursive --force dist
4448
pixi run --environment default --frozen python -m build
4549
""".trimIndent()
@@ -273,6 +277,10 @@ object DeployPages : BuildType({
273277
workingDir = "imod-python"
274278
scriptContent = """
275279
echo on
280+
echo "Setup git"
281+
git config --global user.email "svc-teamcity-ansible@DIRECTORY.INTRA"
282+
git config --global user.name "SVC TeamCity Ansible"
283+
276284
echo "Checkout imod-python-pages"
277285
git remote set-url origin https://%GH_USER%:%env.GH_TOKEN%@github.com/Deltares/imod-python.git
278286
git fetch origin gh-pages

0 commit comments

Comments
 (0)