You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2020/10/14 16:14:13 UTC

[incubator-hop-website] branch master updated: fix remove to exclude hidden files

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop-website.git


The following commit(s) were added to refs/heads/master by this push:
     new ca7df73  fix remove to exclude hidden files
ca7df73 is described below

commit ca7df733b4b6c2e21ba54461f4bf1d93a9d9fed2
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Wed Oct 14 18:13:59 2020 +0200

    fix remove to exclude hidden files
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 177d047..b2cb267 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -110,7 +110,7 @@ pipeline {
                 dir('deploy/staging') {
                     deleteDir()
                     sh 'git clone -b asf-site https://gitbox.apache.org/repos/asf/incubator-hop-website.git .'
-                    sh "git rm -r !(.asf.yaml)"
+                    sh "git rm -f $(find . -not -path '*/\\.*' -type f  \( ! -iname \".*\" \))"
                     sh "cp -R $WORKSPACE/hop-website/public/. ."
                     sh 'git add .'
                     sh 'git commit -m "Website updated to $(git rev-parse --short HEAD)"'