Skip to content
Christian Bruckmayer edited this page Sep 25, 2018 · 5 revisions

OSC

osc is the command line tool to communicate with OBS.

Tips & Tricks

Aliases

Because we have several OBS instances, most people maintain several aliases to communicate with the correct OBS instance:

# in .alias
# Internal osc build.suse.de
alias iosc='osc -A iosc'
# Development osc localhost:3000
alias dosc='osc -A dosc'
# in .oscrc
[https://api.suse.de]
aliases = iosc
user = cbruckmayer

[http://localhost:3000]
aliases = dosc
user = Admin
pass = opensuse
#user= Iggy
#pass= opensuse

Review apps

You can communicate with the review apps like this:

osc -A https://obs-reviewlab.opensuse.org/vpereira-binaries_bootstrap/ api about

where https://obs-reviewlab.opensuse.org/vpereira-binaries_bootstrap/ is the URL of the review-app.

Settings

There are some handy settings you should do in your .oscrc:

# Installs these packages additionally in your build environment
# Comes handy for debugging
extra-pkgs = vim gdb strace grep

Clone this wiki locally