I am wondering - should I be running the jenkins scripts in the Docker 
Desktop CLI?
I noticed there  is a  CLI button and when I click it, I get a shell

*#*
*# pwd*
*/*
*# whoami*
*root*
*# ls /var*
*backups  cache  jenkins_home  lib  local  lock  log  mail  opt  run  
spool  tmp*
*# ls /var/jenkins_home*
*config.xml                           jenkins.telemetry.Correlator.xml  
scripts                   users*
*copy_reference_file.log              jobs                              
secret.key                war*
*hudson.model.UpdateCenter.xml        logs                              
secret.key.not-so-secret  workflow-libs*
*hudson.plugins.git.GitTool.xml       nodeMonitors.xml                  
secrets*
*identity.key.enc                     nodes                            
 updates*
*jenkins.install.UpgradeWizard.state  plugins                          
 userContent*
*#*


But when I open a Windows Terminal and go to the ubuntu terminal, I see  
*nothing*

There is no /var/jenkins_home folder

*jenkins:~$ cd /var*
*jenkins:/var$ ls*
*backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  spool  
tmp*

On Wednesday, February 3, 2021 at 9:32:57 PM UTC-6 Anil wrote:

> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu
>
> On Wednesday, February 3, 2021 at 9:31:49 PM UTC-6 Anil wrote:
>
>> running
>>
>>
>> docker run \
>>  -u jenkins \
>>  --rm \
>>  -d \
>>  -p 8080:8080 \
>>  -p 50000:50000 \
>>  -v /var/run/docker.sock:/var/run/docker.sock \
>> * -v /home/jenkins:/var/jenkins_home \*
>>  jenkins/jenkins:lts 
>>
>> because when I try to run the script in the tutorial, it fails.
>>
>>
>> *+ /home/jenkins/scripts/fibonacci.sh 5 
>> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 1: 
>> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 
>> /home/jenkins/scripts/fibonacci.sh: not found*
>>
>> There is no /var/jenkins_home folder
>>
>> jenkins:~$ cd /var
>> jenkins:/var$ ls
>> backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  
>> spool  tmp
>>
>> [image: Capture.JPG]
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5fdbc3a1-ac46-453b-94c5-fe41a7b1c0a8n%40googlegroups.com.

Reply via email to