cron set for foglamp job and other minor code refactoring
@@ -22,7 +22,8 @@ node {
description: "run tests as per your choice",
name: 'suite'
)
- ])
+ ]),
+ pipelineTriggers([cron('H(0-0) 6,21 * * *')])
])
try{
@@ -58,7 +59,7 @@ node {
./build.sh -l
'''
ansiColor('xterm'){
- warnings([canComputeNew:false, canResolveRelativePaths:false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations:[[parserName: 'PyLint', pattern: 'pylint_*.log']], unHealthy: ''])
+ warnings([canResolveRelativePaths: false, canRunOnFailed: true, categoriesPattern: '', defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'PyLint', pattern: 'pylint_*.log']], unHealthy: ''])
}
}
}
@@ -67,18 +68,6 @@ node {
// see test code coverage report from Coverage report Plugin only when suite choice_test_all and choice_test_python
stage ("Test Report"){
try{
- // Preparing Database setup
- def jenkins_db_user = 'jenkins'
- def foglamp_db_user = 'foglamp'
- def postgres_db_user = 'postgres'
-
- sh "PGPASSWORD=${postgres_db_user} psql -U ${postgres_db_user} -h localhost -f ${workspace_dir}/src/sql/foglamp_ddl.sql ${postgres_db_user}"
- sh "PGPASSWORD=${foglamp_db_user} psql -U ${foglamp_db_user} -h localhost -f ${workspace_dir}/src/sql/foglamp_init_data.sql ${foglamp_db_user}"
- sh "PGPASSWORD=${foglamp_db_user} psql -c 'GRANT ALL ON DATABASE ${foglamp_db_user} to ${jenkins_db_user};' -U ${foglamp_db_user} -h localhost"
- sh "PGPASSWORD=${foglamp_db_user} psql -c 'GRANT ALL ON SCHEMA ${foglamp_db_user} to ${jenkins_db_user};' -U ${foglamp_db_user} -h localhost"
- sh "PGPASSWORD=${foglamp_db_user} psql -c 'ALTER ROLE ${jenkins_db_user} IN DATABASE ${foglamp_db_user} SET search_path = ${foglamp_db_user};' -U ${foglamp_db_user} -h localhost"
- sh "PGPASSWORD=${foglamp_db_user} psql -c 'GRANT ALL ON ALL TABLES IN SCHEMA ${foglamp_db_user} TO ${jenkins_db_user};' -U ${foglamp_db_user} -h localhost"
-
dir ('src/python/'){
if (suite == "${choice_test_all}"){
echo "${choice_test_all}"
