diff options
author | 2016-08-27 00:25:37 +0200 | |
---|---|---|
committer | 2016-08-31 12:06:45 +0200 | |
commit | e977155378fcbbd0826fa4a192b25273648d3782 (patch) | |
tree | e0877d31e042132403ccc18fa07f2b3ca742a3cc /jjb/sandbox/basic.sh | |
parent | 2db98ec846c009a95085d69e32c4e0518095a50c (diff) |
Create daily job for infra deployment, remove sandbox jobs and fix bugs
This change
- creates upstream daily job to trigger and control the execution of jobs
that provision nodes using bifrost, deployment using puppet-infracloud,
and simple smoke test job.
- fixes the hashbang placement in 2 of the scripts.
- removes sandbox dummy jobs as the infra jobs can serve as examples now.
Only the node provisioning job is functional at the moment.
Change-Id: I311d159956d8b7ce3f7a500fac5a7dcb459104cf
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/sandbox/basic.sh')
-rwxr-xr-x | jjb/sandbox/basic.sh | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/jjb/sandbox/basic.sh b/jjb/sandbox/basic.sh deleted file mode 100755 index 33268558c..000000000 --- a/jjb/sandbox/basic.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -#set -o errexit -#set -o nounset -#set -o pipefail - -# get the job type -# we only support verify, merge, daily and weekly jobs -if [[ "$JOB_NAME" =~ (verify|merge|daily|weekly) ]]; then - JOB_TYPE=${BASH_REMATCH[0]} -else - echo "Unable to determine job type!" - exit 1 -fi - -# do stuff differently based on the job type -case "$JOB_TYPE" in - verify) - echo "Running as part of verify job" - ;; - merge) - echo "Running as part of merge job" - ;; - daily) - echo "Running as part of daily job" - ;; - weekly) - echo "Running as part of weekly job" - ;; - *) - echo "Job type $JOB_TYPE is not supported!" - exit 1 -esac - -# this just shows we can get the patch/commit information -# no matter what job we are executed by -cd $WORKSPACE -echo -echo "Commit Message is" -echo "-------------------------------------" -git log --format=%B -n 1 $(git rev-parse HEAD) -echo "-------------------------------------" -echo -echo "Repo contents" -echo "-------------------------------------" -ls -al -echo "-------------------------------------" -echo -echo "Changed files are" -echo "-------------------------------------" -git diff origin/master --name-only -echo "-------------------------------------" -echo -echo "Change introduced" -echo "-------------------------------------" -git diff origin/master -echo "-------------------------------------" -echo -echo "git show" -echo "-------------------------------------" -git show -echo "-------------------------------------" - -sleep 60 |