blob: 10b96b4fac39df36aad5b06c9cec9f9e29276161 [file] [log] [blame]
Gary Wu39a2f2f2017-11-10 13:38:28 -08001#!/bin/bash -x
Gary Wu5cccfa92017-08-02 12:03:10 -07002#
3# Copyright 2017 Huawei Technologies Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
Gary Wu213a8352017-06-16 13:44:28 -070011
Gary Wu3824c752017-06-22 12:40:23 -070012cd ~jenkins
Gary Wu213a8352017-06-16 13:44:28 -070013git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070014git commit -m 'Installed plugins, restarted Jenkins' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070015
16
17mkdir -p ~/.config/jenkins_jobs
18cp /vagrant/jenkins_jobs.ini ~/.config/jenkins_jobs
19
Gary Wu39a2f2f2017-11-10 13:38:28 -080020pip -v install --user jenkins-job-builder
21pip list
Gary Wu213a8352017-06-16 13:44:28 -070022
Gary Wu39a2f2f2017-11-10 13:38:28 -080023jenkins-jobs update -r /vagrant/jjb
Gary Wu213a8352017-06-16 13:44:28 -070024
25cat > .gitignore <<EOF
26jobs/*/builds
27jobs/*/last*
28workspace/
29.m2/repository/
30logs/
31EOF
32
33git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070034git commit -m 'Set up initial jobs' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070035