目前分類:jenkins (20)

瀏覽方式: 標題列表 簡短摘要

1.安裝jenkins plugin
https://plugins.jenkins.io/parameterized-scheduler/#documentation

JBLin 發表在 痞客邦 留言(0) 人氣()

jenkins job ->configure

Refspec: +refs/tags/*:refs/remotes/origin/tags/*

JBLin 發表在 痞客邦 留言(0) 人氣()

問題:

用sh gradlew clean build > log.log 2> errorlog.log

JBLin 發表在 痞客邦 留言(0) 人氣()

mkdir -p /var/www/html/${JOB_BASE_NAME}/${BUILD_NUMBER}
find . -name "*.apk" -exec mv {} /var/www/html/${JOB_BASE_NAME}/${BUILD_NUMBER} \;

JBLin 發表在 痞客邦 留言(0) 人氣()

Jenkins project -> Configure


JBLin 發表在 痞客邦 留言(0) 人氣()

需要安裝Environment Injector plugin

JBLin 發表在 痞客邦 留言(0) 人氣()

jenkins project -> Configure


JBLin 發表在 痞客邦 留言(0) 人氣()

jenkins project內的 Post-build Action 使用 Flexible publish

JBLin 發表在 痞客邦 留言(0) 人氣()

1.在build server上建立ftp server

JBLin 發表在 痞客邦 留言(0) 人氣()

${BUILD_URL}/consoleText

JBLin 發表在 痞客邦 留言(0) 人氣()

1.Install plugin: Google Chat Notification 

2.創建聊天室(點選尋找使用者、聊天室和機器人)

JBLin 發表在 痞客邦 留言(0) 人氣()

1.install plugin:
Jenkins -> Manager Jenkins -> Manager Plugins -> JaCoCo plugin -> Download now and install after restart

JBLin 發表在 痞客邦 留言(0) 人氣()

1.install plugin:
Jenkins -> Manager Jenkins -> Manager Plugins -> JUnit Plugin -> Download now and install after restart

JBLin 發表在 痞客邦 留言(0) 人氣()

設定Jenkins全域變數
jenkins -> Manager Jenkins -> Global Tool Configuration -> JDK installations -> add JDK 

JBLin 發表在 痞客邦 留言(0) 人氣()

jenkins project -> Configure -> General -> Restrict where this project can be run ->  Label Expression 輸入 node Label


JBLin 發表在 痞客邦 留言(0) 人氣()

1.設定TCP port for JNLP agents為"Random "
Manage Jenkins -> Configure Global Security ->  Agents -> TCP port for JNLP agents 選擇 "Random "

JBLin 發表在 痞客邦 留言(0) 人氣()

jenkins project -> Source Code Management-> Git ->

JBLin 發表在 痞客邦 留言(0) 人氣()

1.install plugin:
Jenkins -> Manager Jenkins -> Manager Plugins -> Gradle plugin -> Download now and install after restart

JBLin 發表在 痞客邦 留言(0) 人氣()

進入專案->configure->Post-build Actions ->(下拉bar選擇)Archive the artifacts->**/*.apk,**/*.aar


JBLin 發表在 痞客邦 留言(0) 人氣()

1.進入jenkins project configure
2.Build Triggers選項中複製 webhook URL + Generate Secret token(藏在Advanced)

JBLin 發表在 痞客邦 留言(0) 人氣()