added files

This commit is contained in:
Your Name
2026-08-26 02:02:24 +05:30
parent 58ee8a276a
commit 3419cfba0c
200 changed files with 22132 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
plugins {
id 'groovy'
}
repositories {
maven { url 'https://repo.jenkins-ci.org/releases/' }
maven { url 'https://repo.jenkins-ci.org/public/' }
mavenCentral()
}
sourceSets {
// Main sources are Jenkins Shared Library scripts loaded at runtime by JenkinsPipelineUnit.
// They depend on Jenkins API and are not pre-compiled — loadScript() handles them at test time.
main {
groovy { srcDirs = [] }
java { srcDirs = [] }
}
test {
// test/unit — actual test classes
// test/stubs — minimal stub implementations of Jenkins stage classes used by dispatch tests
groovy { srcDirs = ['test/unit', 'test/stubs'] }
}
}
dependencies {
testImplementation 'com.lesfurets:jenkins-pipeline-unit:1.22'
// Match the Groovy version bundled by JenkinsPipelineUnit
testImplementation 'org.codehaus.groovy:groovy-all:2.4.21'
testImplementation 'junit:junit:4.13.2'
}
test {
systemProperty 'user.dir', rootDir.absolutePath
testLogging {
events 'passed', 'skipped', 'failed'
exceptionFormat 'full'
}
}