<commit_before>test_ec2_k8s_basic = {
    node {
        git url: 'https://github.com/Juniper/container-networking-ansible.git'

        withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) {
            // create cluster
            sh("ansible-playbook -i localhost playbook.yml --tags=create -e job_id=$BUILD_TAG")
        }

        withCredentials([[$class: 'FileBinding', credentialsId: 'k8s-ssh-key', variable: 'SSH_PRIVATE_KEY']]) {
            sh("ansible-playbook -i localhost playbook.yml --private-key=$SSH_PRIVATE_KEY --tags=deployer-install")
            sh("ansible-playbook -i localhost playbook.yml --private-key=$SSH_PRIVATE_KEY --tags=workspace")
        }

        // ssh client steps:
        // provision cluster
        // validate
        // example application
        // verify

        withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) {
            // delete cluster
        }
    }
}

test_noop = {
    node {
        def job = hudson.model.Hudson.instance.getItem('container-networking-ansible')
        println "{$id}"
    }
}

def getTestMatrix() {
    def tests = [
        test_ec2_k8s_basic,
        test_noop
    ]<commit_msg>Try to print a message.<commit_after>test_ec2_k8s_basic = {
    node {
        git url: 'https://github.com/Juniper/container-networking-ansible.git'

        withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) {
            // create cluster
            sh("ansible-playbook -i localhost playbook.yml --tags=create -e job_id=$BUILD_TAG")
        }

        withCredentials([[$class: 'FileBinding', credentialsId: 'k8s-ssh-key', variable: 'SSH_PRIVATE_KEY']]) {
            sh("ansible-playbook -i localhost playbook.yml --private-key=$SSH_PRIVATE_KEY --tags=deployer-install")
            sh("ansible-playbook -i localhost playbook.yml --private-key=$SSH_PRIVATE_KEY --tags=workspace")
        }

        // ssh client steps:
        // provision cluster
        // validate
        // example application
        // verify

        withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) {
            // delete cluster
        }
    }
}

test_noop = {
    // node {
    //     def job = hudson.model.Hudson.instance.getItem('container-networking-ansible')
    //     println "{$id}"
    // }
    echo 'NOOP'
}

def getTestMatrix() {
    def tests = [
        // test_ec2_k8s_basic,
        test_noop
    ]
{'fraction_non_alphanumeric': 0.1295843520782396, 'fraction_numerical': 0.004889975550122249, 'mean_word_length': 2.714656290531777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2182794', 'n_tokens_mistral': 917, 'n_tokens_neox': 887, 'n_words': 150}