使用stderr的Jenkins Build失败:错误:无法取消链接旧文件路径':无效的参数

时间:2017-11-03 10:59:11

标签: git github jenkins

当我尝试进行构建时,会出现以下错误

import {
    createSelector
} from 'reselect';

const getSelectedProduct = state => state.products.selected;
const getCategories = state => state.categories.items;
const getSelection = state => state.categories.selection;

const filterByProduct = createSelector(
    getSelectedProduct,
    getCategories,
    (mp, categories) => {

        if (mp && typeof mp === 'object') {
            const mpCategories = mp.categories.split(',');

            categories.map(item => {
                item.selected = mpCategories.indexOf(item.id) >= 0;
                return item;
            });
        }

        return categories;
    }
);

export const updateSelectedCategories = createSelector(
    filterByProduct,
    getSelection,
    (categories, selection) => {

        if (selection.length > 0 && typeof selection === 'object') {
            categories.map(item => {
                if (selection.indexOf(item) >= 0) {
                    item.selected = true;
                }
                return item;
            });
        }

        return categories;
    }
);

任何人都可以帮忙吗?我配置了Git存储库URL和凭据。有什么我错过了吗?

1 个答案:

答案 0 :(得分:1)

尝试下载一个文件LockHunter,检查哪个进程正在使用此文件阻止git更新它。

通常,这是由用户中止的先前构建引起的,并且该进程不会因现有而停止。