- sourceBundle Gradle task 추가: 내부망 소스 번들 빌드 지원
- Jenkinsfile 수정: sourceBundle 빌드/아티팩트 보관 적용 - README 갱신: sourceBundle 사용법 추가
This commit is contained in:
Vendored
+8
-6
@@ -38,7 +38,7 @@ pipeline {
|
||||
|
||||
stage('Build JAR') {
|
||||
steps {
|
||||
sh 'gradle clean build --no-daemon'
|
||||
sh 'gradle clean build sourceBundle --no-daemon'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,18 +69,20 @@ pipeline {
|
||||
rm -rf build/dist
|
||||
mkdir -p build/dist
|
||||
cp build/libs/damo-manager.jar build/dist/
|
||||
cp build/distributions/damo-manager-src-*.zip build/dist/
|
||||
cp README.md build/dist/
|
||||
cd build/dist
|
||||
sha1sum damo-manager.jar README.md > SHA1SUMS
|
||||
sha256sum damo-manager.jar README.md > SHA256SUMS
|
||||
for f in damo-manager.jar damo-manager-src-*.zip README.md; do
|
||||
sha256sum "$f" > "$f.sha256"
|
||||
done
|
||||
ls -la
|
||||
echo "---- SHA256SUMS ----"
|
||||
cat SHA256SUMS
|
||||
echo "---- *.sha256 ----"
|
||||
cat *.sha256
|
||||
'''
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'build/dist/damo-manager.jar,build/dist/README.md,build/dist/SHA1SUMS,build/dist/SHA256SUMS', fingerprint: true
|
||||
archiveArtifacts artifacts: 'build/dist/damo-manager.jar,build/dist/damo-manager-src-*.zip,build/dist/README.md,build/dist/*.sha256', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user