This repository was archived by the owner on Jun 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
UpdateVariable
Erwan KOFFI edited this page Nov 21, 2017
·
1 revision
This task allows you to update variables on Data Fabric.
The task can be launched with the command gradle updateVariable.
The configuration variable allows to update multiple variables at once.
Once your saagie object is available on your project with the server correctly set up,
you need to fill the variable list which will be updated.
saagie {
server {...}
variables {[
{
name = <variable_name>
value = <variable_value>
password = <password_flag>
}
]}
}
The platform where variable will be updated is set up in the server object. The gradle task will fail if a variable with the same name already exists.
-
id (mandatory)
- The id of the variable that will be updated.
- type: int
- default: 0
-
name (mandatory)
- The name of the variable that will be updated.
- type: string
- default:
-
value (mandatory)
- The value of the variable.
- type: string
- default:
-
password
- Set this flag to true if your variable has to be secured.
- type: boolean
- default: false
saagie {
server {...}
variables {[
{
id = 1
name = 'MY_ENV_VAR'
value = '9000'
}
]}
}
saagie {
server {...}
variables {[
{
id = 2
name = 'MY_SECRET_VAR'
value = 'secret'
password = true
}
]}
}
saagie {
server {...}
variables {[
{
id = 24
name = 'MY_ENV_VAR'
value = '9001'
},
{
id = 42
name = 'MY_SECOND_VAR'
value = '42'
},
{
id = 999
name = 'MY_THIRD_SECRET_VAR'
value = '666'
password = true
}
]}
}
- List jobs
- Create job (Examples)
- Update job (Examples)
- Export job (Examples)
- Export all jobs (Examples)
- Import job (Examples)
- Import all jobs (Examples)
- Delete Job (Examples)
- Create variable (Examples)
- Update variable (Examples)
- Export variable (Examples)
- Export all variables (Examples)
- Import variables (Examples)
- Run job (Examples)
- Stop job (Examples)