Changeset 14116


Ignore:
Timestamp:
Nov 19, 2019 10:20:08 AM (3 weeks ago)
Author:
aramle
Message:

#5877 Correcting Python version in Jenkinsfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BaseDockerImages/branches/dev-2379/Jenkinsfile

    r14074 r14116  
    2020def pushTag
    2121
    22 def buildBaseImage(image_name, repo_name, platform, platform_version, gcc_install_type, python_version="2") {
     22def buildBaseImage(image_name, repo_name, platform, platform_version, gcc_install_type, python_version="3") {
    2323    return docker.build("${repo_name}/$image_name", "--no-cache --pull --build-arg DOCKER_LINUX_DIST=$platform --build-arg DOCKER_DIST_TAG=$platform_version --build-arg GCC_INSTALL_TYPE=$gcc_install_type --build-arg ENABLE_PYTHON=\"yes\" --build-arg PYTHON_VERSION=$python_version .")
    2424}
     
    7777    python_version="3"
    7878   
    79     stage ("Building ${imageName} ${platformVersion}") {
     79    stage ("Building ${imageName} ${platformVersion} Python ${python_version}") {
    8080        checkout scm
    81         def dockerImageRef = buildBaseImage("${imageName}", "${repoName}", "ubuntu", "${platformVersion}", "UBUNTU_DEFAULT")
     81        def dockerImageRef = buildBaseImage("${imageName}", "${repoName}", "ubuntu", "${platformVersion}", "UBUNTU_DEFAULT", "${python_version}")
    8282        pushImage(dockerImageRef, "${repoName}", "${imageName}", "${pushTag}")K
    8383    }
Note: See TracChangeset for help on using the changeset viewer.