使用Kubernetes集群时,无法在gitlab-ci上进行缓存

时间:2019-07-08 10:09:52

标签: caching gitlab google-kubernetes-engine gitlab-ci gitlab-ci-runner

在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. 

缓存应可用于所有版本。

0 个答案:

没有答案