- job:
    name: 'senlu-test-config-upload'
    description: 'Build testgrid config from github and upload to gcs'
    node: 'master'
    properties:
        - build-discarder:
            num-to-keep: 20
    triggers:
        - pollscm:
            cron: '* * * * *'
    scm:
        - git:
            branches:
            - config_external
            browser: githubweb
            browser-url: https://github.com/krzyzacy/test-infra
            basedir: go/src/k8s.io/test-infra
            skip-tag: true
            url: https://github.com/krzyzacy/test-infra
            wipe-workspace: false
    wrappers:
        - e2e-credentials-binding
        - inject:
            properties-content: |
                GOROOT=/usr/local/go
                GOPATH=$WORKSPACE/go
                PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin
        - workspace-cleanup:
            dirmatch: true
            external-deletion-command: 'sudo rm -rf %s'
    builders:
        - activate-gce-service-account
        - shell: |
            export CONFIGDIR=k8s.io/test-infra/testgrid/config
            go run $CONFIGDIR/main.go $CONFIGDIR/config.yaml $CONFIGDIR/config
            gsutil cp $GOPATH/src/$CONFIGDIR/config gs://testgrid-sen/config

Add my test jenkins job to build/upload config
Add my test jenkins job to build/upload config

So it will build and convert the config, and upload to my bucket for
testing purposes. Once everything works well we can change the bucket to
the real testgrid bucket
