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
1diff --git a/jobs/infrastructure/common-job-prepare.sh b/jobs/infrastructure/common-job-prepare.sh
2new file mode 100644
3index 0000000..3dbc9fd
4--- /dev/null
5+++ b/jobs/infrastructure/common-job-prepare.sh
6@@ -0,0 +1,14 @@
7+JENKINS_JOBS_GIT_REPO="{jobs-git-repo}"
8+JENKINS_JOBS_GIT_REPO_BRANCH="{jobs-git-repo-branch}"
9+
10+if [ -n "${{CLEANUP_WORKSPACE}}" ] && [ "${{CLEANUP_WORKSPACE}}" -eq 1 ]; then
11+ rm -rf ${{WORKSPACE}}/*
12+fi
13+
14+cat << EOF > $WORKSPACE/.build_env
15+JENKINS_JOBS_REPO="{jobs-git-repo}"
16+JENKINS_JOBS_BRANCH="{jobs-git-repo-branch}"
17+JENKINS_CONFIG_REPO="{config-git-repo}"
18+JENKINS_CONFIG_BRANCH="{config-git-repo-branch}"
19+JENKINS_INSTANCE="{jenkins-instance}"
20+EOF

Subscribers

People subscribed via source and target branches