出自flip the world 檢視Jenkins的原始碼 頁面討論 閱讀檢視原始碼檢視歷史 ←Jenkins 您沒有權限執行編輯此頁面,由於以下原因: 您請求的操作只有這個群組的使用者能使用:使用者 您可以檢視並複製此頁面的原始碼。 Running '''Jenkins''' for CI, and wiring it to a source repository. == Setup == * sudo java -jar ./jenkins.war --httpPort=9090 --httpListenAddress=192.168.1.100 == work with SCM == * Add build script in repo <pre> pipeline { agent any stages { stage('Build') { steps { echo 'Building...' dir("${env.WORKSPACE}"){ sh "pwd" sh "make" } echo "Running ${env.BUILD_ID} ${env.BUILD_DISPLAY_NAME} on ${env.NODE_NAME} and JOB ${env.JOB_NAME}" } } stage('Test') { steps { echo 'Testing...' } } stage('Deploy') { steps { echo 'Deploying...' } } } } </pre> * Configure [[File:Jenkins-config.jpg|800px|Jenkins-config]] * Build Now [[File:Jenkins-wiki.jpg|800px|Jenkins-build]] [[Category:Software and Tools]] 返回到「Jenkins」。