Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Colas Pomies
LbNightlyTools
Commits
dc9c4409
Commit
dc9c4409
authored
May 05, 2015
by
cpomies
Browse files
Added script for test localy jenkins script
parent
d396504c
Changes
6
Hide whitespace changes
Inline
Side-by-side
jenkins/mock/clean_build.sh
0 → 100755
View file @
dc9c4409
#!/bin/bash
rm
expected_builds.json
rm
-f
build.sh.
*
.env
rm
-rf
artifacts build tmp
jenkins/mock/clean_checkout.sh
0 → 100755
View file @
dc9c4409
#!/bin/bash
rm
-f
slot-precondition-
*
.txt slot-build-
*
.txt
rm
-f
checkout.sh.
*
.env check_preconditions.sh.
*
.env
rm
-rf
artifacts tmp
jenkins/mock/clean_enabled_slots.sh
0 → 100755
View file @
dc9c4409
#!/bin/bash
rm
-f
slot-params-
*
.txt
rm
-f
enabled_slots.sh.
*
.env
rm
-rf
artifacts
${
JENKINS_HOME
}
tmp
jenkins/mock/clean_preconditions.sh
0 → 100755
View file @
dc9c4409
#!/bin/bash
rm
-f
preconditions.sh.
*
.env
rm
-rf
artifacts tmp
jenkins/mock/clean_rsync.sh
0 → 100755
View file @
dc9c4409
#!/bin/bash
ssh
${
RSYNC_SERVER
}
rm
-rf
${
RSYNC_WORKDIR
}
testMock.sh
0 → 100755
View file @
dc9c4409
#!/bin/bash
export
platform
=
${
CMTCONFIG
:-
x86_64
-slc6-gcc48-opt
}
export
slots
=
"lhcb-test-new-config"
#export slots="lhcb-compatibility"
#Clean all
jenkins/mock.sh mock/clean_rsync None master
jenkins/mock.sh mock/clean_build None master
jenkins/mock.sh mock/clean_preconditions None master
jenkins/mock.sh mock/clean_checkout None master
jenkins/mock.sh mock/clean_enabled_slots None master
jenkins/mock.sh enabled_slots None master
files
=
`
ls
slot-params-
*
.txt
`
jenkins/mock.sh mock/clean_enabled_slots None master
slots
=
""
for
file
in
${
files
}
;
do
slot
=
${
file
%.txt*
}
slot
=
${
slot
#*slot-params-
}
slots
=
"
${
slots
}
${
slot
}
"
jenkins/mock.sh checkout
${
slot
}
${
platform
}
files_preconditions
=
"
${
files_preconditions
}
`
ls
slot-precondition-
*
.txt
`
"
files_build
=
"
${
files_build
}
`
ls
slot-
*
.txt
`
"
jenkins/mock.sh mock/clean_checkout
${
slot
}
${
platform
}
done
for
file
in
${
files_preconditions
}
;
do
touch
${
file
}
done
for
slot
in
${
slots
}
;
do
for
file
in
`
ls
slot-precondition-
${
slot
}
-
*
.txt
`
;
do
platform
=
${
file
%.txt*
}
platform
=
${
platform
#*
${
slot
}
-
}
rm
${
file
}
jenkins/mock.sh preconditions
${
slot
}
${
platform
}
jenkins/mock.sh mock/clean_preconditions
${
slot
}
${
platform
}
done
done
for
file
in
${
files_build
}
;
do
touch
${
file
}
done
for
slot
in
${
slots
}
;
do
for
file
in
`
ls
slot-
*
-
${
slot
}
-
*
.txt
`
;
do
platform
=
${
file
%.txt*
}
platform
=
${
platform
#*
${
slot
}
-
}
rm
${
file
}
jenkins/mock.sh build
${
slot
}
${
platform
}
exit
0
jenkins/mock.sh mock/clean_build
${
slot
}
${
platform
}
done
done
#jenkins/mock.sh mock/clean_rsync None master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment