Jenkins:修訂間差異
出自flip the world
已建立頁面,內容為 "== Setup == * sudo java -jar ./jenkins.war --httpPort=9090 --httpListenAddress=192.168.1.100" |
Refactor: add [[Category:Software and Tools
]] |
||
| (未顯示同一使用者於中間所作的 7次修訂) | |||
| 第1行: | 第1行: | ||
== Setup == | == Setup == | ||
* sudo java -jar ./jenkins.war --httpPort=9090 --httpListenAddress=192.168.1.100 | * 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]] | |||
2026年8月21日 (五) 13:17的最新修訂
Setup
- sudo java -jar ./jenkins.war --httpPort=9090 --httpListenAddress=192.168.1.100
work with SCM
- Add build script in repo
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...'
}
}
}
}
- Configure
- Build Now
