This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# execute after hexo g; | |
# if you are use macos, use gsed instead sed(brew install gnu-sed); | |
find public -type f -name *.html -exec sed -i '/^[[:space:]]*$/d' {} + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy and self modified from xxf | |
# Machine name. | |
function box_name { | |
[ -f ~/.box-name ] && cat ~/.box-name || echo $HOST | |
} | |
function exists { | |
command -v $1 >/dev/null 2>&1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
try { | |
stage('common build stage'){ | |
echo 'build ...' | |
} | |
currentBuild.result = "SUCCESS" | |
} catch(e) { | |
currentBuild.result = "FAIL" | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<!-- DO NOT USE relative path with maven wrapper --> | |
<!-- <localRepository>/opt/devtools/maven/repo</localRepository> --> | |
<mirrors> | |
<mirror> | |
<id>maven-huaweicloud-mirror</id> | |
<name>maven-huaweicloud-mirror</name> |
NewerOlder