diff --git a/inventory.yml b/inventory.yml
index 8c472a1..ad576d4 100644
--- a/inventory.yml
+++ b/inventory.yml
@@ -5,7 +5,7 @@ all:
template-php-v1: # Job template (deactivated) which can be manually cloned.
foo:
repository_url: ssh://git@code.example.net:2020/foo
- deploy_url: prod.example.net:/var/www/test1234 # TODO: not implemented yet
+ post_build_shell_command: ssh jenkins@demos.example.net sg www-data /var/www/foo/build/deploy-update.sh $GIT_COMMIT
bar:
repository_url: ssh://git@code.example.net:2020/bar
branch_spec: '*/develop'
diff --git a/roles/jenkins-php-v1/templates/jobs/config.xml.j2 b/roles/jenkins-php-v1/templates/jobs/config.xml.j2
index 121aa3a..4f3e1f0 100644
--- a/roles/jenkins-php-v1/templates/jobs/config.xml.j2
+++ b/roles/jenkins-php-v1/templates/jobs/config.xml.j2
@@ -37,6 +37,11 @@
+{% if job.value.post_build_shell_command is defined %}
+
+ {{ job.value.post_build_shell_command }}
+
+{% endif %}