Files
jenkins-pipelines/jobs-dsl/jobs/License-server/create_license.groovy
2024-09-18 13:07:58 +03:00

79 lines
2.8 KiB
Groovy
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
pipelineJob('License-server/create-license') {
description("Создание лицензии на тест окружении")
definition {
cpsScm {
scm {
git {
remote {
url("${JENKINS_GIT_REPOSITORY_URL}/DevOps/jenkins-pipelines.git")
credentials("${JENKINS_GIT_CREDENTIALS_HTTP}")
}
branch('master')
}
}
scriptPath('pipelines/License-server/create-license.groovy')
}
}
properties {
disableConcurrentBuilds()
}
parameters {
string { name('LICENSE_COUNT')
defaultValue('')
description('Количество лицензии')
}
string { name('PRODUCT_ID')
defaultValue('')
description('Идентификатор продукта к которому будут привязаны лицензии')
}
choice {
name('LICENSE_KIND')
choices(["SINGLE","MULTIPLE"])
description('Eдиничная или множественная лицензия')
}
choice {
name('LICENSE_TYPE')
choices(["TRIAL","COMMERCIAL","UNLIMITED"])
description('Коммерческая, Триальная или Бессрочная')
}
string { name('LICENSE_DURATION')
defaultValue('')
description('Валидный период лицензии в месяцах')
}
string { name('OWNER_TITLE')
defaultValue('')
description('Название новой компании')
}
string { name('OWNER_ID')
defaultValue('')
description('Идентификатор существующего Владельца')
}
string { name('INSTALLATION_LIMIT')
defaultValue('1')
description('Количество возможных созданных инсталляции')
}
string { name('KEY_LIMIT')
defaultValue('1')
description('Максимальное количество созданных ключей')
}
string { name('VALIDATION_PERIOD')
defaultValue('1')
description('Проверка в часах')
}
string { name('ADMIN_EMAIL')
defaultValue('')
description('Почта администратора')
}
string { name('OPERATOR_LOGIN')
defaultValue('')
description('Логин оператора')
}
string { name('COMMENT')
defaultValue('')
description('Комментарий')
}
}
}