Branch: refs/heads/master
  Home:   https://github.com/jenkins-infra/jenkins.io
  Commit: a7e8c5c5ca0f9fc493b501d175dcad07247a7dff
      
https://github.com/jenkins-infra/jenkins.io/commit/a7e8c5c5ca0f9fc493b501d175dcad07247a7dff
  Author: ankushkatiyar <[email protected]>
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
    M content/doc/book/pipeline/docker.adoc

  Log Message:
  -----------
  Describe a detail of macOS configuration for Docker (#4987)

* Update docker.adoc

Hello i faced problem when i access agent docker in declarative pipeline in mac 
OS Monterey

I used this jenkinsfile from our repository 
https://github.com/ankushkatiyar/react-cypress/blob/main/Jenkinsfile and when i 
execute this in job then it will throw error 
"/Users/ankushktr/.jenkins/workspace/pipeline-demo-vscode@tmp/durable-84d2dca5/script.sh:
 line 1: docker: command not found"
I fixed this problem for adding path in location 
"/usr/local/Cellar/jenkins-lts/2.176.3/homebrew.mxcl.jenkins-lts.plist"
And i added this :

<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Docker.app/Contents/Resources/bin/:/Users/Kh0a/Library/Group\Containers/group.com.docker/Applications/Docker.app/Contents/Resources/bin</string>
</dict>

Thanks

* Embed space in directory name

Also reduce line length slightly

* Split the PATH example into narrower segments

Don't force the page to be extra wide for this example

* Don't force a horizontal scroll bar for wide examples

* Move macOS path string to end of customization

Not as common to use that technique as the other items that precede it

Co-authored-by: Mark Waite <[email protected]>


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkins-infra/jenkins.io/push/refs/heads/master/2cb03d-a7e8c5%40github.com.

Reply via email to