Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
fixing airgap.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
rottebds committed Jul 26, 2018
1 parent 31edd78 commit 78f1f67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hub-detect/airgap.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ final String configAirGapPath = "${buildArtifactFolder}/config"
final String dockerAirGapPath = "${airGapFolder}/docker"
final String artifactoryIntegrationPath = "com/blackducksoftware/integration"

final String airGapZipName = "${rootProject.name}-${version}-air-gap.zip"
final String airGapZipName = "${project.name}-${version}-air-gap.zip"

configurations {
airGap
Expand Down Expand Up @@ -125,7 +125,7 @@ task downloadDockerInspector() {
task createAirGapZip(type: Zip) {
dependsOn build, copyApplicationProperties, downloadNugetInspector, copyGradleInspectorAndDependencies, downloadDockerInspector
from buildArtifactFolder
include "${rootProject.name}*.jar"
include "${project.name}*.jar"
include 'packaged-inspectors/**'
include 'config/**'
archiveName airGapZipName
Expand All @@ -136,7 +136,7 @@ task publishAirGapZip() {
dependsOn createAirGapZip
doLast {
exec {
commandLine 'curl', '--insecure','-u', "${project.ext.artifactoryDeployerUsername}:${project.ext.artifactoryDeployerPassword}", '-X', 'PUT', "${project.ext.artifactoryUrl}/${project.ext.artifactoryRepo}/${artifactoryIntegrationPath}/${rootProject.name}/${version}/${airGapZipName}", '-T', "${distributionsFolder}/${airGapZipName}", '-f'
commandLine 'curl', '--insecure','-u', "${project.ext.artifactoryDeployerUsername}:${project.ext.artifactoryDeployerPassword}", '-X', 'PUT', "${project.ext.artifactoryUrl}/${project.ext.artifactoryRepo}/${artifactoryIntegrationPath}/${project.name}/${version}/${airGapZipName}", '-T', "${distributionsFolder}/${airGapZipName}", '-f'
}
}
}

0 comments on commit 78f1f67

Please sign in to comment.