github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/jenkins-x-unit.yml (about)

     1  buildPack: none
     2  pipelineConfig:
     3    pipelines:
     4      pullRequest:
     5        pipeline:
     6          agent:
     7            image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
     8          stages:
     9            - name: ci
    10              environment:
    11                - name: GIT_COMMITTER_EMAIL
    12                  value: jenkins-x@googlegroups.com
    13                - name: GIT_AUTHOR_EMAIL
    14                  value: jenkins-x@googlegroups.com
    15                - name: GIT_AUTHOR_NAME
    16                  value: jenkins-x-bot
    17                - name: GIT_COMMITTER_NAME
    18                  value: jenkins-x-bot
    19                - name: BASE_WORKSPACE
    20                  value: /workspace/source
    21                - name: GOPROXY
    22                  value: http://jenkins-x-athens-proxy:80
    23                - name: JUNIT_REPORT
    24                  value: "true"
    25                - name: PARALLEL_BUILDS
    26                  value: "2"
    27                - name: DISABLE_TEST_CACHING
    28                  value: "true"
    29              options:
    30                containerOptions:
    31                  resources:
    32                    limits:
    33                      cpu: 4
    34                      memory: 8Gi
    35                    requests:
    36                      cpu: 3
    37                      memory: 3072Mi
    38              steps:
    39                - name: init-jx
    40                  image: gcr.io/jenkinsxio/builder-jx:0.1.639
    41                  command: jx
    42                  args: ['create','git','token','-n','fake','-t','1234','-u','https://github.com','fake']
    43  
    44                - name: build
    45                  image: docker.io/golang:1.13.8
    46                  command: make
    47                  args: ['build']
    48  
    49                - name: unit-test
    50                  image: docker.io/golang:1.13.8
    51                  command: make
    52                  args: ['test']