dist/ci: rework spec.sh as obs-build-target using osc build
.
Instead of performing a slim rpm build and check directly inside the container a proper build is performed using `osc build`. The target package is checked out the _service file pointed at the local copy and then `osc service disabledrun` before building.
This commit is contained in:
13
dist/ci/osc-credentials
vendored
Executable file
13
dist/ci/osc-credentials
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
try:
|
||||
from osc import conf
|
||||
except:
|
||||
import sys
|
||||
sys.exit()
|
||||
|
||||
apiurl = conf.config['apiurl']
|
||||
cp = conf.get_configParser()
|
||||
|
||||
for key in ('user', 'pass', 'email'):
|
||||
print('{}="{}"'.format(key, cp.get(apiurl, key, raw=True)))
|
Reference in New Issue
Block a user