<commit_before>#!/usr/bin/env groovy

@Library("sec_ci_libs@v2-latest") _

def master_branches = ["master", ] as String[]

def credentials = [
        [$class           : 'AmazonWebServicesCredentialsBinding',
         credentialsId    : '<KEY>',
         accessKeyVariable: 'AWS_ACCESS_KEY_ID',
         secretKeyVariable: 'AWS_SECRET_ACCESS_KEY'],
        [$class       : 'FileBinding',
         credentialsId: '23743034-1ac4-49f7-b2e6-a661aee2d11b',
         variable     : 'CLI_TEST_SSH_KEY_PATH'],
        [$class       : 'StringBinding',
         credentialsId: '0b513aad-e0e0-4a82-95f4-309a80a02ff9',
         variable     : 'DCOS_TEST_INSTALLER_URL'],
        [$class       : 'StringBinding',
         credentialsId: 'ca159ad3-7323-4564-818c-46a8f03e1389',
         variable     : 'DCOS_TEST_LICENSE'],
        [$class          : 'UsernamePasswordMultiBinding',
         credentialsId   : '<PASSWORD>-742b-4<PASSWORD>-b<PASSWORD>-<PASSWORD>',
         usernameVariable: 'DCOS_TEST_DEFAULT_CLUSTER_USERNAME',
         passwordVariable: 'DCOS_TEST_DEFAULT_CLUSTER_PASSWORD']
]

pipeline {
  agent { label 'mesos' }

  options {
    timeout(time: 6, unit: 'HOURS')
  }

  stages {
    stage("Authorization") {
      steps {
        user_is_authorized(master_branches, "8b793652-f26a-422f-a9ba-0d1e47eb9d89", "#dcos-cli-ci")
      }
    }

    stage("Build binaries") {
      agent { label 'mesos-ubuntu' }

      steps {
          sh 'make linux darwin windows'
          stash includes: 'build/linux/**', name: 'dcos-linux'
          stash includes: 'build/darwin/**', name: 'dcos-darwin'
          stash includes: 'build/windows/**', name: 'dcos-windows'
      }
    }

    stage("Launch AWS Cluster") {
      steps {
          retry(5) {
              withCredentials(credentials) {
                  script {
                      master_ip = sh(script: 'cd scripts && ./launch_aws_cluster.sh', returnStdout: true).trim()
                  }
                  stash includes: 'scripts/**/*', name: 'terraform'
              }<commit_msg>Skip authorization on nightly build (#1549)<commit_after>#!/usr/bin/env groovy

@Library("sec_ci_libs@v2-latest") _

def master_branches = ["master", ] as String[]

def credentials = [
        [$class           : 'AmazonWebServicesCredentialsBinding',
         credentialsId    : '<KEY>',
         accessKeyVariable: 'AWS_ACCESS_KEY_ID',
         secretKeyVariable: 'AWS_SECRET_ACCESS_KEY'],
        [$class       : 'FileBinding',
         credentialsId: '23743034-1ac4-49f7-b2e6-a661aee2d11b',
         variable     : 'CLI_TEST_SSH_KEY_PATH'],
        [$class       : 'StringBinding',
         credentialsId: '0b513aad-e0e0-4a82-95f4-309a80a02ff9',
         variable     : 'DCOS_TEST_INSTALLER_URL'],
        [$class       : 'StringBinding',
         credentialsId: 'ca159ad3-7323-4564-818c-46a8f03e1389',
         variable     : 'DCOS_TEST_LICENSE'],
        [$class          : 'UsernamePasswordMultiBinding',
         credentialsId   : '323df884-742b-4099-b8b7-<PASSWORD>',
         usernameVariable: 'DCOS_TEST_DEFAULT_CLUSTER_USERNAME',
         passwordVariable: 'DCOS_TEST_DEFAULT_CLUSTER_PASSWORD']
]

pipeline {
  agent { label 'mesos' }

  options {
    timeout(time: 6, unit: 'HOURS')
  }

  stages {
    stage("Authorization") {
      when {
        expression { env.CHANGE_ID != null }
      }

      steps {
        user_is_authorized(master_branches, "8b793652-f26a-422f-a9ba-0d1e47eb9d89", "#dcos-cli-ci")
      }
    }

    stage("Build binaries") {
      agent { label 'mesos-ubuntu' }

      steps {
          sh 'make linux darwin windows'
          stash includes: 'build/linux/**', name: 'dcos-linux'
          stash includes: 'build/darwin/**', name: 'dcos-darwin'
          stash includes: 'build/windows/**', name: 'dcos-windows'
      }
    }

    stage("Launch AWS Cluster") {
      steps {
          retry(5) {
              withCredentials(credentials) {
                  script {
                      master_ip = sh(script: 'cd scripts && ./launch_aws_cluster.sh', returnStdout: true).trim()
                  }
                  stash includes: 'scripts/**/*', name: 'terraform'
              }
{'fraction_non_alphanumeric': 0.12844476395878265, 'fraction_numerical': 0.047687514977234606, 'mean_word_length': 2.233152594887684, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, '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': '7528147', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1372, 'n_words': 217}