Closed rsslereta closed 4 years ago
hey @rsslereta - sorry to hear you're having trouble getting dbt installed on jenkins. Was this a fresh install, or were you upgrading from a previous version? If it's the latter, it might be worth trying
pip install -I dbt
I don't totally understand the log output you shared above - what is dbt-0.15.0rc2-py3.7
here? dbt should be installed via pip as an executable called dbt
-- where is the dbt-0.15.0rc2-py3.7
coming from?
Hi @drewbanin... I figured it out, the path to the dbt executable was not set correctly. As soon as I fixed that issue it worked perfectly. I did a "which dbt" and that gave me the path to where the executable was located. Thank you for the follow up.
great, glad to hear you got it working :)
Hi @drewbanin... I figured it out, the path to the dbt executable was not set correctly. As soon as I fixed that issue it worked perfectly. I did a "which dbt" and that gave me the path to where the executable was located. Thank you for the follow up.
hi @rsslereta can you share how to set the path correctly iam facing same issue. Thanks
Hi @drewbanin, this is related to issue #1104, running into the same issue trying to run DBT on Jenkins running centos7... looks like it installed the following packages in the Python site-packages folder
drwxrwxr-x. 3 cloudbees-jenkins-distribution cloudbees-jenkins-distribution 22 Nov 19 19:36 dbt-0.15.0rc2-py3.7.egg drwxrwxr-x. 4 cloudbees-jenkins-distribution cloudbees-jenkins-distribution 33 Nov 19 19:36 dbt_bigquery-0.15.0rc2-py3.7.egg drwxrwxr-x. 4 cloudbees-jenkins-distribution cloudbees-jenkins-distribution 33 Nov 19 19:36 dbt_core-0.15.0rc2-py3.7.egg drwxrwxr-x. 4 cloudbees-jenkins-distribution cloudbees-jenkins-distribution 33 Nov 19 19:36 dbt_postgres-0.15.0rc2-py3.7.egg drwxrwxr-x. 4 cloudbees-jenkins-distribution cloudbees-jenkins-distribution 33 Nov 19 19:36 dbt_redshift-0.15.0rc2-py3.7.egg drwxrwxr-x. 4 cloudbees-jenkins-distribution cloudbees-jenkins-distribution 33 Nov 19 19:36 dbt_snowflake-0.15.0rc2-py3.7.egg
it installed a whole bunch of .egg files but I do not see DBT in the folder
python --version Python 3.7.5
dbt-0.15.0rc2-py3.7 --version /home/cloudbees-jenkins-distribution/jenkins/workspace/ineering_rss_datapipeline_master@tmp/durable-650ea19d/script.sh: line 6: dbt-0.15.0rc2-py3.7: command not found script returned exit code 127
pip show dbt
Name: dbt Version: 0.15.0rc2 Summary: With dbt, data analysts and engineers can build analytics the way engineers build applications. Home-page: https://github.com/fishtown-analytics/dbt Author: Fishtown Analytics Author-email: info@fishtownanalytics.com License: UNKNOWN Location: /home/cloudbees-jenkins-distribution/jenkins/workspace/ineering_rss_datapipeline_master/.pyenv-home-cloudbees-jenkins-distribution-jenkins-tools-com.cloudbees.jenkins.plugins.customtools.CustomTool-python-3.7.5-bin-python3.7/lib/python3.7/site-packages/dbt-0.15.0rc2-py3.7.egg Requires: dbt-core, dbt-postgres, dbt-redshift, dbt-snowflake, dbt-bigquery