Set up Jenkins jobs for web and mobile tests

This commit is contained in:
2026-04-08 18:00:30 +03:00
commit 7c55b391f6
10 changed files with 408 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import jenkins.model.Jenkins
import ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation
import ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstaller
import hudson.tools.InstallSourceProperty
def jenkins = Jenkins.instance
def desc = jenkins.getDescriptorByType(AllureCommandlineInstallation.DescriptorImpl)
def existing = desc.getInstallations()
def alreadyConfigured = existing.any { it.name == "allure" }
if (!alreadyConfigured) {
def installer = new AllureCommandlineInstaller("2.29.0")
def prop = new InstallSourceProperty([installer])
def installation = new AllureCommandlineInstallation("allure", "", [prop])
desc.setInstallations(installation)
desc.save()
}