General
Discard old builds
GitHub 項目
This build requires lockable resources
This project is parameterized
Throttle builds
關閉構建
在必要的時候並發構建
限制項目的運行節點
源碼管理
構建觸發器
觸發遠程構建
Build after other projects are built(其他工程構建后觸發)
勾選其他工程構建后觸發,比如當前任務要在firstproject這個任務構建成功時才觸發這個任務的構建,就要將firstproject這個任務名填入,然后勾選只有構建穩定時觸發
Build periodically(定時構建)
隔一段時間build一次,不管版本庫代碼是否發生變化,通常不會采用此種方式
Poll SCM(輪訓SCM)
隔一段時間比較一次源代碼如果發生變更,那么就build。否則不進行build,通常采用這種方式
定時器構建語法
* * * * *(星號中間用空格隔開)
第一個* 表示分鍾,取值0~59
第二個* 表示小時,取值0~23
第三個* 表示一個月的第幾天,取值1~31
第四個* 表示第幾個月,取值1~12
第五個* 表示一周中的第幾天,取值0~7,其中0和7代表的都是周日
用法舉例:
每30分鍾構建一次:H代表形參
H/30 * * * *
每2個小時構建一次:
H H/2 * * *
每天的8點,12點,22點,一天構建3次:(多個時間點中間用逗號隔開)
0 8,12,22 * * *
每天早上8點到晚上6點每三小時檢查一次
H 8-18/3 * * *
構建環境
Delete workspace before build starts(構建開始前刪除工作區)
Use secret text(s) or file(s)(使用秘密文本或文件)
Abort the build if it's stuck(如果它被卡住,則中止構建)
Add timestamps to the Console Output(將時間戳添加到控制台輸出)
Inspect build log for published Gradle build scans(檢查構建日志以查找已發布的Gradle構建掃描)
Keychains and Code Signing Identities(鑰匙串和代碼簽名身份)
Mobile Provisioning Profiles(移動配置文件)
Restore OS X keychains after build process as defined in global configuration(在全局配置中定義的構建過程之后恢復OS X鑰匙串)
With Ant(用Ant)
構建
增加構建步驟
Execute Windows batch command(執行Windows批處理命令)
Execute shell(執行shell)
Export IPA(出口IPA)
Import developer profile(導入開發人員資料)
Invoke Ant(調用Ant)
Invoke Gradle script(調用Gradle腳本)
Invoke top-level Maven targets(調用頂級Maven目標)
Run with timeout(運行超時)
Set build status to "pending" on GitHub commit(在Github提交上將構建狀態設置為“pending”)
Unlock macOS X Keychain(解鎖mac OS X Keychain)
Xcode(Xcode中)
構建后操作
增加構建后操作步驟
Publish Android Lint results(發布Android Lint結果)
Aggregate downstream test results(匯總下游測試結果)
Archive the artifacts(存檔工作)
Publish JUnit test result report(建立其他項目)
Publish Javadoc(發布Javadoc)
Record fingerprints of files to track usage(記錄文件的指紋以跟蹤使用情況)
Git Publisher
GitLab commit status publisher(Gitlab提交狀態發布者)
Accept GitLab merge request on success(成功時接受Gitlab合並請求)
Add note with build status on GitLab merge requests(在Gitlab合並請求上添加包含構建狀態的注釋)
Add vote with build status on GitLab merge requests(在Gitlab合並請求上添加包含構建狀態的投票)
E-mail Notification(電子郵件通知)
Editable Email Notification(可編輯的電子郵件通知)
Publish build status to GitLab(將構建狀態發布到Gitlab)
Set GitLab commit status(universal)(設置GItHub提交狀態(通用))
Set build status on GitHub commit[deprecated](在GitHub提交上設置構建狀態[不建議使用])
Delete workspace when build is done(構建完成后刪除工作區)