在Java + Maven项目上使用gitlab-ci时; Maven工件不会被缓存。他们每次都在下载。
我已经将gitlab-runner部署为kubernetes。
构建时间日志显示
public void autoComplete() {
database = new Database(this) ;
databaseSQL = database.getReadableDatabase();
Cursor numbersCursor = databaseSQL.rawQuery("SELECT RIGHT(number, 5) FROM Cars", null);
number = new String[numbersCursor.getCount()];
int j = 0;
while (numbersCursor.moveToNext()) {
String str_number = numbersCursor.getString(numbersCursor.getColumnIndex("number"));
number[j] = str_number;
j++;
} numbersCursor.close();
.gitlab-ci.yml
Creating cache edu-erp...
.m2/repository/: found 761 matching files
No URL provided, cache will be not uploaded to shared cache server. Cache will be stored only locally.
缓存应可用于所有版本。