Merge ~kzapalowicz/snappy-hwe-snaps/+git/jenkins-jobs:fix/infrastructure-is-missing-file into ~snappy-hwe-team/snappy-hwe-snaps/+git/jenkins-jobs:master

Proposed by Konrad Zapałowicz
Status: Merged
Approved by: Simon Fels
Approved revision: 4fb056a7eaa62ccf9f6336c9257b0f37a19a14ec
Merged at revision: b3277654b857d00eb1618f23bb848cf83e7e50f3
Proposed branch: ~kzapalowicz/snappy-hwe-snaps/+git/jenkins-jobs:fix/infrastructure-is-missing-file
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/jenkins-jobs:master
Diff against target: 20 lines (+14/-0)
1 file modified
jobs/infrastructure/common-job-prepare.sh (+14/-0)
Reviewer Review Type Date Requested Status
Simon Fels Approve
System Enablement Bot continuous-integration Approve
Review via email: mp+328107@code.launchpad.net

This proposal supersedes a proposal from 2017-07-26.

Description of the change

jobs/infrastructure: add missing file

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Simon Fels (morphis) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/jobs/infrastructure/common-job-prepare.sh b/jobs/infrastructure/common-job-prepare.sh
0new file mode 1006440new file mode 100644
index 0000000..3dbc9fd
--- /dev/null
+++ b/jobs/infrastructure/common-job-prepare.sh
@@ -0,0 +1,14 @@
1JENKINS_JOBS_GIT_REPO="{jobs-git-repo}"
2JENKINS_JOBS_GIT_REPO_BRANCH="{jobs-git-repo-branch}"
3
4if [ -n "${{CLEANUP_WORKSPACE}}" ] && [ "${{CLEANUP_WORKSPACE}}" -eq 1 ]; then
5 rm -rf ${{WORKSPACE}}/*
6fi
7
8cat << EOF > $WORKSPACE/.build_env
9JENKINS_JOBS_REPO="{jobs-git-repo}"
10JENKINS_JOBS_BRANCH="{jobs-git-repo-branch}"
11JENKINS_CONFIG_REPO="{config-git-repo}"
12JENKINS_CONFIG_BRANCH="{config-git-repo-branch}"
13JENKINS_INSTANCE="{jenkins-instance}"
14EOF

Subscribers

People subscribed via source and target branches