Hi Marius, We have introduced APIs to create/edit repository <https://api.go.cd/16.12.0/#package-repositories> and package <https://api.go.cd/16.12.0/#packages> in GoCD 16.12.0, which is due to be out soon. You can download the experimental builds for the GoCD server here <https://www.go.cd/download/?experimental=true>.
Nice initiative about the documentation! Thank you. Varsha On Saturday, 12 November 2016 20:00:18 UTC+5:30, [email protected] wrote: > > Hi, > > Is there a way to create package material through the API? The > documentation shows no way, and I have no idea how to create a pipeline > from scratch in a fresh Go installation just using the API when the > pipeline relies on an Artifactory package. > I'm writing documentation to help people play around as well with local > servers using the API based on your docker image: > > https://hub.docker.com/r/gocd/gocd-server/ > > > Sample below: > > GO CD Api testing > <https://gitlab.app.betfair/marius.ciotlos/go-cd-pipelines#start-a-gocd-server-in-a-container>Start > > a go.cd server in a container > > Make sure you have a clean directory so we can also use docker volumes to > expose data directly outside for custom configs > > $ mkdir gocdwork > $ cd gocdwork > $ docker run -i -t -p 8153:8153 -p 8154:8154 --name gocd -v $PWD/conf:/etc/go > gocd/gocd-server > > Note if you don't want to use the name, you can use the Container ID: > > $ docker ps -f ancestor=gocd/gocd-server -q > > > <https://gitlab.app.betfair/marius.ciotlos/go-cd-pipelines#setup-authentication>Setup > > authentication > > Using the guide from: > https://docs.go.cd/16.7.0/configuration/dev_authentication.html > > $ pwd # make sure you're in gocdwork/ > $ htpasswd -c -s conf/passwd gocd # set your password > > > - Now to go your server config: > https://localhost:8154/go/admin/config/server > - In the Password File Settings please add: /etc/go/passwd > - Save your configuration and now login with gocd/[your password] > - Now you can use the API > > > > Cheers, > Marius > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
