I am creating a simple tar file to hold some configurations however I only want to add the files to the root of the tar however they are being added in their existing folders:
task ("conf-${release}-${environment}" , type: Tar) {
archiveName = "conf-${buildNumber}-${environment}.tar"
from('.') {
include "${release}/${environment}/*"
include "${release}/${environment}-environment/*"
into ('/')
}
}