- 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

- 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=$GOPATH/src/k8s.io/test-infra/testgrid/config
            go run $CONFIGDIR/main.go $CONFIGDIR/config.yaml $CONFIGDIR/config
            gsutil cp $CONFIGDIR/config gs://testgrid-sen/config

Fix some path issue in my test job
Fix some path issue in my test job

Now config uploads to mu bucket properly.
