<commit_before>pipeline {
    environment {
        specName = 'Docker'
    }
    agent {
        label 'docker'
    }
    parameters {
        string(
            defaultValue: 'master',
            description: 'Tag/Branch for pmm-server repository',
            name: 'GIT_BRANCH')
        string(
            defaultValue: 'perconalab/pmm-server',
            description: 'Docker Hub repository',
            name: 'TAG')
    }
    options {
        skipDefaultCheckout()
        disableConcurrentBuilds()
    }
    triggers {
        upstream upstreamProjects: 'pmm-dashboards-package,pmm-manage-package,pmm-managed-package,pmm-qan-api-package,pmm-qan-app-package,pmm-qan-app2-package,pmm-server-package,pmm-server-packages,pmm-update-package', threshold: hudson.model.Result.SUCCESS
    }

    stages {
        stage('Prepare') {
            steps {
                slackSend channel: '#pmm-ci', color: '#FFFF00', message: "[${specName}]: build started - ${env.BUILD_URL}"
                git poll: false, branch: GIT_BRANCH, url: 'https://github.com/percona/pmm-server.git'
                sh """
                    export IMAGE="${TAG}:\$(date -u '+%Y%m%d%H%M')"
                    echo \$IMAGE> IMAGE
                """
            }
        }

        stage('Build Image') {
            steps {
                sh 'docker build --no-cache -t \$(cat IMAGE) .'
                stash includes: 'IMAGE', name: 'IMAGE'
                archiveArtifacts 'IMAGE'
            }
        }

        stage('Upload') {
            steps {
                sh """
                    docker tag  \$(cat IMAGE) ${TAG}:dev-latest
                    docker push \$(cat IMAGE)
                    docker push ${TAG}:dev-latest
                    docker rmi  \$(cat IMAGE)
                    docker rmi  ${TAG}:dev-latest
                """
            }
        }
    }
<commit_msg>add "docker pull" before build container<commit_after>pipeline {
    environment {
        specName = 'Docker'
    }
    agent {
        label 'docker'
    }
    parameters {
        string(
            defaultValue: 'master',
            description: 'Tag/Branch for pmm-server repository',
            name: 'GIT_BRANCH')
        string(
            defaultValue: 'perconalab/pmm-server',
            description: 'Docker Hub repository',
            name: 'TAG')
    }
    options {
        skipDefaultCheckout()
        disableConcurrentBuilds()
    }
    triggers {
        upstream upstreamProjects: 'pmm-dashboards-package,pmm-manage-package,pmm-managed-package,pmm-qan-api-package,pmm-qan-app-package,pmm-qan-app2-package,pmm-server-package,pmm-server-packages,pmm-update-package', threshold: hudson.model.Result.SUCCESS
    }

    stages {
        stage('Prepare') {
            steps {
                slackSend channel: '#pmm-ci', color: '#FFFF00', message: "[${specName}]: build started - ${env.BUILD_URL}"
                git poll: false, branch: GIT_BRANCH, url: 'https://github.com/percona/pmm-server.git'
                sh """
                    export IMAGE="${TAG}:\$(date -u '+%Y%m%d%H%M')"
                    echo \$IMAGE> IMAGE
                """
            }
        }

        stage('Build Image') {
            steps {
                sh """
                    docker pull centos:latest
                    docker build --no-cache -t \$(cat IMAGE) .
                """
                stash includes: 'IMAGE', name: 'IMAGE'
                archiveArtifacts 'IMAGE'
            }
        }

        stage('Upload') {
            steps {
                sh """
                    docker tag  \$(cat IMAGE) ${TAG}:dev-latest
                    docker push \$(cat IMAGE)
                    docker push ${TAG}:dev-latest
                    docker rmi  \$(cat IMAGE)
                    docker rmi  ${TAG}:dev-latest
                """
            }
        }
    }

{'fraction_non_alphanumeric': 0.12458086149084344, 'fraction_numerical': 0.0015475883415011606, 'mean_word_length': 1.4012383900928793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1837943', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1085, 'n_words': 214}