Jenkins X - no JENKINS_URL environment variable is set

103 views
Skip to first unread message

ey...@jfrog.com

unread,
Mar 22, 2018, 11:02:15 AM3/22/18
to Jenkins Users
Hi,
I set up JenkinsX and trued using the hjx import command as follows:

eyalb-mac:maven-example eyalb$ ll

total 16

drwxr-xr-x  7 eyalb  staff   224 Mar 22 16:54 .

drwxr-xr-x  3 eyalb  staff    96 Mar 22 16:32 ..

drwxr-xr-x  4 eyalb  staff   128 Mar 22 16:32 multi1

drwxr-xr-x  4 eyalb  staff   128 Mar 22 16:32 multi2

drwxr-xr-x  4 eyalb  staff   128 Mar 22 16:32 multi3

-rw-r--r--  1 eyalb  staff  2497 Mar 22 16:32 pom.xml

-rw-r--r--  1 eyalb  staff   711 Mar 22 16:32 rpmscript

eyalb-mac:maven-example eyalb$ 

eyalb-mac:maven-example eyalb$ export JENKINS_URL=http://localhost:8080

eyalb-mac:maven-example eyalb$ jx import

error: no JENKINS_URL environment variable is set nor could a Jenkins service be found in the current namespace!


As you can see above, I'm setting the JENKINS_URL environment variable, and my Jenkins is accessible by this URL, but still, the command prompts that the JENKINS_URL env var is not set. What I missing?

Thanks

James Strachan

unread,
Mar 22, 2018, 12:05:26 PM3/22/18
to Jenkins Users
I just saw you raised an issue and answered this there...
Reply all
Reply to author
Forward
0 new messages