Skip to content

Instantly share code, notes, and snippets.

@rawlingsj
Last active February 26, 2019 21:48
Show Gist options
  • Save rawlingsj/a2bc0619edb34ab507dcd418db6284e9 to your computer and use it in GitHub Desktop.
Save rawlingsj/a2bc0619edb34ab507dcd418db6284e9 to your computer and use it in GitHub Desktop.
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
creationTimestamp: null
labels:
branch: tekton1
jenkins.io/pipeline-from-yaml: "true"
owner: jenkins-x
repo: jx
name: jenkins-x-jx-tekton1
ownerReferences:
- apiVersion: tekton.dev/v1alpha1
kind: Pipeline
name: jenkins-x-jx-tekton1
uid: ""
spec:
Status: ""
params:
- name: version
value: 1.3.941
pipelineRef:
apiVersion: tekton.dev/v1alpha1
name: jenkins-x-jx-tekton1
resources:
- name: jenkins-x-jx-tekton1
resourceRef:
apiVersion: tekton.dev/v1alpha1
name: jenkins-x-jx-tekton1
- name: temp-ordering-resource
resourceRef:
apiVersion: tekton.dev/v1alpha1
name: temp-ordering-resource
serviceAccount: tekton-bot
trigger:
type: manual
status:
conditions: null
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
creationTimestamp: null
labels:
jenkins.io/pipeline-from-yaml: "true"
name: jenkins-x-jx-tekton1
namespace: jx
spec:
params: null
resources:
- name: jenkins-x-jx-tekton1
type: git
- name: temp-ordering-resource
type: image
tasks:
- name: ci
resources:
inputs:
- name: workspace
resource: jenkins-x-jx-tekton1
- name: temp-ordering-resource
resource: temp-ordering-resource
outputs:
- name: workspace
resource: jenkins-x-jx-tekton1
- name: temp-ordering-resource
resource: temp-ordering-resource
taskRef:
name: jenkins-x-jx-tekton1-ci
status: {}
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
creationTimestamp: null
labels:
jenkins.io/pipeline-from-yaml: "true"
name: jenkins-x-jx-tekton1
spec:
params:
- name: revision
value: v1.3.941
- name: url
value: https://github.com/jenkins-x/jx
type: git
status: {}
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
creationTimestamp: null
labels:
jenkins.io/pipeline-from-yaml: "true"
name: temp-ordering-resource
spec:
params:
- name: url
value: alpine
type: image
status: {}
metadata:
creationTimestamp: null
name: jenkins-x-jx-tekton1
pipelineRef: null
pipelineRunRef: null
stages:
- depth: 0
name: ci
taskRef: jenkins-x-jx-tekton1-ci
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
creationTimestamp: null
labels:
jenkins.io/pipeline-from-yaml: "true"
jenkins.io/task-stage-name: ci
name: jenkins-x-jx-tekton1-ci
namespace: jx
spec:
inputs:
resources:
- name: workspace
targetPath: workspace
type: git
- name: temp-ordering-resource
targetPath: ""
type: image
outputs:
resources:
- name: workspace
targetPath: ""
type: git
- name: temp-ordering-resource
targetPath: ""
type: image
steps:
- args:
- linux
command:
- make
env:
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
- name: GIT_COMMITTER_EMAIL
value: [email protected]
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: DOCKER_REGISTRY
value: 10.59.245.44:5000
- name: PIPELINE_KIND
value: release
- name: REPO_OWNER
value: jenkins-x
- name: REPO_NAME
value: jx
- name: JOB_NAME
value: jenkins-x/jx/tekton1
- name: BRANCH_NAME
value: tekton1
- name: JX_BATCH_MODE
value: "true"
- name: VERSION
value: ${inputs.params.version}
image: rawlingsj/executor:dev31
name: step2
resources: {}
volumeMounts:
- mountPath: /etc/podinfo
name: podinfo
readOnly: true
workingDir: /workspace/workspace
- args:
- --help
command:
- ./build/linux/jx
env:
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
- name: GIT_COMMITTER_EMAIL
value: [email protected]
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: DOCKER_REGISTRY
value: 10.59.245.44:5000
- name: PIPELINE_KIND
value: release
- name: REPO_OWNER
value: jenkins-x
- name: REPO_NAME
value: jx
- name: JOB_NAME
value: jenkins-x/jx/tekton1
- name: BRANCH_NAME
value: tekton1
- name: JX_BATCH_MODE
value: "true"
- name: VERSION
value: ${inputs.params.version}
image: rawlingsj/executor:dev31
name: step3
resources: {}
volumeMounts:
- mountPath: /etc/podinfo
name: podinfo
readOnly: true
workingDir: /workspace/workspace
volumes:
- downwardAPI:
items:
- fieldRef:
fieldPath: metadata.labels
path: labels
name: podinfo
chat:
kind: slack
url: http://kubernetes.slack.com/
developerChannel: '#jenkins-x-dev'
userChannel: '#jenkins-x-user'
pipelineConfig:
pipelines:
release:
pipeline:
agent:
image: rawlingsj/executor:dev31
stages:
- name: ci
environment:
- name: GIT_COMMITTER_EMAIL
value: [email protected]
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
steps:
- name: build-binary
image: docker.io/golang:1.11.5
command: make
args: ['linux']
workingDir: "/workspace/source"
env:
- name: GOPATH
value: /workspace/go
- name: GOPROXY
value: http://athens-proxy.jx.cd.jenkins-x.io
resources:
limits:
cpu: 4
memory: 6144Mi
requests:
cpu: 3
memory: 3072Mi
- name: validate-binary
image: docker.io/golang:1.11.5
command: "./build/linux/jx"
args: ['--help']
workingDir: "/workspace/source"
env:
- name: GOPATH
value: /workspace/go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment