Finish a checkout and buildlog cycle
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 1s
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
This commit is contained in:
parent
d898fcca59
commit
527b90605c
10
osc_buildlog.sh
Executable file
10
osc_buildlog.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh -l
|
||||
|
||||
# echo $1 $2 $3
|
||||
# echo "${osc_user} ${osc_path} ${osc_package}"
|
||||
# echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}"
|
||||
# osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
|
||||
|
||||
cd "${INPUT_OSC_PATH}/${INPUT_OSC_PACKAGE}"
|
||||
osc buildlog openSUSE_Factory x86_64
|
||||
|
20
osc_checkout
Executable file
20
osc_checkout
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
|
||||
# echo $1 $2 $3
|
||||
# echo "${osc_user} ${osc_path} ${osc_package}"
|
||||
# echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}"
|
||||
|
||||
set timeout -1
|
||||
spawn osc checkout "$env(INPUT_OSC_PATH)" "$env(INPUT_OSC_PACKAGE)"
|
||||
expect {
|
||||
-re "..*Username \\\[api.opensuse.org\\\]: " { send "$env(INPUT_OSC_USER)\r"; exp_continue }
|
||||
-re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue }
|
||||
-re "..*Select credentials manager \\\[default=1\\\]:" { send "3\r"; exp_continue }
|
||||
-re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue }
|
||||
-re "..*At revision (..*)" { puts $expect_out(1,string);
|
||||
send "cd $env(INPUT_OSC_PATH)\r"; send "cd $env(INPUT_OSC_PACKAGE)\r";
|
||||
send "osc buildlog openSUSE_Factory x86_64\r";
|
||||
exp_continue }
|
||||
}
|
||||
|
@ -5,4 +5,6 @@ echo "${osc_user} ${osc_path} ${osc_package}"
|
||||
echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}"
|
||||
# osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
|
||||
# osc buildlog openSUSE_Factory x86_64
|
||||
/usr/bin/expect osc_checkout
|
||||
./osc_buildlog.sh
|
||||
|
||||
|
13
test.sh
13
test.sh
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
|
||||
# echo $1 $2 $3
|
||||
# echo "${osc_user} ${osc_path} ${osc_package}"
|
||||
# echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}"
|
||||
spawn osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
|
||||
expect "Username [api.opensuse.org]:\n"
|
||||
send "$env(INPUT_OSC_USER)\n"
|
||||
expect "Password [@api.opensuse.org]:\n"
|
||||
send "$env(osc_pass)\n"
|
||||
spawn osc buildlog openSUSE_Factory x86_64
|
||||
|
Loading…
x
Reference in New Issue
Block a user