# share_jenkins **Repository Path**: hxhcloude/share_jenkins ## Basic Information - **Project Name**: share_jenkins - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-04 - **Last Updated**: 2024-12-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README pipeline-common-library 时区 日志 dump 扩展参数 lib库 FROM {BASE_IMAGE} VOLUME /tmp ARG JAR_FILE ADD ${JAR_FILE} app.jar RUN touch /app.jar && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ENTRYPOINT exec java $JAVA_OPTS -Dusr.timezone=Asia/Shanghai -Djava.security.egd=file:/dev/.urandmon -jar /app.jar ### mvaen参数 - DskipTests,不执行测试用例,但编译测试用例类生成相应的class文件至target/test-classes下(跳过单元测试,但是会继续编译) - Dmaven.test.skip=true,不执行测试用例,也不编译测试用例类(不但跳过单元测试的运行,也跳过测试代码的编译) - U 强制更新releases snapshots类型插件及依赖 - q quit 安静模式,只输出error - X debug模式,输出详细信息 - e 显示详细错误信息 ### npm 缓存 https://blog.csdn.net/daihaoxin/article/details/105749014 npm install pnpm install cnpm install npm install --production 使用 npm ci 替代 npm i npm config set registry https://registry.npm.taobao.org/; npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass; npm config set cache /home/jenkins/cache; npm config set prefix /home/jenkins/modules; npm config -g set unsafe-perm; yarn config set registry https://maven-hz.rubikstack.com/repository/npm-public; yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass; yarn config set cache-folder /home/jenkins/cache; yarn config set global-folder /home/jenkins/modules; yarn ### 构建中优先使用缓存中 yarn install --prefer-offline ### node构建问题处理 npm cache clean --force rm -rf dist rm -rf node_modules rm -rf package-lock.json npm install npm run build ### 查看npm install 的完整过程 npm i --timing=true --loglevel=verbose