blob: e9adeb63bce06f020bffd0e9a3df30f5f9aafba3 [file] [log] [blame]
Gary Wu213a8352017-06-16 13:44:28 -07001#!/bin/bash
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
20pip install --user jenkins-job-builder
21
22jenkins-job-builder update -r /vagrant/jjb
23
24cat > .gitignore <<EOF
25jobs/*/builds
26jobs/*/last*
27workspace/
28.m2/repository/
29logs/
30EOF
31
32git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070033git commit -m 'Set up initial jobs' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070034