-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_commit.sh
More file actions
executable file
·38 lines (35 loc) · 945 Bytes
/
Copy pathgit_commit.sh
File metadata and controls
executable file
·38 lines (35 loc) · 945 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
b=1
date
while [ $b != 0 ]
do
git checkout -b perf-test-$b
parallel=$(($b+4))
awk -v p=$parallel 'BEGIN {FS="]"; OFS="";} NR==1 {$1=$1", "p"]"} {print $0}' Jenkinsfile | tee Jenkinsfile
while true
do
if [ -s Jenkinsfile ]
then
break
else
git stash
git stash drop
git clean -df
git checkout perf-test-$(($b-1))
git branch -D perf-test-$b
git checkout -b perf-test-$b
git status
awk -v p=$parallel 'BEGIN {FS="]"; OFS="";} NR==1 {$1=$1", "p"]"} {print $0}' Jenkinsfile | tee Jenkinsfile
git status
fi
done
git status
git add .
git status
git commit -m "new branch commit with incremental parallel jobs"
git push origin perf-test-$b
# commit frequency is calculated based on the time interval i.e. sleep
sleep 10
echo $b >> ~/JaaS/iteration-output-5cf-300MLF-foo-foo-sample1.txt
b=$(($b+1))
done