📜  jenkins docker withRegistry - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:17.409000             🧑  作者: Mango

代码示例1
node {
    checkout scm

    docker.withRegistry('https://registry.example.com', 'credentials-id') {

        def customImage = docker.build("my-image:${env.BUILD_ID}")

        /* Push the container to the custom Registry */
        customImage.push()
    }
}