List current environments
Environment similar to workspace.
> jx get environment
Contains “team” settings, which is the meta information about the workspace.
kubectl get env dev -o yaml
Import quickstart
Import quickstart from default location https://github.com/jenkins-x-quickstarts:
> jx create quickstart
Start a pipeline
> jx start pipleline
Find logs for pull request
> jx get build log -f <pr-number>
Garbage collect pods and activities
> jx gc pods
> jx gc activities
GC cleanup is also configured as Cron Jobs in the cluster - jenkins-x-gcactivities, jenkins-x-gcpods, jenkins-x-gcpreviews.
Interactive editing of jenkins-x.yaml
> jx create step
Also helpful to understand the pipeline kinds release, pullrequest, feature as well as the lifecycle methods per pipline - setup, setversion, prebuild, build, postbuild, promote.
Show current ingress URLs
> jx open
or
> kubectl get ing
Change the current Kuberentes namespace
Instead of using kubectl
:
> jx ns
Display current context
> jx context
Cleanup GKE resources
> jx gc gke