简体   繁体   中英

How to setup jenkins git url for single project from repository

我正在进行jenkins android设置,我的bitbucket存储库包含库和android project。我想使用jenkins为该android项目生成apk,我需要提供git url,但是如果我克隆它包含所有项目,那么我该怎么办仅采用android项目git url在jenkins中进行设置

git clone always pulls the entire repository. If you only need certain parts then you'll either need to split the repo into smaller things or to clone the whole thing and then strip out the unnecessary things.

Just download the GIT Plugin in jenkins. Then configure your newly created Job, in SCM, click Git and paste the URL there. Also, Create a new repo if you want just the smaller part of to get the android files in jenkins. To generate apk in jenkins job, Invoke gradle script in buid trigger then in tasks add packageDebug .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM