Skip to content

Commit

Permalink
Quickstart commands for activity separated
Browse files Browse the repository at this point in the history
  • Loading branch information
dcanadillas committed Mar 31, 2019
1 parent 0815af9 commit 0c0265f
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions workshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,17 @@ Quickstarts are very basic pre-made applications you can start a project from, i

You can create new applications from a list of curated Quickstart applications via the [`jx create quickstart` command](https://jenkins-x.io/commands/jx_create_quickstart/).

We will run the following quickstart command where the `-l go` will filter the list of available quickstarts to a specific language - Go in this case - and the `-f http` will filter for text that is part of the quickstart project names - so the following command will result in a list of Golang projects with 'http' in their names:

We will run a quickstart command whith following parameters:

- `-l go` will filter the list of available quickstarts to a specific language - Go in this case -
- `-f http` will filter for text that is part of the quickstart project names
- `-p jx-go` will set *jx-go* as the application project name (application and git repo name)

So, the following command will result in a list of Golang projects with 'http' in their names and will set the repo name in Git as *jx-go*:

```bash
jx create quickstart -l go -f http
jx create quickstart -l go -f http -p jx-go
```

In this case there is only one match so it will automatically choose that one for you and move right to setting it up.
Expand All @@ -97,7 +105,7 @@ When prompted for:

**? GitHub user name:** choose the default value, which should be your own GitHub account username that you specified in the previous step.

**?* API Token:**- enter your GitHub personal access token. If you don't have one then click on this [link](https://github.com/settings/tokens/new?scopes=repo,read:user,read:org,user:email,write:repo_hook,delete_repo) - logging in to GitHub with the same GitHub account used in the previus steps and enter the API token.
**? API Token:**- enter your GitHub personal access token. If you don't have one then click on this [link](https://github.com/settings/tokens/new?scopes=repo,read:user,read:org,user:email,write:repo_hook,delete_repo) - logging in to GitHub with the same GitHub account used in the previus steps and enter the API token.

**? Enter the new repository name:** - this will be your project name and the name of the repository created for the project. We will all call 'go-http', so enter **go-http**.

Expand All @@ -119,12 +127,25 @@ After you finish responding to the prompts a Jenkins X quickstart will automate
* add the git repository to your teams Jenkins
* trigger the first pipeline

Watch pipeline activity via:
```bash
jx get activity -f jx-go-http -w
```
Browse the pipeline log via:
```bash
jx get build logs kmadel/jx-go-http/master
```
Open the Jenkins console via:
```bash
jx console
```
You can list the pipelines via:
```bash
jx get pipelines
```
When the pipeline is complete:
```bash
Watch pipeline activity via: jx get activity -f jx-go-http -w
Browse the pipeline log via: jx get build logs kmadel/jx-go-http/master
Open the Jenkins console via jx console
You can list the pipelines via: jx get pipelines
When the pipeline is complete: jx get applications
jx get applications
```

And you can take a look at your project in CKCD.
Expand Down

0 comments on commit 0c0265f

Please sign in to comment.