Unverified Commit f83b9abd authored by acpaquette's avatar acpaquette Committed by GitHub
Browse files

Update Jenkinsfile

Flipped install and build sections
parent 7820ce90
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -26,18 +26,6 @@ for (lbl in labels) {
                    """
                  }
                    
                  sh """
                     ${condaPath}/bin/conda config --set always_yes True
                     ${condaPath}/bin/conda config --set ssl_verify false
                     ${condaPath}/bin/conda config --env --add channels conda-forge
                     ${condaPath}/bin/conda config --env --add channels usgs-astrogeology
                     
                     ${condaPath}/bin/conda create -n isis -c usgs-astrogeology/label/RC isis=${ISIS_VERSION}

                     export ISISROOT=${condaPath}/envs/isis/
                     ${condaPath}/bin/conda run -n isis campt -HELP
                  """

                  // skip build for centos
                  if ("${label}" != "centos") {
                    checkout scm
@@ -49,6 +37,18 @@ for (lbl in labels) {
                      ${condaPath}/bin/conda build . --no-anaconda-upload  
                    """
                  }
                  
                  sh """
                     ${condaPath}/bin/conda config --set always_yes True
                     ${condaPath}/bin/conda config --set ssl_verify false
                     ${condaPath}/bin/conda config --env --add channels conda-forge
                     ${condaPath}/bin/conda config --env --add channels usgs-astrogeology
                     
                     ${condaPath}/bin/conda create -n isis -c usgs-astrogeology/label/RC isis=${ISIS_VERSION}

                     export ISISROOT=${condaPath}/envs/isis/
                     ${condaPath}/bin/conda run -n isis campt -HELP
                  """
                }
            }
        }