[DO-1026] create_license (!34)
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/34 Reviewed-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
78
jobs-dsl/jobs/License-server/create_license.groovy
Normal file
78
jobs-dsl/jobs/License-server/create_license.groovy
Normal file
@@ -0,0 +1,78 @@
|
||||
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('Комментарий')
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user