"Jenkins" 修訂間的差異
(→work with SCM) |
(→work with SCM) |
||
行 33: | 行 33: | ||
</pre> | </pre> | ||
* Config | * Config | ||
− | [[File:Jenkins-config.jpg]] | + | [[File:Jenkins-config.jpg|300px|Jenkins-config]] |
* Build now from Jenkins | * Build now from Jenkins | ||
[[File:Jenkins-wiki.jpg]] | [[File:Jenkins-wiki.jpg]] |
於 2020年1月10日 (五) 15:04 的修訂
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...' } } } }
- Config
- Build now from Jenkins