diff --git a/Jenkinsfile b/Jenkinsfile
index 97e754d..f1a169a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,6 +6,12 @@ pipeline {
             inheritFrom 'miniforge'
         }
     }
+    environment {
+        TOOL_VER = """${sh(
+                returnStdout: true,
+                script: 'python pypi_latest_ver.py autoBIGS.engine'
+            )}"""
+    }
     stages {
         stage("prepare") {
             parallel {
@@ -16,7 +22,7 @@ pipeline {
                         sh 'git submodule init'
                         sh 'git submodule update'
                         dir('auto-updated-bioconda-recipes') {
-                            sh 'git checkout update-autobigs-engine'
+                            sh 'git checkout -b update-autobigs-engine-${TOOL_VER}'
                         }
                     }
                 }
@@ -54,7 +60,7 @@ pipeline {
                     }
                     steps {
                         dir('auto-updated-bioconda-recipes') {
-                            sh 'git commit -a -m "Automatically updated autobigs-engine bioconda recipe to $(python ../pypi_latest_ver.py autoBIGS.engine)."'
+                            sh 'git commit -a -m "Automatically updated autobigs-engine bioconda recipe to ${TOOL_VER}."'
                             sh 'git push https://${TOKEN}@github.com/Syph-and-VPD-Lab/auto-updated-bioconda-recipes.git update-autobigs-engine'
                         }
                     }