Jenkins for ios

###官方jenkinshtml

https://jenkins.io/node/

###安裝方法java

http://www.cnblogs.com/darkwing/p/5045522.html

###配置jenkinsnode

https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins

The easiest way to execute Jenkins is through the built in Jetty servlet container.
$ java -jar jenkins.war
Of course, you probably want to send the output of Jenkins to a log file, 
and if you're on Unix, you probably want to use nohup:
$ nohup java -jar jenkins.war > $LOGFILE 2>&1

###問題解答git

Failed to connect to repository : Command "git ls-remote -h https://person@bitbucket.org/person/projectmarket.git HEAD" returned status code 128:
stdout:
stderr: fatal: Authentication failed

###git 在拉取代碼沒有權限bash

解決方法:✊

/User/Shared/jenkins //是jenkins的目錄
sudo su jenkins //切換到jenkins用戶
ssh-keygen  //生成ssh key

config ssh key //添加key到配置文件中,大功告成🏆

###mac環境建立帳號app

在Mac系統下,利用Terminal能夠建立新用戶。
dscl . -create /Users/jenkins
dscl . -create /Users/jenkins UserShell /bin/bash
dscl . -create /Users/jenkins RealName 「Robot」
dscl . -create /Users/jenkins UniqueID 「1010」
dscl . -create /Users/jenkins PrimaryGroupID 80
dscl . -create /Users/jenkins NFSHomeDirectory /Users/kevin
dscl . -passwd /Users/jenkins password

dscl . -append /Groups/admin GroupMembership jenkins //加入到admin組

su - jenkins  //切換用戶

https://support.apple.com/zh-cn/HT203998

###隱藏登陸選項ssh

sudo dscl . create /Users/hiddenuser IsHidden 1 // 1 隱藏 0 顯示 hiddenuser用戶名

//隱藏登陸其餘選項
sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE

https://support.apple.com/zh-cn/HT203998
相關文章
相關標籤/搜索