Skip to content

Commit

Permalink
Check if files was deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jun 10, 2024
1 parent a5f8cb2 commit 1e69363
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@
* under the License.
*/

def buildLog = new File ( basedir, "build.log")
def expectedDeploys = [
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.pom',
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.pom',
'org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom',
'org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0-build.pom',
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.jar',
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0-sources.jar',
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0-sources.jar',
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.jar'
]

def repoDir = new File ( basedir, 'target/repo')

def missingDeploys = expectedDeploys.findAll { ! new File(repoDir, it).isFile() }

assert missingDeploys.size() == 0

assert buildLog.text =~ /Uploading.*file:target\/repo\/org\/apache\/maven\/plugins\/deploy\/it\/org\.eclipse\.osgi\/1\.0\/org\.eclipse\.osgi-1\.0-sources\.jar/

0 comments on commit 1e69363

Please sign in to comment.