Remove .git files/folders before publishing
This commit is contained in:
parent
e3bf9774ed
commit
2dbfbdab47
1 changed files with 6 additions and 1 deletions
|
|
@ -90,9 +90,14 @@ def recallcomponent(releaseinfo, String softwarerelease) {
|
||||||
}
|
}
|
||||||
|
|
||||||
def stripgithistory() {
|
def stripgithistory() {
|
||||||
|
echo "Stripping git history out of ${releaserepo}"
|
||||||
dir(releaserepofolder) {
|
dir(releaserepofolder) {
|
||||||
sh """#!/bin/bash
|
sh """#!/bin/bash
|
||||||
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" && find . -iname ".gitattributes") | xargs rm -rvf
|
pwd
|
||||||
|
find . -type d -name ".git" | xargs rm -rvf
|
||||||
|
find . -name ".gitignore" | xargs rm -rvf
|
||||||
|
find . -name ".gitmodules" | xargs rm -rvf
|
||||||
|
find . -iname ".gitattributes" | xargs rm -rvf
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue