-
Notifications
You must be signed in to change notification settings - Fork 435
osc
Victor Pereira edited this page Sep 24, 2019
·
5 revisions
osc is the command line tool to communicate with OBS.
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
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. It is important to use https, otherwise you will get a 301 (Redirection)
which prevents you from doing anything but a GET.
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
# Make sure that your username is configured in osc for your development instance
osc copypac openSUSE:Factory PACKAGE_NAME --to-apiurl=http://localhost:3000 LOCAL_PROJECT
# Example copying package `hello` from remote project `openSUSE:Factory` to local project `home:Admin`
osc copypac openSUSE:Factory hello --to-apiurl=http://localhost:3000 home:Admin
If you want to create an announcement, which the users must accept (i.e EULA), you have to do it via osc.
dosc api -X POST -d '<announcement><title>foo</title><content>bar</content></announcement>' /announcements
- Development Environment Overview
- Development Environment Tips & Tricks
- Spec-Tips
- Code Style
- Rubocop
- Testing with VCR
- Authentication
- Authorization
- Autocomplete
- BS Requests
- Events
- ProjectLog
- Notifications
- Feature Toggles
- Build Results
- Attrib classes
- Flags
- The BackendPackage Cache
- Maintenance classes
- Cloud uploader
- Delayed Jobs
- Staging Workflow
- StatusHistory
- OBS API
- Owner Search
- Search
- Links
- Distributions
- Repository
- Data Migrations
- next_rails
- Ruby Update
- Rails Profiling
- Installing a local LDAP-server
- Remote Pairing Setup Guide
- Factory Dashboard
- osc
- Setup an OBS Development Environment on macOS
- Run OpenQA smoketest locally
- Responsive Guidelines
- Importing database dumps
- Problem Statement & Solution
- Kickoff New Stuff
- New Swagger API doc
- Documentation and Communication
- GitHub Actions
- How to Introduce Software Design Patterns
- Query Objects
- Services
- View Components
- RFC: Core Components
- RFC: Decorator Pattern
- RFC: Backend models