github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/jenkins-x-boot-lh-ghe.yml (about) 1 buildPack: none 2 pipelineConfig: 3 pipelines: 4 pullRequest: 5 pipeline: 6 agent: 7 image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6 8 options: 9 containerOptions: 10 resources: 11 limits: 12 cpu: 4 13 memory: 6144Mi 14 requests: 15 cpu: 1 16 memory: 2048Mi 17 stages: 18 - name: build 19 environment: 20 - name: GIT_COMMITTER_EMAIL 21 value: jenkins-x@googlegroups.com 22 - name: GIT_AUTHOR_EMAIL 23 value: jenkins-x@googlegroups.com 24 - name: GIT_AUTHOR_NAME 25 value: jenkins-x-bot 26 - name: GIT_COMMITTER_NAME 27 value: jenkins-x-bot 28 - name: BASE_WORKSPACE 29 value: /workspace/source 30 - name: GOPROXY 31 value: http://jenkins-x-athens-proxy:80 32 - name: PARALLEL_BUILDS 33 value: "2" 34 - name: GOOGLE_APPLICATION_CREDENTIALS 35 value: /secrets/kaniko/kaniko-secret.json 36 - name: DISABLE_TEST_CACHING 37 value: "true" 38 options: 39 volumes: 40 - name: kaniko-secret 41 secret: 42 secretName: kaniko-secret 43 items: 44 - key: kaniko-secret 45 path: kaniko/kaniko-secret.json 46 containerOptions: 47 volumeMounts: 48 - name: kaniko-secret 49 mountPath: /secrets 50 51 steps: 52 - name: build-binary 53 image: docker.io/golang:1.13.8 54 command: make 55 args: ['linux'] 56 57 - name: validate-binary 58 image: docker.io/golang:1.13.8 59 command: "./build/linux/jx" 60 args: ['help'] 61 62 - name: build-and-push-image 63 command: /kaniko/executor 64 args: 65 - --dockerfile=/workspace/source/Dockerfile.builder-jx 66 - --destination=gcr.io/jenkinsxio/builder-jx:$(inputs.params.version) 67 - --context=/workspace/source 68 - --cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/ 69 - --cache=true 70 - --cache-dir=/workspace 71 - --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000 72 73 - name: build-and-push-nodejs 74 command: /kaniko/executor 75 args: 76 - --dockerfile=/workspace/source/Dockerfile.builder-nodejs 77 - --destination=gcr.io/jenkinsxio/builder-nodejs:$(inputs.params.version) 78 - --context=/workspace/source 79 - --cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/ 80 - --cache=true 81 - --cache-dir=/workspace 82 - --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000 83 84 - name: build-and-push-maven 85 command: /kaniko/executor 86 args: 87 - --dockerfile=/workspace/source/Dockerfile.builder-maven 88 - --destination=gcr.io/jenkinsxio/builder-maven:$(inputs.params.version) 89 - --context=/workspace/source 90 - --cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/ 91 - --cache=true 92 - --cache-dir=/workspace 93 - --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000 94 95 - name: build-and-push-go 96 command: /kaniko/executor 97 args: 98 - --dockerfile=/workspace/source/Dockerfile.builder-go 99 - --destination=gcr.io/jenkinsxio/builder-go:$(inputs.params.version) 100 - --context=/workspace/source 101 - --cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/ 102 - --cache=true 103 - --cache-dir=/workspace 104 - --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000 105 106 - name: build-and-push-go-nodejs 107 command: /kaniko/executor 108 args: 109 - --dockerfile=/workspace/source/Dockerfile.builder-go-nodejs 110 - --destination=gcr.io/jenkinsxio/builder-go-nodejs:$(inputs.params.version) 111 - --context=/workspace/source 112 - --cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/ 113 - --cache=true 114 - --cache-dir=/workspace 115 - --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000 116 117 - name: e2e-tests 118 options: 119 volumes: 120 - name: sa 121 secret: 122 secretName: bdd-secret 123 items: 124 - key: bdd-credentials.json 125 path: bdd/sa.json 126 containerOptions: 127 volumeMounts: 128 - mountPath: /secrets 129 name: sa 130 environment: 131 - name: GKE_SA 132 value: /secrets/bdd/sa.json 133 - name: GIT_COMMITTER_EMAIL 134 value: jenkins-x@googlegroups.com 135 - name: GIT_AUTHOR_EMAIL 136 value: jenkins-x@googlegroups.com 137 - name: GIT_AUTHOR_NAME 138 value: jenkins-x-bot 139 - name: GIT_COMMITTER_NAME 140 value: jenkins-x-bot 141 - name: BASE_WORKSPACE 142 value: /workspace/source 143 - name: GOPROXY 144 value: http://jenkins-x-athens-proxy:80 145 - name: PARALLEL_BUILDS 146 value: "2" 147 - name: GHE_ACCESS_TOKEN 148 valueFrom: 149 secretKeyRef: 150 name: jx-pipeline-git-github-ghe 151 key: password 152 - name: JENKINS_PASSWORD 153 valueFrom: 154 secretKeyRef: 155 name: test-jenkins-user 156 key: password 157 steps: 158 - name: boot-lh-ghe-e2e-tests 159 image: gcr.io/jenkinsxio/builder-go-nodejs:$(inputs.params.version) 160 command: ./jx/bdd/boot-lh-ghe/ci.sh 161 162 - name: generate-report 163 image: gcr.io/jenkinsxio/builder-nodejs10x:0.1.607 164 command: jx 165 args: 166 - step 167 - report 168 - --in-dir 169 - /workspace/source/build/reports 170 - --target-report 171 - create_spring_application.junit.xml 172 - --merge 173 - --out-dir 174 - /workspace/source/build/reports 175 - --output-name 176 - junit.html 177 - --suite-name 178 - "BDD_Boot_LH_GHE_Tests" 179 180 - name: clear-kubeconfig 181 image: gcr.io/jenkinsxio/builder-go:$(inputs.params.version) 182 command: rm ~/.kube/config 183 184 - name: stash_html_report 185 image: gcr.io/jenkinsxio/builder-go:$(inputs.params.version) 186 command: jx 187 args: 188 - step 189 - stash 190 - -c 191 - e2e-tests 192 - -p 193 - "/workspace/source/build/reports/junit.html" 194 - --bucket-url gs://jx-prod-logs