1
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
sudo docker run -id -e VAR1=VAL1 ubuntu /bin/bash
或sudo docker run -id -e VAR1=$VARx ubuntu /bin/bash
或sudo VAR1=VAL1 docker run -id -e VAR1 ubuntu /bin/bash
sudo docker run -id -e LANG ubuntu /bin/bash
sudo docker run -id --env-file ./ENV.LIST ubuntu /bin/bash
sudo docker exec -it CONTAINER_ID /bin/bash -c "export VAR1=VAL1 && CMD"
https://docs.docker.com/engine/reference/run/#env-environment-variables
https://docs.docker.com/engine/reference/commandline/run/
https://jenkins-ci.org/
java -jar jenkins.war
http://localhost:8080
#每5分鐘
5 * * * *
ping localhost
由計時器啟動
建置中 工作區 /home/testuser/.jenkins/jobs/Task1/workspace
[workspace] $ /bin/sh -xe /tmp/hudson1841741314535644877.sh
+ date
日 2月 14 10:42:00 CST 2016
+ ping -c 5 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.013 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.019 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.012 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.053 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.055 ms
--- localhost ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3998ms
rtt min/avg/max/mdev = 0.012/0.030/0.055/0.020 ms
+ echo Hello!!
Hello!!
+ date
日 2月 14 10:42:04 CST 2016
Finished: SUCCESS
由計時器啟動
建置中 工作區 /home/testuser/.jenkins/jobs/Task3/workspace
[workspace] $ /bin/sh -xe /tmp/hudson8024915939564601609.sh
+ date
日 2月 14 10:44:04 CST 2016
+ ping -c 5 localhost123
ping: unknown host localhost123
Build step '執行 Shell' marked build as failure
Finished: FAILURE
由計時器啟動
建置中 工作區 /home/testuser/.jenkins/jobs/Task4/workspace
[workspace] $ /bin/sh -xe /tmp/hudson6497490487894411825.sh
+ date
日 2月 14 10:47:04 CST 2016
+ ping123 -c 5 localhost
/tmp/hudson6497490487894411825.sh: 3: /tmp/hudson6497490487894411825.sh: ping123: not found
Build step '執行 Shell' marked build as failure
Finished: FAILURE
C:\Users\Testuser\.jenkins\war\WEB-INF\jenkins-cli.jar
java -jar jenkins-cli.jar -s http://localhost:8080 restart
java -jar jenkins-cli.jar -s http://localhost:8080 shutdown
可是可以用office2007後,又發現無法支持帶密碼的文檔(經常要用到),無法打開,查了好久也沒有找到解決方法,最後只好放棄。
我也很感謝,Study-Area 在一開始時所給我的許多知識的成長,與交流的歡樂.......
有機會還是歡迎大家一起來聊天&訴苦吧~ 哈!