Skip to content

edgeXGeneric

⚠️ Deprecated will be removed in a future version. DO NOT USE ⚠️

edgeXGeneric([
    project: 'edgex-go',
    mavenSettings: ['edgex-go-codecov-token:CODECOV_TOKEN'], (optional)
    credentials: [string(credentialsId: 'credential-id-here', variable: 'APIKEY')], (optional)
    env: [
        GOPATH: '/opt/go-custom/go'
    ],
    path: [
        '/opt/go-custom/go/bin'
    ],
    branches: [
        '*': [
            pre_build: ['shell/install_custom_golang.sh'],
            build: [
                'make test raml_verify && make build docker',
                'shell/codecov-uploader.sh'
            ]
        ],
        'main': [
            post_build: [ 'shell/edgexfoundry-go-docker-push.sh' ]
        ]
    ]
])