diff --git a/.teamcity/pom.xml b/.teamcity/pom.xml new file mode 100644 index 0000000..ab9b924 --- /dev/null +++ b/.teamcity/pom.xml @@ -0,0 +1,104 @@ + + + 4.0.0 + TestBranches Config DSL Script + TestBranches + TestBranches_dsl + 1.0-SNAPSHOT + + + org.jetbrains.teamcity + configs-dsl-kotlin-parent + 1.0-SNAPSHOT + + + + + jetbrains-all + https://download.jetbrains.com/teamcity-repository + + true + + + + teamcity-server + http://localhost:8111/app/dsl-plugins-repository + + true + + + + + + + JetBrains + https://download.jetbrains.com/teamcity-repository + + + + + ${basedir} + + + kotlin-maven-plugin + org.jetbrains.kotlin + ${kotlin.version} + + + + + compile + process-sources + + compile + + + + test-compile + process-test-sources + + test-compile + + + + + + org.jetbrains.teamcity + teamcity-configs-maven-plugin + ${teamcity.dsl.version} + + kotlin + target/generated-configs + + + + + + + + org.jetbrains.teamcity + configs-dsl-kotlin-latest + ${teamcity.dsl.version} + compile + + + org.jetbrains.teamcity + configs-dsl-kotlin-plugins-latest + 1.0-SNAPSHOT + pom + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + ${kotlin.version} + compile + + + org.jetbrains.kotlin + kotlin-script-runtime + ${kotlin.version} + compile + + + \ No newline at end of file diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts new file mode 100644 index 0000000..b324597 --- /dev/null +++ b/.teamcity/settings.kts @@ -0,0 +1,61 @@ +import jetbrains.buildServer.configs.kotlin.* +import jetbrains.buildServer.configs.kotlin.buildFeatures.PullRequests +import jetbrains.buildServer.configs.kotlin.buildFeatures.perfmon +import jetbrains.buildServer.configs.kotlin.buildFeatures.pullRequests +import jetbrains.buildServer.configs.kotlin.triggers.vcs + +/* +The settings script is an entry point for defining a TeamCity +project hierarchy. The script should contain a single call to the +project() function with a Project instance or an init function as +an argument. + +VcsRoots, BuildTypes, Templates, and subprojects can be +registered inside the project using the vcsRoot(), buildType(), +template(), and subProject() methods respectively. + +To debug settings scripts in command-line, run the + + mvnDebug org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate + +command and attach your debugger to the port 8000. + +To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View +-> Tool Windows -> Maven Projects), find the generate task node +(Plugins -> teamcity-configs -> teamcity-configs:generate), the +'Debug' option is available in the context menu for the task. +*/ + +version = "2022.10" + +project { + + buildType(Build) +} + +object Build : BuildType({ + name = "Build" + + vcs { + root(DslContext.settingsRoot) + } + + triggers { + vcs { + } + } + + features { + perfmon { + } + pullRequests { + provider = github { + authType = token { + token = "credentialsJSON:1115db9a-8bdd-49bf-8292-662b58db5728" + } + filterAuthorRole = PullRequests.GitHubRoleFilter.MEMBER + ignoreDrafts = true + } + } + } +}) diff --git a/README.md b/README.md index 7be3cc6..4bb2d8a 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,4 @@ dsdsd dskhkj dkjhkjdhk asj hdkas dsfdf test +test diff --git a/branch3 b/branch3 index 05f80bb..47d51a5 100644 --- a/branch3 +++ b/branch3 @@ -1,2 +1,6 @@ test branch3 еуые +main +hjy +gfgf +khkjhj diff --git a/file4 b/file4 new file mode 100644 index 0000000..d275f16 --- /dev/null +++ b/file4 @@ -0,0 +1,8 @@ +test file +thest2 +hkj +ytu uy uy +kljkjl +file test +test +kjhkj diff --git a/test pr b/test pr new file mode 100644 index 0000000..ae837fc --- /dev/null +++ b/test pr @@ -0,0 +1,10 @@ +test +test +test3 +test4 +test5 +test6 +test7 +test8 +test9 +test10 diff --git a/test-file b/test-file new file mode 100644 index 0000000..dcdfa1d --- /dev/null +++ b/test-file @@ -0,0 +1,3 @@ +fdfd +cxcx +cxcx diff --git a/test/text.txt b/test/text.txt index 7556f68..7e52c49 100644 --- a/test/text.txt +++ b/test/text.txt @@ -2,3 +2,7 @@ blbalbslblablabla test test еуые2 +авава +draft-pull-request +dsdsd +fdfd