-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbootstrap.sh
executable file
·27 lines (19 loc) · 1.06 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Your CI server jobs should execute this script
# This script will download & source the Cloud Pipelines scripts and
# extensions scripts, and it will execute your job script of choice
####################
# Configure this section
# Set your Bintray username and maven repo root
# Set job script to run. Check extensions archive for options/examples.
M2_SETTINGS_REPO_USERNAME="ciberkleid"
M2_SETTINGS_REPO_ROOT="maven-repo"
jobScript="build-and-upload-fortune-service.sh"
####################
# The following section does not require configuration
echo -e "\n\n########## Run common scripts ##########"
rm -rf .git/tools-ext && mkdir -p .git/tools-ext && cd "${WORKSPACE}"/.git/tools-ext && curl -Lk "https://github.com/ciberkleid/cna-demo-setup/raw/master/cloud-pipelines/dist/cloud-pipelines-ext.tar.gz" -o pipelines-ext.tar.gz && tar xf pipelines-ext.tar.gz && cd "${WORKSPACE}"
source "${WORKSPACE}"/.git/tools-ext/custom/init-env.sh
echo -e "\n\n########## Run job script ##########"
echo "Executing script: [${jobScript}]"
source "${WORKSPACE_EXT}/${jobScript}"