diff --git a/ansible/esupgrade.yml b/ansible/esupgrade.yml deleted file mode 100644 index b213e82134ae6d8d46fd107258719401e6d6bb81..0000000000000000000000000000000000000000 --- a/ansible/esupgrade.yml +++ /dev/null @@ -1,7 +0,0 @@ -- hosts: es-upgrade - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml'] - roles: - - openjdk - - esUpgrade diff --git a/ansible/inventory/env/group_vars/all.yml b/ansible/inventory/env/group_vars/all.yml index 45ce79c98561c4f61b3f162cde5f2439356c9139..450585df0d1ac08127400313f2466bd35690b681 100644 --- a/ansible/inventory/env/group_vars/all.yml +++ b/ansible/inventory/env/group_vars/all.yml @@ -110,8 +110,8 @@ sunbird_cassandra_host: "{{groups['cassandra']|join(',')}}" #Private IP of Cass sunbird_es_host: "{{groups['es']| join(',')}}" ## Application server configurations -sunbird_analytics_api_base_url: "http://{{analyticsapi_ip}}:9000" -sunbird_search_service_api_base_url: "http://{{sunbird_swarm_manager_lb_ip}}:9004" +sunbird_analytics_api_base_url: "http://analytics-service.{{namespace}}.svc.cluster.local:9000" +sunbird_search_service_api_base_url: "http://search-service.{{namespace}}.svc.cluster.local:9000" sunbird_mail_server_host: "{{ mail_server_host }}" #SMTP server IP. Could be ignored if not mails are to be sent. sunbird_mail_server_port: "{{ mail_server_port }}" #SMTP port. Could be ignored if not mails are to be sent. sunbird_mail_server_username: "{{ mail_server_username }}" #SMTP username. Could be ignored if not mails are to be sent. @@ -197,8 +197,8 @@ sunbird_dial_repo_api_key: "{{ core_vault_sunbird_ekstep_api_key }}" sunbird_plugin_repo_api_base_url: "{{ sunbird_search_service_api_base_url }}" sunbird_data_service_api_base_url: "{{sunbird_ekstep_api_base_url}}" sunbird_data_service_api_key: "{{ core_vault_sunbird_ekstep_api_key }}" -sunbird_content_service_api_base_url: "http://{{sunbird_swarm_manager_lb_ip}}:9002" -sunbird_user_service_api_base_url: "http://{{sunbird_swarm_manager_lb_ip}}:9000" +sunbird_content_service_api_base_url: "http:///content-service.{{namespace}}.svc.cluster.local:9000" +sunbird_user_service_api_base_url: "http:///learner-service.{{namespace}}.svc.cluster.local:9000" sunbird_group_service_api_base_url: "http://groups-service:9000" #API Manager @@ -262,7 +262,7 @@ enable_scraping_docker_metrics: false postgres_exporter_postgres_port: 5432 postgres_exporter_user: postgres_exporter sunbird_cs_base_url: "http://{{sunbird_swarm_manager_lb_ip}}:5000" -sunbird_user_service_base_url: "http://{{sunbird_swarm_manager_lb_ip}}:9000" +sunbird_user_service_base_url: "http://{{private_ingressgateway_ip}}/learner" kong_admin_api_url: http://localhost:8001 @@ -342,7 +342,7 @@ sunbird_device_register_api: "{{proto}}://{{api_proxy_name}}/v3/device/register/ sunbird_course_batch_notification_signature: sunbird sunbird_authorization: "{{core_vault_sunbird_api_auth_token}}" -sunbird_lms_base_url: "http://{{sunbird_swarm_manager_lb_ip}}:8000" +sunbird_lms_base_url: "http://{{private_ingressgateway_ip}}/api" sunbird_content_service_local_base_url: "http://{{sunbird_swarm_manager_lb_ip}}:5000" sunbird_kafka_host: "{{sunbird_processing_kafka_host}}" sunbird_qrimage_topic: "{{env}}.qrimage.request" @@ -543,7 +543,7 @@ sunbird_sso_kafka_topic: "{{env_name}}.lms.sso.events" __yarn_host__: "{{ groups['yarn-master'][0] }}" zookeepers: "{{groups['zookeeper']|join(':2181,')}}:2181" kafka_brokers: "{{groups['processing-cluster-kafka']|join(':9092,')}}:9092" -__lms_host__: "http://{{sunbird_swarm_manager_lb_ip}}:9000" +__lms_host__: "http://{{private_ingressgateway_ip}}/learner" sunbird_redis_host: "{{ groups['lp-redis'][0] }}" @@ -649,3 +649,13 @@ group_activity_agg_cache_enable: false # nodebb variables mongo_nodebb_host: "{{ groups['mongo'] | join(',')}}" +sunbird_nodebb_storage_key: "{{ core_vault_sunbird_nodebb_storage_key }}" +mongo_nodebb_host: "{{ groups['mongo'] | join(':27017,')}}:27017" +kibana_service: "http://kibana.logging.svc.cluster.local:5601" +sunbird_dial_repo_api_base_url: "http://{{dialservice_ip}}:9001" + +#report service +dp_postgres_host: "{{ groups['postgres'][0] }}" +dp_postgres_db: analytics +dp_postgres_password: "{{ core_vault_dp_pgdb_password }}" +dp_postgres_username: analytics diff --git a/ansible/logging.yml b/ansible/logging.yml index fd3dc74c9538edf0d972fa05fef9b8fe59caed6d..426a6531d6c4193a034226e68e592c9844a925a5 100644 --- a/ansible/logging.yml +++ b/ansible/logging.yml @@ -1,126 +1,14 @@ --- -- hosts: swarm-nodes - become: yes - tasks: - - name: Spray cluster name to nodes - copy: dest=/home/deployer/cluster_name content="{{ cluster_name }}" - when: cluster_name is defined - tags: - - stack-logger - -- hosts: swarm-bootstrap-manager - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml'] - roles: - - stack-logger - tags: - - stack-logger - run_once: true - -- hosts: swarm-dashboard +# You can choose host names on jenkins and run the job. If you have custom host groups, you can add them to jenkins job and run +# To start or stop filebeat, choose the tag on jenkins job +- hosts: "{{ hosts }}" become: yes + gather_facts: no + ignore_unreachable: yes vars_files: - - ['{{inventory_dir}}/secrets.yml'] - roles: - - stack-kibana - tags: - - stack-kibana - -- hosts: swarm-dashboard - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml'] - roles: - - stack-oauth - tags: - - stack-oauth - -- hosts: log-forwarder - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml'] - roles: - - vm-agents-filebeat - tags: - - log-forwarder - -- hosts: lp-learning-ps - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/data/logs/learning_service_mw.log' } - tags: - - learningall - - filebeat - -- hosts: lp-search-ps - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/data/logs/search_service_mw.log' } - tags: - - searchall - - filebeat - -- hosts: dp-neo4j-ps - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/home/learning/neo4j-learning/neo4j-enterprise-3.3.0/logs/neo4j.log' } - tags: - - neo4j - - filebeat - -- hosts: cassandra-ps - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/var/log/cassandra/debug.log' } - tags: - - cassandra - - filebeat - -- hosts: dp-analytics-ps - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/mount/data/analytics/logs/services/api-service.log, /var/log/logstash/logstash-plain.log' } - tags: - - analytics - - filebeat - -- hosts: dp-kafkaindexer-ps - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/var/log/logstash/logstash-plain.log' } - tags: - - kafkaindexer - - filebeat - -- hosts: zookeeper - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/var/log/zookeeper/zookeeper.log' } - tags: - - zookeeper - - filebeat - -- hosts: keycloak - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - { role: vm-agents-filebeat, filebeat_log_path: '/opt/keycloak/standalone/log/server.log' } - tags: - - keycloak - - filebeat + - "{{inventory_dir}}/secrets.yml" + tasks: + - include_role: + name: vm-agents-filebeat + tags: + - "{{ tags }}" diff --git a/ansible/esupgradelatest.yml b/ansible/provision-log-es.yml similarity index 92% rename from ansible/esupgradelatest.yml rename to ansible/provision-log-es.yml index d14ea66e07f2ae875da0628ea07b4bb7c5897a92..d845b2f72582d53527ac6554da5a276576ea74fb 100644 --- a/ansible/esupgradelatest.yml +++ b/ansible/provision-log-es.yml @@ -5,7 +5,8 @@ pre_tasks: - name: Registering node name set_fact: - es_instance_name: "{% for servername in play_hosts %}{% if inventory_hostname==servername %}es-{{ loop.index }}{% endif %}{% endfor %}" + es_instance_name: "{% for servername in play_hosts %}{% if inventory_hostname==servername %}log-es-{{ loop.index }}{% endif %}{% endfor %}" + when: es_instance_name is not defined roles: - openjdk - { role: log-es6, @@ -51,3 +52,5 @@ method: PUT return_content: true timeout: 30 + retries: 3 + delay: 10 diff --git a/ansible/provision.yml b/ansible/provision.yml index b85eeaad5e244dc86857c926736f49e8eacda9c0..9e2f91b06166ce1e22cf4d020f7385c8523d847d 100644 --- a/ansible/provision.yml +++ b/ansible/provision.yml @@ -36,17 +36,6 @@ tags: - es -- hosts: log-es - gather_facts: true - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - openjdk - - application_logger_elasticsearch - tags: - - log-es - - hosts: postgresql-master become: yes vars_files: diff --git a/ansible/registry_logging.yml b/ansible/registry_logging.yml index 4df3e446658b49687833102aa84eb12ad59fd375..ed699a3124559cd9c2cd8cec334ec3a889249246 100644 --- a/ansible/registry_logging.yml +++ b/ansible/registry_logging.yml @@ -6,14 +6,3 @@ - stack-logger tags: - stack-logger - -- hosts: log-es - become: yes - vars_files: - - ['{{inventory_dir}}/secrets.yml', 'secrets/{{env}}.yml'] - roles: - - openjdk - - application_logger_elasticsearch - tags: - - log-es - diff --git a/ansible/roles/application_logger_elasticsearch/defaults/main.yml b/ansible/roles/application_logger_elasticsearch/defaults/main.yml deleted file mode 100755 index a014f35e93028edb65faa0470e1443a8014a6d2b..0000000000000000000000000000000000000000 --- a/ansible/roles/application_logger_elasticsearch/defaults/main.yml +++ /dev/null @@ -1,3 +0,0 @@ -es_plugins: - - name: cloud-azure -es_plugins_reinstall: true diff --git a/ansible/roles/application_logger_elasticsearch/meta/main.yml b/ansible/roles/application_logger_elasticsearch/meta/main.yml deleted file mode 100755 index d52b5ac2b6cda3665709703c1936784d70b84b73..0000000000000000000000000000000000000000 --- a/ansible/roles/application_logger_elasticsearch/meta/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -dependencies: - - elasticsearch_old diff --git a/ansible/roles/application_logger_elasticsearch/tasks/main.yml b/ansible/roles/application_logger_elasticsearch/tasks/main.yml deleted file mode 100644 index 53722e54e05a71d28784eda043c1c5b2533bc5c9..0000000000000000000000000000000000000000 --- a/ansible/roles/application_logger_elasticsearch/tasks/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -- debug: msg="ES version={{es_version}}" diff --git a/ansible/roles/elasticsearch_old/defaults/main.yml b/ansible/roles/elasticsearch_old/defaults/main.yml deleted file mode 100644 index 32f111f44a71f6ff819d4dc5fa895a8168bfe9a7..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/defaults/main.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -# Elasticsearch release and version to install -es_release: "2.4" -es_minor_release: "5" -es_user: elasticsearch -es_logging_level: INFO -es_etc_path_data: /var/lib/elasticsearch -es_default_max_open_files: 65535 -es_etc_index_number_of_shards: 1 -es_version: "{{ es_release }}.{{es_minor_release}}" -backup_storage_name: -backup_storage_key: -# Wait for elasticsearch to be listening for connections before proceeding -# (e.g. after install / restart) -es_wait_for_listen: yes -es_etc_network_host: 0.0.0.0 - -# Plugins to install, specified as: -# - name: <plugin name, including optional version string> -# url: <optional url to download the plugin from> -# plugin_file: <optional plugin file to check if the plugin is installed> -es_plugins: [] - - -# Other settings can be set here - -# Settings in /etc/defaults/elasticsearch, for example: -# es_default_es_user: elasticsearch -# es_default_es_group: elasticsearch -# -# See templates/elasticsearch for a full list and description of the settings -# Additional settings not on the list can also be added like this: -# -# es_default: -# CUSTOM_VAR_ONE: 1 -# CUSTOM_VAR_TWO: two -# -# This will become: -# -# CUSTOM_VAR_ONE=1 -# CUSTOM_VAR_TWO=two - -# Settings in /etc/elasticsearch/elasticsearch.yml, for example: -# es_etc_cluster_name: elasticsearch -# es_etc_index_number_of_shards: 3 -# See templates/elasticsearch.yml for a full list and description of the settings -# -# Additional settings not on the list can also be added like this: -# -# es_etc: -# http.max_header_size: 16kB -# transport.tcp.connect_timeout: 20s -# -# This will become: -# -# http.max_header_size: 16kB -# transport.tcp.connect_timeout: 20s diff --git a/ansible/roles/elasticsearch_old/handlers/main.yml b/ansible/roles/elasticsearch_old/handlers/main.yml deleted file mode 100644 index db49efaf7f5c98a416bebbf02bc4333c68ca557f..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/handlers/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Restart elasticsearch - service: name=elasticsearch state=restarted - notify: Wait for elasticsearch to be listening for connections - -- name: Wait for elasticsearch to be listening for connections - wait_for: port={{ es_etc_http_port | default(9200) }} - when: es_wait_for_listen diff --git a/ansible/roles/elasticsearch_old/tasks/debian.yml b/ansible/roles/elasticsearch_old/tasks/debian.yml deleted file mode 100644 index 8a375e384868f8297dc9454516221d085cb73004..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/tasks/debian.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Add ElasticSearch repo public signing key - apt_key: id=46095ACC8548582C1A2699A9D27D666CD88E42B4 url=https://packages.elastic.co/GPG-KEY-elasticsearch state=present - -- name: Add ElasticSearch repository - apt_repository: - repo: 'deb http://packages.elasticsearch.org/elasticsearch/2.x/debian stable main' - state: present - -- name: Get information on the RAM - set_fact: - es_default_es_heap_size: "{% if ((ansible_memory_mb.real.total/(2*1024))|int) > 30000 %}26g{% else %}{{(((ansible_memory_mb.real.total/(2*1024))+1)|int)}}g{% endif %}" - when: es_default_es_heap_size is not defined - - -- name: Copy /etc/default/elasticsearch - template: src=elasticsearch dest=/etc/default/elasticsearch - tags: update_es_config - notify: Restart elasticsearch - -- debug: msg="es_version={{es_version}}" - -- name: Install ElasticSearch - apt: name=elasticsearch={{ es_version }} state=present - notify: Restart elasticsearch diff --git a/ansible/roles/elasticsearch_old/tasks/main.yml b/ansible/roles/elasticsearch_old/tasks/main.yml deleted file mode 100644 index 0b234a1df1aff0b53ac35244c2f7036758a4c6cc..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/tasks/main.yml +++ /dev/null @@ -1,75 +0,0 @@ ---- -- include: debian.yml - when: ansible_os_family == "Debian" - -- include: redhat.yml - when: ansible_os_family == "RedHat" - -- name: Copy /etc/elasticsearch/elasticsearch.yml - template: src=elasticsearch.yml dest=/etc/elasticsearch/elasticsearch.yml - tags: update_es_config - notify: Restart elasticsearch - -- name: Creates data directory - file: - path={{ es_etc_path_data }} - state=directory - mode=755 - owner={{ es_user }} - group={{ es_user }} - -- name: Creates scripts directory - file: - path={{ elasticsearch_config }}/scripts - state=directory - mode=755 - owner={{ es_user }} - group={{ es_user }} - -- name: Copy logger file - template: src=logging.yml dest={{ elasticsearch_config }}/logging.yml - become: yes - tags: update_es_config - notify: Restart elasticsearch - -- name: Start ES service - service: name=elasticsearch state=started - -- name: Set elasticsearch service to start on boot - service: name=elasticsearch state=started - -- name: Remove plugins - command: bin/plugin remove {{item.name}} - args: - chdir: "{{ es_home }}" - with_items: "{{ es_plugins }}" - ignore_errors: yes - notify: Restart elasticsearch - -- name: Install azure plugin for elasticsearch - shell: ES_PATH_CONF=/etc/elasticsearch /usr/share/elasticsearch/bin/plugin install cloud-azure - -- name: Install plugins - command: bin/plugin install {{item.name}} {%if item.url is defined %} url {{item.url}}{% endif %} - args: - chdir: "{{ es_home }}" - creates: "{{ es_home }}/plugins/{{ item.plugin_file | default(item.name) }}" - with_items: "{{ es_plugins }}" - ignore_errors: yes - notify: Restart elasticsearch - -- name: Configure /etc/security/limits.conf - lineinfile: > - dest=/etc/security/limits.conf - line="{{ item.line }}" - state=present - with_items: - - { line: 'elasticsearch - nofile {{ es_default_max_open_files }}' } - - { line: 'elasticsearch - memlock unlimited' } - - { line: 'root - memlock unlimited' } - become: yes - notify: Restart elasticsearch - -- name: Start Elasticsearch - service: name=elasticsearch state=started - become: yes diff --git a/ansible/roles/elasticsearch_old/tasks/redhat.yml b/ansible/roles/elasticsearch_old/tasks/redhat.yml deleted file mode 100644 index 45d095032e4edca356cc213d1142e6f9a1d7f20e..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/tasks/redhat.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: Add ElasticSearch repo public signing key - rpm_key: key=https://packages.elastic.co/GPG-KEY-elasticsearch state=present - -- name: Add ElasticSearch repository - template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch.repo - -- name: Copy /etc/sysconfig/elasticsearch - template: src=elasticsearch dest=/etc/sysconfig/elasticsearch - notify: Restart elasticsearch - -- name: Install ElasticSearch - yum: name=elasticsearch-{{ es_version }} state=present - notify: Restart elasticsearch diff --git a/ansible/roles/elasticsearch_old/templates/elasticsearch b/ansible/roles/elasticsearch_old/templates/elasticsearch deleted file mode 100644 index 508debb6c7d7ced99d6c9a69287c91cc7d2df700..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/templates/elasticsearch +++ /dev/null @@ -1,67 +0,0 @@ -# Run Elasticsearch as this user ID and group ID -#ES_USER=elasticsearch -{% if es_default_es_user is defined %}ES_USER={{ es_default_es_user }}{% endif %} - -#ES_GROUP=elasticsearch -{% if es_default_es_group is defined %}ES_GROUP={{ es_default_es_group }}{% endif %} - -# Heap Size (defaults to 256m min, 1g max) -#ES_HEAP_SIZE=2g -{% if es_default_es_heap_size is defined %}ES_HEAP_SIZE={{ es_default_es_heap_size }}{% endif %} - -# Heap new generation -#ES_HEAP_NEWSIZE= -{% if es_default_es_heap_newsize is defined %}ES_HEAP_NEWSIZE={{ es_default_es_heap_newsize }}{% endif %} - -# max direct memory -#ES_DIRECT_SIZE= -{% if es_default_es_direct_size is defined %}ES_DIRECT_SIZE={{ es_default_es_direct_size }}{% endif %} - -# Maximum number of open files, defaults to 65535. -#MAX_OPEN_FILES=65535 -{% if es_default_max_open_files is defined %}MAX_OPEN_FILES={{ es_default_max_open_files }}{% endif %} - -# Maximum locked memory size. Set to "unlimited" if you use the -# bootstrap.mlockall option in es_yml. You must also set -# ES_HEAP_SIZE. -#MAX_LOCKED_MEMORY=unlimited -{% if es_default_max_locked_memory is defined %}MAX_LOCKED_MEMORY={{ es_default_max_locked_memory }}{% endif %} - -# Maximum number of VMA (Virtual Memory Areas) a process can own -#MAX_MAP_COUNT=262144 -{% if es_default_max_map_count is defined %}MAX_MAP_COUNT={{ es_default_max_map_count }}{% endif %} - -# Elasticsearch log directory -#LOG_DIR=/var/log/elasticsearch -{% if es_default_log_dir is defined %}LOG_DIR={{ es_default_log_dir }}{% endif %} - -# Elasticsearch data directory -#DATA_DIR=/var/lib/elasticsearch -{% if es_default_data_dir is defined %}DATA_DIR={{ es_default_data_dir }}{% endif %} - -# Elasticsearch work directory -#WORK_DIR=/tmp/elasticsearch -{% if es_default_work_dir is defined %}WORK_DIR={{ es_default_work_dir }}{% endif %} - -# Elasticsearch configuration directory -#CONF_DIR=/etc/elasticsearch -{% if es_default_conf_dir is defined %}CONF_DIR={{ es_default_conf_dir }}{% endif %} - -# Elasticsearch configuration file (es_yml) -#CONF_FILE=/etc/elasticsearch/elasticsearch.yml -{% if es_default_conf_file is defined %}CONF_FILE={{ es_default_conf_file }}{% endif %} - -# Additional Java OPTS -#ES_JAVA_OPTS= -{% if es_default_es_java_opts is defined %}ES_JAVA_OPTS={{ es_default_es_java_opts }}{% endif %} - -# Configure restart on package upgrade (true, every other setting will lead to not restarting) -#RESTART_ON_UPGRADE=true -{% if es_default_restart_on_upgrade is defined %}RESTART_ON_UPGRADE={{ es_default_restart_on_upgrade }}{% endif %} - -# Additional variables -{% if es_default is defined %} -{% for key, value in es_default.iteritems() %} -{{ key }}={{ value }} -{% endfor %} -{% endif %} diff --git a/ansible/roles/elasticsearch_old/templates/elasticsearch.yml b/ansible/roles/elasticsearch_old/templates/elasticsearch.yml deleted file mode 100644 index 832f067332b5418049c503a047b8bb4cfad9b8b5..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/templates/elasticsearch.yml +++ /dev/null @@ -1,493 +0,0 @@ -##################### Elasticsearch Configuration Example ##################### - -# This file contains an overview of various configuration settings, -# targeted at operations staff. Application developers should -# consult the guide at <http://elasticsearch.org/guide>. -# -# The installation procedure is covered at -# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. -# -# Elasticsearch comes with reasonable defaults for most settings, -# so you can try it out without bothering with configuration. -# -# Most of the time, these defaults are just fine for running a production -# cluster. If you're fine-tuning your cluster, or wondering about the -# effect of certain configuration option, please _do ask_ on the -# mailing list or IRC channel [http://elasticsearch.org/community]. - -# Any element in the configuration can be replaced with environment variables -# by placing them in ${...} notation. For example: -# -#node.rack: ${RACK_ENV_VAR} - -# For information on supported formats and syntax for the config file, see -# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html> - - -################################### Cluster ################################### - -# Cluster name identifies your cluster for auto-discovery. If you're running -# multiple clusters on the same network, make sure you're using unique names. -# -#cluster.name: elasticsearch -{% if es_etc_cluster_name is defined %}cluster.name: {{ es_etc_cluster_name }}{% endif %} - - -#################################### Node ##################################### - -# Node names are generated dynamically on startup, so you're relieved -# from configuring them manually. You can tie this node to a specific name: -# -#node.name: "Franz Kafka" -{% if es_etc_node_name is defined %}node.name: {{ es_etc_node_name }}{% endif %} - -# Every node can be configured to allow or deny being eligible as the master, -# and to allow or deny to store the data. -# -# Allow this node to be eligible as a master node (enabled by default): -# -#node.master: true -# -# Allow this node to store data (enabled by default): -# -#node.data: true -{% if es_etc_node_master is defined %}node.master: {{ es_etc_node_master }}{% endif %} - -{% if es_etc_node_data is defined %}node.data: {{ es_etc_node_data }}{% endif %} - -# You can exploit these settings to design advanced cluster topologies. -# -# 1. You want this node to never become a master node, only to hold data. -# This will be the "workhorse" of your cluster. -# -#node.master: false -#node.data: true -# -# 2. You want this node to only serve as a master: to not store any data and -# to have free resources. This will be the "coordinator" of your cluster. -# -#node.master: true -#node.data: false -# -# 3. You want this node to be neither master nor data node, but -# to act as a "search load balancer" (fetching data from nodes, -# aggregating results, etc.) -# -#node.master: false -#node.data: false - -# Use the Cluster Health API [http://localhost:9200/_cluster/health], the -# Node Info API [http://localhost:9200/_nodes] or GUI tools -# such as <http://www.elasticsearch.org/overview/marvel/>, -# <http://github.com/karmi/elasticsearch-paramedic>, -# <http://github.com/lukas-vlcek/bigdesk> and -# <http://mobz.github.com/elasticsearch-head> to inspect the cluster state. - -# A node can have generic attributes associated with it, which can later be used -# for customized shard allocation filtering, or allocation awareness. An attribute -# is a simple key value pair, similar to node.key: value, here is an example: -# -#node.rack: rack314 -{% if es_etc_node_rack is defined %}node.rack: {{ es_etc_node_rack }}{% endif %} - -# By default, multiple nodes are allowed to start from the same installation location -# to disable it, set the following: -#node.max_local_storage_nodes: 1 -{% if es_etc_node_max_local_storage_nodes is defined %}node.max_local_storage_nodes: {{ es_etc_node_max_local_storage_nodes }}{% endif %} - - -#################################### Index #################################### - -# You can set a number of options (such as shard/replica options, mapping -# or analyzer definitions, translog settings, ...) for indices globally, -# in this file. -# -# Note, that it makes more sense to configure index settings specifically for -# a certain index, either when creating it or by using the index templates API. -# -# See <http://elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules.html> and -# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html> -# for more information. - -# Set the number of shards (splits) of an index (5 by default): -# -#index.number_of_shards: 5 -{% if es_etc_index_number_of_shards is defined %}index.number_of_shards: {{ es_etc_index_number_of_shards }}{% endif %} - -# Set the number of replicas (additional copies) of an index (1 by default): -# -#index.number_of_replicas: 1 -{% if es_etc_index_number_of_replicas is defined %}index.number_of_replicas: {{ es_etc_index_number_of_replicas }}{% endif %} - -# Note, that for development on a local machine, with small indices, it usually -# makes sense to "disable" the distributed features: -# -#index.number_of_shards: 1 -#index.number_of_replicas: 0 - -# These settings directly affect the performance of index and search operations -# in your cluster. Assuming you have enough machines to hold shards and -# replicas, the rule of thumb is: -# -# 1. Having more *shards* enhances the _indexing_ performance and allows to -# _distribute_ a big index across machines. -# 2. Having more *replicas* enhances the _search_ performance and improves the -# cluster _availability_. -# -# The "number_of_shards" is a one-time setting for an index. -# -# The "number_of_replicas" can be increased or decreased anytime, -# by using the Index Update Settings API. -# -# Elasticsearch takes care about load balancing, relocating, gathering the -# results from nodes, etc. Experiment with different settings to fine-tune -# your setup. - -# Use the Index Status API (<http://localhost:9200/A/_status>) to inspect -# the index status. - - -#################################### Paths #################################### - -# Path to directory containing configuration (this file and logging.yml): -# -#path.conf: /path/to/conf -{% if es_etc_path_conf is defined %}path.conf: {{ es_etc_path_conf }}{% endif %} - -# Path to directory where to store index data allocated for this node. -# -#path.data: /path/to/data -# -# Can optionally include more than one location, causing data to be striped across -# the locations (a la RAID 0) on a file level, favouring locations with most free -# space on creation. For example: -# -#path.data: /path/to/data1,/path/to/data2 -{% if es_etc_path_data is defined %}path.data: {{ es_etc_path_data }}{% endif %} - -# Path to temporary files: -# -#path.work: /path/to/work -{% if es_etc_path_work is defined %}path.work: {{ es_etc_path_work }}{% endif %} - -# Path to log files: -# -#path.logs: /path/to/logs -{% if es_etc_path_logs is defined %}path.logs: {{ es_etc_path_logs }}{% endif %} - -# Path to where plugins are installed: -# -#path.plugins: /path/to/plugins -{% if es_etc_path_plugins is defined %}path.plugins: {{ es_etc_path_plugins }}{% endif %} - - -#################################### Plugin ################################### - -# If a plugin listed here is not installed for current node, the node will not start. -# -#plugin.mandatory: mapper-attachments,lang-groovy -{% if es_etc_plugin_mandatory is defined %}plugin.mandatory: {{ es_etc_plugin_mandatory }}{% endif %} - - -################################### Memory #################################### - -# Elasticsearch performs poorly when JVM starts swapping: you should ensure that -# it _never_ swaps. -# -# Set this property to true to lock the memory: -# -#bootstrap.mlockall: true -{% if es_etc_bootstrap_mlockall is defined %}bootstrap.mlockall: {{ es_etc_bootstrap_mlockall }}{% endif %} - -# Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set -# to the same value, and that the machine has enough memory to allocate -# for Elasticsearch, leaving enough memory for the operating system itself. -# -# You should also make sure that the Elasticsearch process is allowed to lock -# the memory, eg. by using `ulimit -l unlimited`. - - -############################## Network And HTTP ############################### - -# Elasticsearch, by default, binds itself to the 0.0.0.0 address, and listens -# on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node -# communication. (the range means that if the port is busy, it will automatically -# try the next port). - -# Set the bind address specifically (IPv4 or IPv6): -# -#network.bind_host: 192.168.0.1 -{% if es_etc_network_bind_host is defined %}network.bind_host: {{ es_etc_network_bind_host }}{% endif %} - -# Set the address other nodes will use to communicate with this node. If not -# set, it is automatically derived. It must point to an actual IP address. -# -#network.publish_host: 192.168.0.1 -{% if es_etc_network_publish_host is defined %}network.publish_host: {{ es_etc_network_publish_host }}{% endif %} - -# Set both 'bind_host' and 'publish_host': -# -#network.host: 192.168.0.1 -{% if es_etc_network_host is defined %}network.host: {{ es_etc_network_host }}{% endif %} - -# Set a custom port for the node to node communication (9300 by default): -# -#transport.tcp.port: 9300 -{% if es_etc_transport_tcp_port is defined %}transport.tcp.port: {{ es_etc_transport_tcp_port }}{% endif %} - -# Enable compression for all communication between nodes (disabled by default): -# -#transport.tcp.compress: true -{% if es_etc_transport_tcp_compress is defined %}transport.tcp.compress: {{ es_etc_transport_tcp_compress }}{% endif %} - -# Set a custom port to listen for HTTP traffic: -# -#http.port: 9200 -{% if es_etc_http_port is defined %}http.port: {{ es_etc_http_port }}{% endif %} - -# Set a custom allowed content length: -# -#http.max_content_length: 100mb -{% if es_etc_http_max_content_length is defined %}http.max_content_length: {{ es_etc_http_max_content_length }}{% endif %} - -# Disable HTTP completely: -# -#http.enabled: false -{% if es_etc_http_enabled is defined %}http.enabled: {{ es_etc_http_enabled }}{% endif %} - - -################################### Gateway ################################### - -# The gateway allows for persisting the cluster state between full cluster -# restarts. Every change to the state (such as adding an index) will be stored -# in the gateway, and when the cluster starts up for the first time, -# it will read its state from the gateway. - -# There are several types of gateway implementations. For more information, see -# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway.html>. - -# The default gateway type is the "local" gateway (recommended): -# -#gateway.type: local -{% if es_etc_gateway_type is defined %}gateway.type: {{ es_etc_gateway_type }}{% endif %} - -# Settings below control how and when to start the initial recovery process on -# a full cluster restart (to reuse as much local data as possible when using shared -# gateway). - -# Allow recovery process after N nodes in a cluster are up: -# -#gateway.recover_after_nodes: 1 -{% if es_etc_gateway_recover_after_nodes is defined %}gateway.recover_after_nodes: {{ es_etc_gateway_recover_after_nodes }}{% endif %} - -# Set the timeout to initiate the recovery process, once the N nodes -# from previous setting are up (accepts time value): -# -#gateway.recover_after_time: 5m -{% if es_etc_gateway_recover_after_time is defined %}gateway.recover_after_time: {{ es_etc_gateway_recover_after_time }}{% endif %} - -# Set how many nodes are expected in this cluster. Once these N nodes -# are up (and recover_after_nodes is met), begin recovery process immediately -# (without waiting for recover_after_time to expire): -# -#gateway.expected_nodes: 2 -{% if es_etc_gateway_expected_nodes is defined %}gateway.expected_nodes: {{ es_etc_gateway_expected_nodes }}{% endif %} - - -############################# Recovery Throttling ############################# - -# These settings allow to control the process of shards allocation between -# nodes during initial recovery, replica allocation, rebalancing, -# or when adding and removing nodes. - -# Set the number of concurrent recoveries happening on a node: -# -# 1. During the initial recovery -# -#cluster.routing.allocation.node_initial_primaries_recoveries: 4 -{% if es_etc_cluster_routing_allocation_node_initial_primaries_recoveries is defined %}cluster.routing.allocation.node_initial_primaries_recoveries: {{ es_etc_cluster_routing_allocation_node_initial_primaries_recoveries }}{% endif %} - -# -# 2. During adding/removing nodes, rebalancing, etc -# -#cluster.routing.allocation.node_concurrent_recoveries: 2 -{% if es_etc_cluster_routing_allocation_node_concurrent_recoveries is defined %}cluster.routing.allocation.node_concurrent_recoveries: {{ es_etc_cluster_routing_allocation_node_concurrent_recoveries }}{% endif %} - -# Set to throttle throughput when recovering (eg. 100mb, by default 20mb): -# -#indices.recovery.max_bytes_per_sec: 20mb -{% if es_etc_indices_recovery_max_bytes_per_sec is defined %}indices.recovery.max_bytes_per_sec: {{ es_etc_indices_recovery_max_bytes_per_sec }}{% endif %} - -# Set to limit the number of open concurrent streams when -# recovering a shard from a peer: -# -#indices.recovery.concurrent_streams: 5 -{% if es_etc_indices_recovery_concurrent_streams is defined %}indices.recovery.concurrent_streams: {{ es_etc_indices_recovery_concurrent_streams }}{% endif %} - - -################################## Discovery ################################## - -# Discovery infrastructure ensures nodes can be found within a cluster -# and master node is elected. Multicast discovery is the default. - -# Set to ensure a node sees N other master eligible nodes to be considered -# operational within the cluster. This should be set to a quorum/majority of -# the master-eligible nodes in the cluster. -# -#discovery.zen.minimum_master_nodes: 1 -{% if es_etc_discovery_zen_minimum_master_nodes is defined %}discovery.zen.minimum_master_nodes: {{ es_etc_discovery_zen_minimum_master_nodes }}{% endif %} - -# Set the time to wait for ping responses from other nodes when discovering. -# Set this option to a higher value on a slow or congested network -# to minimize discovery failures: -# -#discovery.zen.ping.timeout: 3s -{% if es_etc_discovery_zen_ping_timeout is defined %}discovery.zen.ping.timeout: {{ es_etc_discovery_zen_ping_timeout }}{% endif %} - -# For more information, see -# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html> - -# Unicast discovery allows to explicitly control which nodes will be used -# to discover the cluster. It can be used when multicast is not present, -# or to restrict the cluster communication-wise. -# -# 1. Disable multicast discovery (enabled by default): -# -#discovery.zen.ping.multicast.enabled: false -{% if es_etc_discovery_zen_ping_multicast_enabled is defined %}discovery.zen.ping.multicast.enabled: {{ es_etc_discovery_zen_ping_multicast_enabled }}{% endif %} - -# -# 2. Configure an initial list of master nodes in the cluster -# to perform discovery when new nodes (master or data) are started: -# -#discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] -{% if es_etc_discovery_zen_ping_unicast_hosts is defined %}discovery.zen.ping.unicast.hosts: {{ es_etc_discovery_zen_ping_unicast_hosts }}{% endif %} - -# EC2 discovery allows to use AWS EC2 API in order to perform discovery. -# -# You have to install the cloud-aws plugin for enabling the EC2 discovery. -# -# For more information, see -# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-ec2.html> -# -# See <http://elasticsearch.org/tutorials/elasticsearch-on-ec2/> -# for a step-by-step tutorial. - -# GCE discovery allows to use Google Compute Engine API in order to perform discovery. -# -# You have to install the cloud-gce plugin for enabling the GCE discovery. -# -# For more information, see <https://github.com/elasticsearch/elasticsearch-cloud-gce>. - -# Azure discovery allows to use Azure API in order to perform discovery. -# -# You have to install the cloud-azure plugin for enabling the Azure discovery. -# -# For more information, see <https://github.com/elasticsearch/elasticsearch-cloud-azure>. - -################################## Slow Log ################################## - -# Shard level query and fetch threshold logging. - -#index.search.slowlog.threshold.query.warn: 10s -#index.search.slowlog.threshold.query.info: 5s -#index.search.slowlog.threshold.query.debug: 2s -#index.search.slowlog.threshold.query.trace: 500ms -{% if es_etc_index_search_slowlog_threshold_query_warn is defined %}index.search.slowlog.threshold.query.warn: {{ es_etc_index_search_slowlog_threshold_query_warn }}{% endif %} - -{% if es_etc_index_search_slowlog_threshold_query_info is defined %}index.search.slowlog.threshold.query.info: {{ es_etc_index_search_slowlog_threshold_query_info }}{% endif %} - -{% if es_etc_index_search_slowlog_threshold_query_debug is defined %}index.search.slowlog.threshold.query.debug: {{ es_etc_index_search_slowlog_threshold_query_debug }}{% endif %} - -{% if es_etc_index_search_slowlog_threshold_query_trace is defined %}index.search.slowlog.threshold.query.trace: {{ es_etc_index_search_slowlog_threshold_query_trace }}{% endif %} - -#index.search.slowlog.threshold.fetch.warn: 1s -#index.search.slowlog.threshold.fetch.info: 800ms -#index.search.slowlog.threshold.fetch.debug: 500ms -#index.search.slowlog.threshold.fetch.trace: 200ms -{% if es_etc_index_search_slowlog_threshold_fetch_warn is defined %}index.search.slowlog.threshold.fetch.warn: {{ es_etc_index_search_slowlog_threshold_fetch_warn }}{% endif %} - -{% if es_etc_index_search_slowlog_threshold_fetch_info is defined %}index.search.slowlog.threshold.fetch.info: {{ es_etc_index_search_slowlog_threshold_fetch_info }}{% endif %} - -{% if es_etc_index_search_slowlog_threshold_fetch_debug is defined %}index.search.slowlog.threshold.fetch.debug: {{ es_etc_index_search_slowlog_threshold_fetch_debug }}{% endif %} - -{% if es_etc_index_search_slowlog_threshold_fetch_trace is defined %}index.search.slowlog.threshold.fetch.trace: {{ es_etc_index_search_slowlog_threshold_fetch_trace }}{% endif %} - -#index.indexing.slowlog.threshold.index.warn: 10s -#index.indexing.slowlog.threshold.index.info: 5s -#index.indexing.slowlog.threshold.index.debug: 2s -#index.indexing.slowlog.threshold.index.trace: 500ms -{% if es_etc_index_indexing_slowlog_threshold_index_warn is defined %}index.indexing.slowlog.threshold.index.warn: {{ es_etc_index_indexing_slowlog_threshold_index_warn }}{% endif %} - -{% if es_etc_index_indexing_slowlog_threshold_index_info is defined %}index.indexing.slowlog.threshold.index.info: {{ es_etc_index_indexing_slowlog_threshold_index_info }}{% endif %} - -{% if es_etc_index_indexing_slowlog_threshold_index_debug is defined %}index.indexing.slowlog.threshold.index.debug: {{ es_etc_index_indexing_slowlog_threshold_index_debug }}{% endif %} - -{% if es_etc_index_indexing_slowlog_threshold_index_trace is defined %}index.indexing.slowlog.threshold.index.trace: {{ es_etc_index_indexing_slowlog_threshold_index_trace }}{% endif %} - -################################## GC Logging ################################ - -#monitor.jvm.gc.young.warn: 1000ms -#monitor.jvm.gc.young.info: 700ms -#monitor.jvm.gc.young.debug: 400ms -{% if es_etc_monitor_jvm_gc_young_warn is defined %}monitor.jvm.gc.young.warn: {{ es_etc_monitor_jvm_gc_young_warn }}{% endif %} - -{% if es_etc_monitor_jvm_gc_young_info is defined %}monitor.jvm.gc.young.info: {{ es_etc_monitor_jvm_gc_young_info }}{% endif %} - -{% if es_etc_monitor_jvm_gc_young_debug is defined %}monitor.jvm.gc.young.debug: {{ es_etc_monitor_jvm_gc_young_debug }}{% endif %} - -#monitor.jvm.gc.old.warn: 10s -#monitor.jvm.gc.old.info: 5s -#monitor.jvm.gc.old.debug: 2s -{% if es_etc_monitor_jvm_gc_old_warn is defined %}monitor.jvm.gc.old.warn: {{ es_etc_monitor_jvm_gc_old_warn }}{% endif %} - -{% if es_etc_monitor_jvm_gc_old_info is defined %}monitor.jvm.gc.old.info: {{ es_etc_monitor_jvm_gc_old_info }}{% endif %} - -{% if es_etc_monitor_jvm_gc_old_debug is defined %}monitor.jvm.gc.old.debug: {{ es_etc_monitor_jvm_gc_old_debug }}{% endif %} - -################################## Security ################################ - -# Uncomment if you want to enable JSONP as a valid return transport on the -# http server. With this enabled, it may pose a security risk, so disabling -# it unless you need it is recommended (it is disabled by default). -# -#http.jsonp.enable: true -{% if es_etc_http_jsonp_enable is defined %}http.jsonp.enable: {{ es_etc_http_jsonp_enable }}{% endif %} - -############################## Additional Variables ############################ -script.inline: true -script.indexed: true - -{% if es_etc is defined %} -{% for key, value in es_etc.iteritems() %} -{{ key }}: {{ value }} -{% endfor %} -{% endif %} - -threadpool.search.queue_size: 2000 - -{% if es_group is defined %} -cloud: - aws: - region: {{awsregion}} - {% if awskey is defined %} - access_key: {{awskey}} - {% endif %} - {% if awssecret is defined %} - secret_key: {{awssecret}} - {% endif %} - protocol: {{awsprotocol}} - -discovery: - type: ec2 - ec2: - groups: {{es_group}} - host_type: private_ip - any_group: false - availability_zones: {{awsavailabilityzones}} -{% endif %} - -cloud.azure.storage.my_account: { - account: {{ backup_storage_name }}, - key: {{ backup_storage_key }} -} diff --git a/ansible/roles/elasticsearch_old/templates/logging.yml b/ansible/roles/elasticsearch_old/templates/logging.yml deleted file mode 100644 index 660287c6bb77b6999ee1429f1287c716a072d913..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/templates/logging.yml +++ /dev/null @@ -1,67 +0,0 @@ -# you can override this using by setting a system property, for example -Des.logger.level=DEBUG -es.logger.level: {{ es_logging_level }} -rootLogger: ${es.logger.level}, console, file -logger: - # log action execution errors for easier debugging - action: INFO - # reduce the logging for aws, too much is logged under the default INFO - com.amazonaws: WARN - - # gateway - #gateway: DEBUG - #index.gateway: DEBUG - - # peer shard recovery - #indices.recovery: DEBUG - - # discovery - discovery: INFO - - index.search.slowlog: INFO, index_search_slow_log_file - index.indexing.slowlog: INFO, index_indexing_slow_log_file - -additivity: - index.search.slowlog: false - index.indexing.slowlog: false - -appender: - console: - type: console - layout: - type: consolePattern - conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" - - file: - type: dailyRollingFile - file: ${path.logs}/${cluster.name}.log - datePattern: "'.'yyyy-MM-dd" - layout: - type: pattern - conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" - - # Use the following log4j-extras RollingFileAppender to enable gzip compression of log files. - # For more information see https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html - #file: - #type: extrasRollingFile - #file: ${path.logs}/${cluster.name}.log - #rollingPolicy: timeBased - #rollingPolicy.FileNamePattern: ${path.logs}/${cluster.name}.log.%d{yyyy-MM-dd}.gz - #layout: - #type: pattern - #conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" - - index_search_slow_log_file: - type: dailyRollingFile - file: ${path.logs}/${cluster.name}_index_search_slowlog.log - datePattern: "'.'yyyy-MM-dd" - layout: - type: pattern - conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" - - index_indexing_slow_log_file: - type: dailyRollingFile - file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log - datePattern: "'.'yyyy-MM-dd" - layout: - type: pattern - conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" diff --git a/ansible/roles/elasticsearch_old/vars/main.yml b/ansible/roles/elasticsearch_old/vars/main.yml deleted file mode 100644 index ea80dc94cb09fdaf5f7813a84776f272dd5da672..0000000000000000000000000000000000000000 --- a/ansible/roles/elasticsearch_old/vars/main.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -es_home: /usr/share/elasticsearch -es_etc_node_name: "{{ node_name }}" -es_etc_path_logs: /var/log/elasticsearch -elasticsearch_config: /etc/elasticsearch - - diff --git a/ansible/roles/esUpgrade/defaults/main.yml b/ansible/roles/esUpgrade/defaults/main.yml deleted file mode 100755 index ded08a753c73e4ae4322d89d39513d1713173beb..0000000000000000000000000000000000000000 --- a/ansible/roles/esUpgrade/defaults/main.yml +++ /dev/null @@ -1,27 +0,0 @@ -es_version: 5.4.3 -es_etc_discovery_zen_minimum_master_nodes: 1 -es_instance_name: log-es -es_etc_cluster_name: log-es -es_java_install: false -es_api_host: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}" -es_config: { - node.name: "{{ es_instance_name }}", - cluster.name: "{{ es_etc_cluster_name }}", - network.host: "{{ es_api_host }}", - discovery.zen.ping.unicast.hosts: "{{ groups['es'] }}", - node.data: "{{ es_etc_node_data }}", - node.master: "{{ es_etc_node_master }}", - discovery.zen.minimum_master_nodes: "{{ es_etc_discovery_zen_minimum_master_nodes }}", - bootstrap.memory_lock: true, - cloud.azure.storage.my_account: { - account: "{{ backup_storage_name }}", - key: "{{ backup_storage_key }}" - } -} -es_plugins: - - plugin: repository-azure -es_plugins_reinstall: true - -# Override these values in group_vars -sunbird_management_storage_account_name: backups -sunbird_management_storage_account_key: '<backup_storage_key>' diff --git a/ansible/roles/esUpgrade/meta/main.yml b/ansible/roles/esUpgrade/meta/main.yml deleted file mode 100755 index f1420c7b32f966608bab0ccc1776dbdf210e0352..0000000000000000000000000000000000000000 --- a/ansible/roles/esUpgrade/meta/main.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -dependencies: -- { - role: elasticsearch, - es_version: "5.4.3", - es_java_install: false, - es_plugins_reinstall: true, - es_api_host: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}", - es_config: { - node.name: "{{ es_instance_name }}", - cluster.name: "{{ es_etc_cluster_name }}", - network.host: "0.0.0.0", - discovery.zen.ping.unicast.hosts: "{{ groups['es'] }}", - node.data: "{{ es_etc_node_data }}", - node.master: "{{ es_etc_node_master }}", - discovery.zen.minimum_master_nodes: "{{ es_etc_discovery_zen_minimum_master_nodes }}", - discovery.zen.minimum_master_nodes: "{{groups['es-upgrade']| length | int}}", - bootstrap.memory_lock: true, - cloud.azure.storage.my_account: { - account: "{{ sunbird_management_storage_account_name }}", - key: "{{ sunbird_management_storage_account_key }}" - } - }, - es_plugins: [ - { - plugin: "repository-azure" - } - ] - } diff --git a/ansible/roles/esUpgrade/tasks/main.yml b/ansible/roles/esUpgrade/tasks/main.yml deleted file mode 100644 index 53722e54e05a71d28784eda043c1c5b2533bc5c9..0000000000000000000000000000000000000000 --- a/ansible/roles/esUpgrade/tasks/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -- debug: msg="ES version={{es_version}}" diff --git a/ansible/roles/keycloak-provision/templates/keycloak-service.j2 b/ansible/roles/keycloak-provision/templates/keycloak-service.j2 index b11aff94bfef5b761a661b9cb7910270bcf44222..cce1ab3f7fa5351373bfc38ba22910f2159e1a41 100644 --- a/ansible/roles/keycloak-provision/templates/keycloak-service.j2 +++ b/ansible/roles/keycloak-provision/templates/keycloak-service.j2 @@ -1,4 +1,14 @@ #!/bin/bash +### BEGIN INIT INFO +# Provides: keycloak +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Should-Start: $all +# Should-Stop: $all +# Default-Start: 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO + keycloakuser=keycloak keycloakpath=/opt/keycloak/bin diff --git a/ansible/roles/stack-sunbird/templates/content-service_application.conf b/ansible/roles/stack-sunbird/templates/content-service_application.conf index 001706ddc77add2d4ed58800e5503fe22e2604ad..8329a40313d3302de96942eddb6774163e6926da 100644 --- a/ansible/roles/stack-sunbird/templates/content-service_application.conf +++ b/ansible/roles/stack-sunbird/templates/content-service_application.conf @@ -576,4 +576,4 @@ channel { primarycategories=["Asset", "CertAsset", "Certificate Template"] additionalcategories=[] } -} \ No newline at end of file +} diff --git a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env index 42859c390334ba6637b6cf7b57fd2b915d94e9c1..f03b395f37b7bba87a075abc70de96f183801b61 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env @@ -100,7 +100,7 @@ sunbird_cache_enable={{sunbird_cache_enable | default(false)}} # Set below variables if above true sunbird_redis_host={{sunbird_redis_host}} sunbird_redis_port={{sunbird_redis_port|default(6379)}} -sunbird_user_org_api_base_url=http://learner-service:9000 +sunbird_user_org_api_base_url={{ sunbird_user_service_api_base_url }} kafka_topics_instruction={{kafka_topics_instruction}} kafka_urls={{kafka_urls}} @@ -112,7 +112,7 @@ sunbird_cert_service_base_url=http://cert-service:9000 learning_service_base_url={{sunbird_content_repo_api_base_url}} sunbird_user_search_cretordetails_fields=id,firstName,lastName -sunbird_user_service_api_base_url={{sunbird_user_service_api_base_url}} +sunbird_user_service_api_base_url={{ sunbird_user_service_api_base_url }} limit_managed_user_creation={{limit_managed_user_creation | default(true)}} managed_user_limit={{managed_user_limit | default(30)}} diff --git a/ansible/roles/stack-sunbird/templates/sunbird_nodebb.env b/ansible/roles/stack-sunbird/templates/sunbird_nodebb.env index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b58add336aac59186e5cc4ec26a7e89a8bfce10d 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_nodebb.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_nodebb.env @@ -0,0 +1,11 @@ +# Initialization variable for mongo +# Ref: https://community.nodebb.org/topic/4325/set-up-nodebb-via-environment-variables +database=mongo +secret={{nodebb_hash_key|default('1d57ba64-86d4-43ff-bd10-f6e9e0782899')}} +url=http://0.0.0.0:4567/discussions/ +mongo__host={{mongo_nodebb_host}} +mongo__database=nodebb +# password won't get overwritten if you run +# 'node app --setup' multiple times +# Default username is admin +admin__password={{ nodebb_admin_password }} diff --git a/ansible/roles/vm-agents-filebeat/README.md b/ansible/roles/vm-agents-filebeat/README.md deleted file mode 100644 index 4c9d226b5753c060686204d709084107945efa20..0000000000000000000000000000000000000000 --- a/ansible/roles/vm-agents-filebeat/README.md +++ /dev/null @@ -1,83 +0,0 @@ -Ansible Filebeat role -========= - -[](https://galaxy.ansible.com/detail#/role/6293) [](https://travis-ci.org/DavidWittman/ansible-filebeat) - -Installs Elastic's Filebeat for forwarding logs. - -Role Variables --------------- - - - `filebeat_version` - The version of filebeat to install. Defaults to `1.3.1`. - - `filebeat_config` - YAML representation of your filebeat config. This is templated directly into the configuration file as YAML. See the [example configuration](https://github.com/elastic/beats/blob/master/filebeat/filebeat.full.yml) for an exhaustive list of configuration options. Defaults to: - - ``` yaml - filebeat_config: - filebeat: - prospectors: - - paths: - - /var/log/messages - - /var/log/*.log - input_type: log - output: - file: - path: /tmp/filebeat - filename: filebeat - logging: - to_syslog: true - level: error - ``` - - `filebeat_ca_cert` - If provided, the contents of this variable will be placed into the file identified by `filebeat_ca_path` on the target host. You can then include the `filebeat_ca_path` within your configuration to properly authenticate your TLS connections to Logstash/Elasticsearch/etc. - - If you wish to load your CA certificate from a file, use the `file` lookup plugin, e.g.: - ``` yaml - filebeat_ca_cert: "{{ lookup('file', '/path/to/ca.crt') }}" - ``` - - `filebeat_ca_path` - If a CA certificate is provided in `filebeat_ca_cert`, it will be created at this path. - -Similar to the CA variables, you can upload SSL certificates and keys for filebeat using these variables: - - - `filebeat_ssl_cert` - Contents of the SSL certificate - - `filebeat_ssl_cert_path` - Destination of the certificate on the Ansible controlled host - - `filebeat_ssl_key` - Contents of the SSL key - - `filebeat_ssl_key_path` - Destination of the SSL key on the Ansible controlled host - -You can also store the config in separate `filebeat.yml` file and include it using [lookup](http://docs.ansible.com/ansible/playbooks_lookups.html#intro-to-lookups-getting-file-contents): - -``` yaml -filebeat_config: "{{ lookup('file', './filebeat.yml')|from_yaml }}" -``` - -Common Configurations ---------------------- - -Connecting to Elasticsearch: - - ``` yaml - filebeat_config: - filebeat: - prospectors: - - paths: - - /var/log/messages - - /var/log/*.log - input_type: log - output: - elasticsearch: - hosts: - - "http://localhost:9200" - username: "bob" - password: "12345" - logging: - to_syslog: true - level: error - ``` - -License -------- - -BSD - -Author Information ------------------- - -David Wittman diff --git a/ansible/roles/vm-agents-filebeat/defaults/main.yml b/ansible/roles/vm-agents-filebeat/defaults/main.yml index 69eccee2faf389fa507a24e9153a8dbd442ebb29..28ea4936afde7fb4506c1105681b76333887697e 100644 --- a/ansible/roles/vm-agents-filebeat/defaults/main.yml +++ b/ansible/roles/vm-agents-filebeat/defaults/main.yml @@ -1,74 +1,2 @@ ---- -# The version of filebeat to install -filebeat_version: 1.3.1 - -# `filebeat_config` is templated directly into filebeat.yml for the config. -# You are expected to override this variable, as these configurations are -# only suited for development purposes. -# See https://github.com/elastic/beats/blob/master/filebeat/filebeat.yml for -# an exhaustive list of configurations. -filebeat_config: - filebeat: - prospectors: - - paths: - - /var/log/messages - - /var/log/*.log - input_type: log - output: - file: - path: /tmp/filebeat - filename: filebeat - logging: - to_syslog: true - level: error - -# The contents of this variable will be placed into the `filebeat_ca_path` -# This should either be set to a string containing your CA certificate or -# use a lookup plugin to retrieve it. -# ex: -# filebeat_ca_cert: "{{ lookup('file', '/path/to/ca.crt') }}" -filebeat_ca_cert: null -# Path to which the above certificate will be uploaded -filebeat_ca_path: /etc/filebeat/ca.crt - -# Similar to the above but for ssl cert and ssl key -filebeat_ssl_cert: null -filebeat_ssl_cert_path: /etc/filebeat/ssl.crt -filebeat_ssl_key: null -filebeat_ssl_key_path: /etc/filebeat/ssl.key - -# Repository settings -filebeat_gpg_url: https://packages.elastic.co/GPG-KEY-elasticsearch -## Debian -filebeat_apt_repo_v1: "deb https://packages.elastic.co/beats/apt stable main" -filebeat_apt_repo_v5: "deb https://artifacts.elastic.co/packages/5.x/apt stable main" -filebeat_apt_repo: "{{ filebeat_version|version_compare('5', '<')|ternary(filebeat_apt_repo_v1, filebeat_apt_repo_v5) }}" -## Redhat -filebeat_repo_url_v1: https://packages.elastic.co/beats/yum/el/$basearch -filebeat_repo_url_v5: https://artifacts.elastic.co/packages/5.x/yum -filebeat_repo_url: "{{ filebeat_version|version_compare('5', '<')|ternary(filebeat_repo_url_v1, filebeat_repo_url_v5) }}" - -filebeath_log_path: "{{ filebeath_log_path }}" -filebeat_logstash_port: 5044 -filebeat_logstash_host: "{{groups['swarm-manager'][0]}}" -filebeat: - base_path: /etc/filebeat - config: - filebeat: - prospectors: - - paths: - - "{{ filebeat_log_path }}" - input_type: log - output: - logstash: - hosts: - - "{{ filebeat_logstash_host }}:{{ filebeat_logstash_port }}" - timeout: 15 - logging: - level: debug - to_files: true - to_syslog: false - files: - path: /tmp/filebeat - name: filebeat.log - keepfiles: 7 +filebeat_version: "6.8.13" +filebeat_config_directory: "/etc/filebeat/configs" diff --git a/ansible/roles/vm-agents-filebeat/handlers/main.yml b/ansible/roles/vm-agents-filebeat/handlers/main.yml deleted file mode 100644 index 8c75d6516ee92affd6938a5884d94f77b108151f..0000000000000000000000000000000000000000 --- a/ansible/roles/vm-agents-filebeat/handlers/main.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: restart filebeat - service: - name: filebeat - state: restarted - when: ansible_os_family == 'RedHat' or ansible_os_family == 'Debian' - -- name: restart filebeat - command: ./filebeat -c filebeat.yml -d "publish" - args: - chdir: "{{filebeat.base_path}}" - when: ansible_os_family == 'Darwin' \ No newline at end of file diff --git a/ansible/roles/vm-agents-filebeat/library/yumrepo b/ansible/roles/vm-agents-filebeat/library/yumrepo deleted file mode 100755 index e2052cea1911645766d53061cb53baf1beb08cbd..0000000000000000000000000000000000000000 --- a/ansible/roles/vm-agents-filebeat/library/yumrepo +++ /dev/null @@ -1,560 +0,0 @@ -#!/usr/bin/python -# encoding: utf-8 - -# (c) 2015, Jiri Tyr <jiri.tyr@gmail.com> -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. - - -import ConfigParser -import os - - -DOCUMENTATION = ''' ---- -module: yumrepo -author: Jiri Tyr (@jtyr) -version_added: '2.0' -short_description: Add and remove YUM repositories -description: - - Add or remove YUM repositories in RPM-based Linux distributions. - -options: - bandwidth: - required: false - default: 0 - description: - - Maximum available network bandwidth in bytes/second. Used with the - I(throttle) option. - - If I(throttle) is a percentage and bandwidth is C(0) then bandwidth - throttling will be disabled. If I(throttle) is expressed as a data rate - (bytes/sec) then this option is ignored. Default is C(0) (no bandwidth - throttling). - baseurl: - required: false - default: None - description: - - URL to the directory where the yum repository's 'repodata' directory - lives. - - This or the I(mirrorlist) parameter is required. - cost: - required: false - default: 1000 - description: - - Relative cost of accessing this repository. Useful for weighing one - repo's packages as greater/less than any other. - description: - required: false - default: None - description: - - A human readable string describing the repository. - enabled: - required: false - choices: ['yes', 'no'] - default: 'yes' - description: - - This tells yum whether or not use this repository. - enablegroups: - required: false - choices: ['yes', 'no'] - default: 'yes' - description: - - Determines whether yum will allow the use of package groups for this - repository. - exclude: - required: false - default: None - description: - - List of packages to exclude from updates or installs. This should be a - space separated list. Shell globs using wildcards (eg. C(*) and C(?)) - are allowed. - - The list can also be a regular YAML array. - failovermethod: - required: false - choices: [roundrobin, priority] - default: roundrobin - description: - - C(roundrobin) randomly selects a URL out of the list of URLs to start - with and proceeds through each of them as it encounters a failure - contacting the host. - - C(priority) starts from the first baseurl listed and reads through them - sequentially. - file: - required: false - default: None - description: - - File to use to save the repo in. Defaults to the value of I(name). - gpgcakey: - required: false - default: None - description: - - A URL pointing to the ASCII-armored CA key file for the repository. - gpgcheck: - required: false - choices: ['yes', 'no'] - default: 'no' - description: - - Tells yum whether or not it should perform a GPG signature check on - packages. - gpgkey: - required: false - default: None - description: - - A URL pointing to the ASCII-armored GPG key file for the repository. - http_caching: - required: false - choices: [all, packages, none] - default: all - description: - - Determines how upstream HTTP caches are instructed to handle any HTTP - downloads that Yum does. - - C(all) means that all HTTP downloads should be cached. - - C(packages) means that only RPM package downloads should be cached (but - not repository metadata downloads). - - C(none) means that no HTTP downloads should be cached. - includepkgs: - required: false - default: None - description: - - List of packages you want to only use from a repository. This should be - a space separated list. Shell globs using wildcards (eg. C(*) and C(?)) - are allowed. Substitution variables (e.g. C($releasever)) are honored - here. - - The list can also be a regular YAML array. - keepalive: - required: false - choices: ['yes', 'no'] - default: 'no' - description: - - This tells yum whether or not HTTP/1.1 keepalive should be used with - this repository. This can improve transfer speeds by using one - connection when downloading multiple files from a repository. - metadata_expire: - required: false - default: 21600 - description: - - Time (in seconds) after which the metadata will expire. - - Default value is 6 hours. - metalink: - required: false - default: None - description: - - Specifies a URL to a metalink file for the repomd.xml, a list of - mirrors for the entire repository are generated by converting the - mirrors for the repomd.xml file to a baseurl. - mirrorlist: - required: false - default: None - description: - - Specifies a URL to a file containing a list of baseurls. - - This or the I(baseurl) parameter is required. - mirrorlist_expire: - required: false - default: 21600 - description: - - Time (in seconds) after which the mirrorlist locally cached will - expire. - - Default value is 6 hours. - name: - required: true - description: - - Unique repository ID. - password: - required: false - default: None - description: - - Password to use with the username for basic authentication. - protect: - required: false - choices: ['yes', 'no'] - default: 'no' - description: - - Protect packages from updates from other repositories. - proxy: - required: false - default: None - description: - - URL to the proxy server that yum should use. - proxy_password: - required: false - default: None - description: - - Username to use for proxy. - proxy_username: - required: false - default: None - description: - - Password for this proxy. - repo_gpgcheck: - required: false - choices: ['yes', 'no'] - default: 'no' - description: - - This tells yum whether or not it should perform a GPG signature check - on the repodata from this repository. - reposdir: - required: false - default: /etc/yum.repos.d - description: - - Directory where the C(.repo) files will be stored. - retries: - required: false - default: 10 - description: - - Set the number of times any attempt to retrieve a file should retry - before returning an error. Setting this to C(0) makes yum try forever. - skip_if_unavailable: - required: false - choices: ['yes', 'no'] - default: 'no' - description: - - If set to C(yes) yum will continue running if this repository cannot be - contacted for any reason. This should be set carefully as all repos are - consulted for any given command. - sslcacert: - required: false - default: None - description: - - Path to the directory containing the databases of the certificate - authorities yum should use to verify SSL certificates. - ssl_check_cert_permissions: - required: false - choices: ['yes', 'no'] - default: 'no' - description: - - Whether yum should check the permissions on the paths for the - certificates on the repository (both remote and local). - - If we can't read any of the files then yum will force - I(skip_if_unavailable) to be true. This is most useful for non-root - processes which use yum on repos that have client cert files which are - readable only by root. - sslclientcert: - required: false - default: None - description: - - Path to the SSL client certificate yum should use to connect to - repos/remote sites. - sslclientkey: - required: false - default: None - description: - - Path to the SSL client key yum should use to connect to repos/remote - sites. - sslverify: - required: false - choices: ['yes', 'no'] - default: 'yes' - description: - - Defines whether yum should verify SSL certificates/hosts at all. - state: - required: false - choices: [absent, present] - default: present - description: - - A source string state. - throttle: - required: false - default: None - description: - - Enable bandwidth throttling for downloads. - - This option can be expressed as a absolute data rate in bytes/sec. An - SI prefix (k, M or G) may be appended to the bandwidth value. - timeout: - required: false - default: 30 - description: - - Number of seconds to wait for a connection before timing out. - username: - required: false - default: None - description: - - Username to use for basic authentication to a repo or really any url. - -extends_documentation_fragment: files - -notes: - - All comments will be removed if modifying an existing repo file. - - Section order is preserved in an existing repo file. - - Parameters in a section are ordered alphabetically in an existing repo - file. - - The repo file will be automatically deleted if it contains no repository. -''' - -EXAMPLES = ''' -- name: Add repository - yumrepo: - name: epel - description: EPEL YUM repo - baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/ - -- name: Add multiple repositories into the same file (1/2) - yumrepo: - name: epel - description: EPEL YUM repo - file: external_repos - baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/ - gpgcheck: no -- name: Add multiple repositories into the same file (2/2) - yumrepo: - name: rpmforge - description: RPMforge YUM repo - file: external_repos - baseurl: http://apt.sw.be/redhat/el7/en/$basearch/rpmforge - mirrorlist: http://mirrorlist.repoforge.org/el7/mirrors-rpmforge - enabled: no - -- name: Remove repository - yumrepo: - name: epel - state: absent - -- name: Remove repository from a specific repo file - yumrepo: - name: epel - file: external_repos - state: absent -''' - -RETURN = ''' -repo: - description: repository name - returned: success - type: string - sample: "epel" -state: - description: state of the target, after execution - returned: success - type: string - sample: "present" -''' - - -class YumRepo(object): - # Class global variables - module = None - params = None - section = None - repofile = ConfigParser.RawConfigParser() - - # List of parameters which will be allowed in the repo file output - allowed_params = [ - 'bandwidth', 'baseurl', 'cost', 'enabled', 'enablegroups', 'exclude', - 'failovermethod', 'gpgcakey', 'gpgcheck', 'gpgkey', 'http_caching', - 'includepkgs', 'keepalive', 'metadata_expire', 'metalink', - 'mirrorlist', 'mirrorlist_expire', 'name', 'password', 'protect', - 'proxy', 'proxy_password', 'proxy_username', 'repo_gpgcheck', - 'retries', 'skip_if_unavailable', 'sslcacert', - 'ssl_check_cert_permissions', 'sslclientcert', 'sslclientkey', - 'sslverify', 'throttle', 'timeout', 'username'] - - # List of parameters which can be a list - list_params = ['exclude', 'includepkgs'] - - def __init__(self, module): - # To be able to use fail_json - self.module = module - # Shortcut for the params - self.params = self.module.params - # Section is always the repoid - self.section = self.params['repoid'] - - # Check if repo directory exists - repos_dir = self.params['reposdir'] - if not os.path.isdir(repos_dir): - self.module.fail_json( - msg='Repo directory "%s" does not exist.' % repos_dir) - - # Get the given or the default repo file name - repo_file = self.params['repoid'] - if self.params['file'] is not None: - repo_file = self.params['file'] - - # Set dest; also used to set dest parameter for the FS attributes - self.params['dest'] = os.path.join(repos_dir, "%s.repo" % repo_file) - - # Read the repo file if it exists - if os.path.isfile(self.params['dest']): - self.repofile.read(self.params['dest']) - - def add(self): - # Remove already existing repo and create a new one - if self.repofile.has_section(self.section): - self.repofile.remove_section(self.section) - - # Add section - self.repofile.add_section(self.section) - - # Baseurl/mirrorlist is not required because for removal we need only - # the repo name. This is why we check if the baseurl/mirrorlist is - # defined. - if (self.params['baseurl'], self.params['mirrorlist']) == (None, None): - self.module.fail_json( - msg='Paramater "baseurl" or "mirrorlist" is required for ' - 'adding a new repo.') - - # Set options - for key, value in sorted(self.params.items()): - if key in self.list_params and isinstance(value, list): - # Join items into one string for specific parameters - value = ' '.join(value) - elif isinstance(value, bool): - # Convert boolean value to integer - value = int(value) - - # Set the value only if it was defined (default is None) - if value is not None and key in self.allowed_params: - self.repofile.set(self.section, key, value) - - def save(self): - if len(self.repofile.sections()): - # Write data into the file - try: - fd = open(self.params['dest'], 'wb') - except IOError: - self.module.fail_json( - msg='Cannot open repo file %s.' % - self.params['dest']) - - try: - try: - self.repofile.write(fd) - except Error: - self.module.fail_json( - msg='Cannot write repo file %s.' % - self.params['dest']) - finally: - fd.close() - else: - # Remove the file if there are not repos - try: - os.remove(self.params['dest']) - except OSError: - self.module.fail_json( - msg='Cannot remove empty repo file %s.' % - self.params['dest']) - - def remove(self): - # Remove section if exists - if self.repofile.has_section(self.section): - self.repofile.remove_section(self.section) - - def dump(self): - repo_string = "" - - # Compose the repo file - for section in sorted(self.repofile.sections()): - repo_string += "[%s]\n" % section - - for key, value in sorted(self.repofile.items(section)): - repo_string += "%s = %s\n" % (key, value) - - repo_string += "\n" - - return repo_string - - -def main(): - # Module settings - module = AnsibleModule( - argument_spec=dict( - bandwidth=dict(), - baseurl=dict(), - cost=dict(), - description=dict(), - enabled=dict(type='bool'), - enablegroups=dict(type='bool'), - exclude=dict(), - failovermethod=dict(choices=['roundrobin', 'priority']), - file=dict(), - gpgcakey=dict(), - gpgcheck=dict(type='bool'), - gpgkey=dict(), - http_caching=dict(choices=['all', 'packages', 'none']), - includepkgs=dict(), - keepalive=dict(type='bool'), - metadata_expire=dict(), - metalink=dict(), - mirrorlist=dict(), - mirrorlist_expire=dict(), - name=dict(required=True), - password=dict(no_log=True), - protect=dict(type='bool'), - proxy=dict(), - proxy_password=dict(no_log=True), - proxy_username=dict(), - repo_gpgcheck=dict(type='bool'), - reposdir=dict(default='/etc/yum.repos.d'), - retries=dict(), - skip_if_unavailable=dict(type='bool'), - sslcacert=dict(), - ssl_check_cert_permissions=dict(type='bool'), - sslclientcert=dict(), - sslclientkey=dict(), - sslverify=dict(type='bool'), - state=dict(choices=['present', 'absent'], default='present'), - throttle=dict(), - timeout=dict(), - username=dict(), - ), - add_file_common_args=True, - supports_check_mode=True, - ) - - name = module.params['name'] - state = module.params['state'] - - # Rename "name" and "description" to ensure correct key sorting - module.params['repoid'] = module.params['name'] - module.params['name'] = module.params['description'] - del module.params['description'] - - # Instantiate the YumRepo object - yumrepo = YumRepo(module) - - # Get repo status before change - yumrepo_before = yumrepo.dump() - - # Perform action depending on the state - if state == 'present': - yumrepo.add() - elif state == 'absent': - yumrepo.remove() - - # Get repo status after change - yumrepo_after = yumrepo.dump() - - # Compare repo states - changed = yumrepo_before != yumrepo_after - - # Save the file only if not in check mode and if there was a change - if not module.check_mode and changed: - yumrepo.save() - - # Change file attributes if needed - if os.path.isfile(module.params['dest']): - file_args = module.load_file_common_arguments(module.params) - changed = module.set_fs_attributes_if_different(file_args, changed) - - # Print status of the change - module.exit_json(changed=changed, repo=name, state=state) - - -# Import module snippets -from ansible.module_utils.basic import * - - -if __name__ == '__main__': - main() diff --git a/ansible/roles/vm-agents-filebeat/meta/main.yml b/ansible/roles/vm-agents-filebeat/meta/main.yml deleted file mode 100644 index 6343b79654b96be5c9397cd9ae7d7229c635d1ef..0000000000000000000000000000000000000000 --- a/ansible/roles/vm-agents-filebeat/meta/main.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -galaxy_info: - author: David Wittman - description: Installs Elastic's Filebeat for forwarding logs. - license: BSD - min_ansible_version: 1.2 - platforms: - - name: EL - versions: - - all - - name: Ubuntu - versions: - - all - categories: - - monitoring - - system -dependencies: [] diff --git a/ansible/roles/vm-agents-filebeat/tasks/darwin.yml b/ansible/roles/vm-agents-filebeat/tasks/darwin.yml deleted file mode 100644 index dfccae57edaa0f2b4be22eaa76053340e3f0150a..0000000000000000000000000000000000000000 --- a/ansible/roles/vm-agents-filebeat/tasks/darwin.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -- name: download filebeat - get_url: - url: https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.5.1-darwin-x86_64.tar.gz - checksum: md5:6297ad27d6ddea291a4594b199d2fa21 - dest: /tmp/filebeat.tar.gz - -- unarchive: - src: /tmp/filebeat.tar.gz - dest: /tmp/ - -- file: - path: /tmp/filebeat - state: absent - -- name: copying over - command: mv /tmp/filebeat-5.5.1-darwin-x86_64 /tmp/filebeat \ No newline at end of file diff --git a/ansible/roles/vm-agents-filebeat/tasks/debian.yml b/ansible/roles/vm-agents-filebeat/tasks/debian.yml deleted file mode 100644 index c48d58e4eac9a46719e1d97a40e8fc0d74219b3a..0000000000000000000000000000000000000000 --- a/ansible/roles/vm-agents-filebeat/tasks/debian.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -- name: add elastic gpg key - apt_key: - url: "{{ filebeat_gpg_url }}" - -- name: add beats repository - apt_repository: - repo: "{{ filebeat_apt_repo }}" - state: present - update_cache: yes - -- name: install filebeat - apt: - name: filebeat={{ filebeat_version }} - state: present - notify: - - restart filebeat diff --git a/ansible/roles/vm-agents-filebeat/tasks/main.yml b/ansible/roles/vm-agents-filebeat/tasks/main.yml index 5c00c0a308c2d0f9989eb64ffa7fdd513702b8b1..8dab7da33babba38abb5f680529d9630ee519266 100644 --- a/ansible/roles/vm-agents-filebeat/tasks/main.yml +++ b/ansible/roles/vm-agents-filebeat/tasks/main.yml @@ -1,66 +1,97 @@ --- -- debug: - msg: "Installing on {{ansible_os_family}}" +- name: Gather package facts + package_facts: + manager: auto + tags: + - default -- include: redhat.yml - when: ansible_os_family == 'RedHat' +- name: Check the filebeat version if its already installed + set_fact: + filebeat_installed_version: "{{ansible_facts.packages['filebeat'][0].version}}" + when: "ansible_facts.packages is defined and 'filebeat' in ansible_facts.packages and (ansible_facts.packages['filebeat'] | length) == 1" + tags: + - default -- include: debian.yml - when: ansible_os_family == 'Debian' +- name: Remove filebeat package if it does not match the version which is being installed + apt: + name: filebeat + state: absent + when: filebeat_installed_version is defined and filebeat_installed_version != filebeat_version + tags: + - default -- include: darwin.yml - when: ansible_os_family == 'Darwin' +- name: Remove filebeat registry directory if it does not match the version which is being installed + file: + path: /var/lib/filebeat/registry + state: absent + when: filebeat_installed_version is defined and filebeat_installed_version != filebeat_version + tags: + - default -- name: list - debug: - msg: "{{ filebeat_log_path }}" +- name: Add elastic gpg key + apt_key: + url: https://artifacts.elastic.co/GPG-KEY-elasticsearch + state: present + tags: + - default -- name: create filebeat.yml - template: - src: filebeat.yml.j2 - dest: "{{filebeat.base_path}}/filebeat.yml" - notify: - - restart filebeat +- name: Add elastic repository + apt_repository: + repo: deb https://artifacts.elastic.co/packages/6.x/apt stable main + state: present + filename: /etc/apt/sources.list.d/elastic-6.x.list + tags: + - default -- name: copy ca certificate if required - copy: - content: "{{ filebeat_ca_cert }}" - dest: "{{ filebeat_ca_path }}" - owner: root - group: root - mode: 0400 - when: filebeat_ca_cert != None +- name: Install the filebeat and required packages + apt: + name: ['apt-transport-https', 'filebeat={{filebeat_version}}'] + state: present + update_cache: yes + cache_valid_time: 3600 + tags: + - default -- name: copy ssl certificate if required - copy: - content: "{{ filebeat_ssl_cert }}" - dest: "{{ filebeat_ssl_cert_path }}" - owner: root - group: root - mode: 0400 - when: filebeat_ssl_cert != None +- name: Create the filebeat configs directory + file: + path: "{{filebeat_config_directory}}" + state: directory + tags: + - default -- name: copy ssl key if required - copy: - content: "{{ filebeat_ssl_key }}" - dest: "{{ filebeat_ssl_key_path }}" - owner: root - group: root - mode: 0400 - when: filebeat_ssl_key != None +- name: Copy the filebeat input config template(s) + template: + src: "filebeat-inputs.yml.j2" + dest: "{{filebeat_config_directory}}/filebeat-inputs.yml" + tags: + - default -- name: flush handlers to prevent start then restart - meta: flush_handlers +- name: Copy the filebeat outout config template + template: + src: "filebeat.yml.j2" + dest: "/etc/filebeat/filebeat.yml" + tags: + - default -- name: start and enable filebeat - service: +- name: Enable and start filebeat as a daemon process + systemd: name: filebeat - state: started -# enabled: true - when: ansible_os_family == 'RedHat' or ansible_os_family == 'Debian' + enabled: yes + state: restarted + daemon_reload: yes + tags: + - default -- name: start and enable filebeat - command: ./filebeat -c filebeat.yml -d "publish" - args: - chdir: "{{filebeat.base_path}}" - when: ansible_os_family == 'Darwin' +- name: Stop filebeat + systemd: + name: filebeat + state: stopped + tags: + - stop-filebeat + +- name: Start filebeat + systemd: + name: filebeat + state: started + tags: + - start-filebeat diff --git a/ansible/roles/vm-agents-filebeat/tasks/redhat.yml b/ansible/roles/vm-agents-filebeat/tasks/redhat.yml deleted file mode 100644 index f125b785dddce0b2da488123ceb9073dfeb1710f..0000000000000000000000000000000000000000 --- a/ansible/roles/vm-agents-filebeat/tasks/redhat.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -- name: add rpm key for elastic.co - rpm_key: - key: "{{ filebeat_gpg_url }}" - -- name: create beats yum repo - yumrepo: - name: beats - baseurl: "{{ filebeat_repo_url }}" - enabled: yes - gpgcheck: yes - gpgkey: "{{ filebeat_gpg_url }}" - -- name: install filebeat - yum: - name: "filebeat-{{ filebeat_version }}" - state: present - notify: - - restart filebeat diff --git a/ansible/roles/vm-agents-filebeat/templates/filebeat-inputs.yml.j2 b/ansible/roles/vm-agents-filebeat/templates/filebeat-inputs.yml.j2 new file mode 100644 index 0000000000000000000000000000000000000000..55edda0342a9de7007c8f921696fef6657b735d7 --- /dev/null +++ b/ansible/roles/vm-agents-filebeat/templates/filebeat-inputs.yml.j2 @@ -0,0 +1,153 @@ +#=========================== Cassandra ============================= +- type: log + enabled: true + paths: + - /var/log/cassandra/system.log + - /var/log/cassandra/debug.log + multiline.pattern: '^[INFO|ERROR|WARN|DEBUG]' + multiline.negate: true + multiline.match: after + +- type: log + enabled: true + paths: + - /var/log/cassandra/gc.log.0 + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Elasticsearch ============================= +- type: log + enabled: true + paths: + - /var/log/elasticsearch/*/*.log + multiline.pattern: '^\[' + multiline.negate: true + multiline.match: after + +#=========================== Kafka ============================= +- type: log + enabled: true + paths: + - /var/log/kafka/*.log + multiline.pattern: '^\[' + multiline.negate: true + multiline.match: after + +#=========================== Keycloak ============================= +- type: log + enabled: true + paths: + - /opt/keycloak/standalone/log/server.log + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Learning ============================= +- type: log + enabled: true + paths: + - /data/logs/learning_service_mw.log + - /data/logs/learning_telemetry_event_mw.log + - /data/logs/learning_perf_mw.log + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +- type: log + enabled: true + paths: + - /home/learning/apache-tomcat-8.0.36/logs/catalina.out + multiline.pattern: '^[0-9]{4}-[A-Za-z]{3}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Logstash ============================= +- type: log + enabled: true + paths: + - /home/learning/logstash-6.3.1/logs/logstash-plain.log + - /home/learning/logstash-6.3.1/logs/logstash-slowlog-plain.log + - /var/log/logstash/logstash-plain.log + - /var/log/logstash/logstash-slowlog-plain.log + multiline.pattern: '^\[' + multiline.negate: true + multiline.match: after + +#=========================== Neo4j ============================= +- type: log + enabled: true + paths: + - /home/learning/neo4j-learning/*/logs/debug.log + - /home/learning/neo4j-learning/*/logs/gc.log.0.current + - /home/learning/neo4j-learning/*/logs/neo4j.log + - /home/learning/neo4j-learning/*/logs/query.log + - /data/logs/learning_graph_event_neo4j.log + - /data/logs/learning_service_neo4j.log + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Redis ============================= +- type: log + enabled: true + paths: + - /home/analytics/redis-stable/redis.log + - /home/learning/redis-stable/redis.log + multiline.pattern: '^[0-9]*?:[M|S|C|X]' + multiline.negate: true + multiline.match: after + +#=========================== Spark ============================= +- type: log + enabled: true + paths: + - /mount/data/analytics/logs/*/*.log + multiline.pattern: '^[0-9]{2,4}[-|/][0-9]{2}[-|/][0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Syslog ============================= +- type: log + enabled: true + paths: + - /var/log/*log + exclude_files: ['/var/log/keycloak.err.log', '/var/log/keycloak.out.log'] + +#=========================== Zookeeper ============================= +- type: log + enabled: true + paths: + - /var/log/zookeeper/*.log + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Dial ============================= +- type: log + enabled: true + paths: + - /data/logs/dial_graph_event_mw.log + - /data/logs/dial_service_mw.log + - /data/logs/dial_telemetry_event_mw.log + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Secor ============================= +- type: log + enabled: true + paths: + - /mount/secor/logs/*.log + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after + +#=========================== Postgres VM ============================= +- type: log + enabled: true + paths: + - /var/log/postgresql/*.log + multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' + multiline.negate: true + multiline.match: after diff --git a/ansible/roles/vm-agents-filebeat/templates/filebeat.yml.j2 b/ansible/roles/vm-agents-filebeat/templates/filebeat.yml.j2 index e31090f7b6bbde8b8ffccadb3861a9df80b6a0eb..87ac65a2bd6923ea4554b637af07f74d906e2591 100644 --- a/ansible/roles/vm-agents-filebeat/templates/filebeat.yml.j2 +++ b/ansible/roles/vm-agents-filebeat/templates/filebeat.yml.j2 @@ -1,13 +1,78 @@ -filebeat: - prospectors: - - input_type: log - paths: [{{ filebeat_log_path }}] -logging: - files: {keepfiles: 7, name: filebeat.log, path: /tmp/filebeat} - level: debug - to_files: true - to_syslog: false -output: - logstash: - hosts: ['{{ filebeat_logstash_host }}:{{ filebeat_logstash_port }}'] - timeout: 15 +#=========================== Filebeat inputs ============================= +filebeat.config.inputs: + enabled: true + path: "{{filebeat_config_directory}}/*.yml" + +#==================== Elasticsearch template setting ========================== +setup.template.name: "filebeat" +setup.template.pattern: "filebeat-*" +setup.template.overwrite: false +setup.template.settings: + index.number_of_shards: 3 + +#================================ Outputs ===================================== + +#-------------------------- Elasticsearch output ------------------------------ +output.elasticsearch: + # Array of hosts to connect to. + hosts: ["{{ groups['log-es']|join(':9200\", \"')}}:9200"] + indices: + - index: "redis-dp-%{+yyyy.MM.dd}" + when.contains: + source: analytics/redis-stable/ + - index: "redis-kp-%{+yyyy.MM.dd}" + when.contains: + source: learning/redis-stable/ + - index: "spark-%{+yyyy.MM.dd}" + when.contains: + source: /mount/data/analytics/logs/ + - index: "cassandra-%{+yyyy.MM.dd}" + when.contains: + source: cassandra + - index: "composite-es-%{+yyyy.MM.dd}" + when.regexp: + source: elasticsearch/.*cs-node.* + - index: "log-es-%{+yyyy.MM.dd}" + when.regexp: + source: elasticsearch/.*log-es.*/ + - index: "lms-es-%{+yyyy.MM.dd}" + when.regexp: + source: elasticsearch/.*es.*/ + - index: "keycloak-%{+yyyy.MM.dd}" + when.contains: + source: /opt/keycloak/standalone/log/ + - index: "neo4j-%{+yyyy.MM.dd}" + when.contains: + source: neo4j + - index: "dial-%{+yyyy.MM.dd}" + when.contains: + source: dial + - index: "logstash-vm-%{+yyyy.MM.dd}" + when.contains: + source: logstash + - index: "learning-%{+yyyy.MM.dd}" + when.contains: + source: /data/logs/learning + - index: "kafka-%{+yyyy.MM.dd}" + when.contains: + source: kafka + - index: "zookeeper-%{+yyyy.MM.dd}" + when.contains: + source: zookeeper + - index: "secor-%{+yyyy.MM.dd}" + when.contains: + source: secor + - index: "postgres-%{+yyyy.MM.dd}" + when.contains: + source: postgres + - index: "syslogs-%{+yyyy.MM.dd}" + +#----------------------------- Logstash output -------------------------------- +#output.logstash: + # The Logstash hosts + #hosts: ["localhost:5044"] + +#----------------------------- General -------------------------------- +max_procs: 1 +ignore_older: 24h +close_inactive: 12h diff --git a/deploy/jenkins/jenkins-plugins-setup.sh b/deploy/jenkins/jenkins-plugins-setup.sh index 1bc665b7eced42bee28f8900c039f5dee0a04e3e..b6956c7df946ea1fea0345bfedac12db38ec61f6 100755 --- a/deploy/jenkins/jenkins-plugins-setup.sh +++ b/deploy/jenkins/jenkins-plugins-setup.sh @@ -4,21 +4,21 @@ normal=$(tput sgr0) if [[ ! -d /var/lib/jenkins/.m2 ]]; then echo -e "\n\e[0;32m${bold}Downloading and copying m2 directory to Jenkins ${normal}" -wget https://sunbirdpublic.blob.core.windows.net/installation/m2_updated.zip -unzip m2_updated.zip +wget https://sunbirdpublic.blob.core.windows.net/installation/m2_new.zip +unzip m2_new.zip mv .m2 /var/lib/jenkins chown -R jenkins:jenkins /var/lib/jenkins/.m2 fi echo -e "\n\e[0;32m${bold}Downloading and copying jenkins plugin directory to Jenkins ${normal}" if [[ ! -d /var/lib/jenkins/plugins ]]; then -wget https://sunbirdpublic.blob.core.windows.net/installation/JenkinsPlugin.zip -unzip JenkinsPlugin.zip +wget https://sunbirdpublic.blob.core.windows.net/installation/jenkins-plugins-new.zip +unzip jenkins-plugins-new.zip mv plugins /var/lib/jenkins/ chown -R jenkins:jenkins /var/lib/jenkins/plugins else -wget https://sunbirdpublic.blob.core.windows.net/installation/JenkinsPlugin.zip -unzip JenkinsPlugin.zip +wget https://sunbirdpublic.blob.core.windows.net/installation/jenkins-plugins-new.zip +unzip jenkins-plugins-new.zip cp -rf plugins/* /var/lib/jenkins/plugins/ chown -R jenkins:jenkins /var/lib/jenkins/plugins fi diff --git a/deploy/jenkins/jenkins-server-setup.sh b/deploy/jenkins/jenkins-server-setup.sh index c28e87690152ec55cb75b0e07dc250fb5f82b0b6..cec51c4fd8f785368e84886b496b7bc79019fee1 100755 --- a/deploy/jenkins/jenkins-server-setup.sh +++ b/deploy/jenkins/jenkins-server-setup.sh @@ -15,7 +15,7 @@ echo -e "\n\e[0;32m${bold}Installating Jenkins${normal}" wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add - apt-add-repository "deb https://pkg.jenkins.io/debian-stable binary/" apt-get update -apt-get install -y jenkins=2.190.2 +apt-get install -y jenkins=2.263.1 echo -e "\n\e[0;32m${bold}Installating PIP${normal}" apt-get install -y python-pip @@ -66,7 +66,7 @@ ln -s /usr/local/lib/node-v6.17.1-linux-x64/bin/gulp /usr/bin/gulp rm -rf node-v6.17.1-linux-x64* echo -e "\n\e[0;32m${bold}Installating Ansible${normal}" -pip install ansible==2.5.2 +pip install ansible==2.7.18 echo -e "\n\e[0;32m${bold}Installating azure cli${normal}" apt-get install ca-certificates curl apt-transport-https lsb-release gnupg @@ -128,6 +128,22 @@ echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/a apt-get update apt-get install -y kubectl +#Install yarn +curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - +echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list +apt update && apt install yarn + +wget https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz +tar -xf openjdk-11+28_linux-x64_bin.tar.gz +mv jdk-11 java-11-openjdk-amd64 +cp -r java-11-openjdk-amd64 /usr/lib/jvm/ +rm -rf java-11-openjdk-amd64 openjdk-11+28_linux-x64_bin.tar.gz + +wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz +tar -xf apache-maven-3.6.3-bin.tar.gz +mv apache-maven-3.6.3/bin/mvn /opt/apache-maven-3.6.3/bin/mvn.3.6 +rm -rf apache-maven-3.6.3-bin.tar.gz + echo -e "\n\e[0;32m${bold}Clean up${normal}" sudo apt -y autoremove diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/config.xml index ca27afff705d0451baa23e45521eebd069a68472..92618cba962f72c6132bd317b68ff0d74bfe0605 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.5.0-rc1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.15"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManager/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManager/config.xml index a3e8cbe68b1538c75af304d0f9dacb9c88f76d3b..99ae364dae73670e870797ba9ccfdb441a49a5ed 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManager/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManager/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,20 +50,21 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Core/APIManager</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Core/APIManager</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -105,4 +105,4 @@ ArtifactRepo - Push the docker image to container registry. </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManagerEcho/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManagerEcho/config.xml index cc051470f7cc1bed34977d10bd5346c96d55ba59..cb84967fb9f25229fdc7e2f47c72b9faa57c229d 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManagerEcho/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/APIManagerEcho/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -29,13 +28,13 @@ <hudson.model.StringParameterDefinition> <name>absolute_job_path</name> <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> - <defaultValue>Build/Core/APIManagerEcho</defaultValue> + <defaultValue>Build/Core/ApiManagerEcho</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,20 +50,21 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Core/APIManagerEcho</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Core/ApiManagerEcho</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -105,4 +105,4 @@ ArtifactRepo - Push the docker image to container registry. </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml index 397432f38263e2f6a98304bbf490f465abbe9b75..bad9bddc1fd60ad61726f20948c1fc206ddc7d87 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml @@ -1,37 +1,35 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> - <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction plugin="pipeline-model-definition@1.3.4.1"/> - <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction plugin="pipeline-model-definition@1.3.4.1"> + <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction plugin="pipeline-model-definition@1.6.0"/> + <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction plugin="pipeline-model-definition@1.6.0"> <jobProperties/> <triggers/> <parameters/> <options/> </org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> - <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>/Build/Core/AdminUtils</upstreamProjects> - <threshold> - <name>SUCCESS</name> - <ordinal>0</ordinal> - <color>BLUE</color> - <completeBuild>true</completeBuild> - </threshold> - </jenkins.triggers.ReverseBuildTrigger> - </triggers> - </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <hudson.model.StringParameterDefinition> @@ -43,7 +41,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -59,32 +57,33 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <jenkins.model.BuildDiscarderProperty> - <strategy class="hudson.tasks.LogRotator"> - <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> - <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> - </strategy> - </jenkins.model.BuildDiscarderProperty> - <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> - <autoRebuild>false</autoRebuild> - <rebuildDisabled>false</rebuildDisabled> - </com.sonyericsson.rebuild.RebuildSettings> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/AdminUtils</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -102,7 +101,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -113,4 +112,4 @@ ArtifactRepo - Push the docker image to container registry. </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Analytics/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Analytics/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..0e2f5b81b52cf8a1f1fa0f4f11367ea44c15f929 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Analytics/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Analytics</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Analytics</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Assessment/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Assessment/config.xml index 99461aa982ac299bfb6e3f8629fdc60340904b41..dc2b9069b73349fd3647f34cbb1e14cfc5a82fab 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Assessment/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Assessment/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Assessment</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Badger/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Badger/config.xml index 7a4b219bb49155d6b8c364e49dfe92c62da9a42f..6e2ea4303735970418caf005008ab0b6a19a72f7 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Badger/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Badger/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Badger</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -105,4 +105,4 @@ ArtifactRepo - Push the docker image to container registry. </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Bot/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Bot/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9d3f277a1376e1e175004f5d25b446090c058742 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Bot/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Bot</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Bot</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cassandra/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cassandra/config.xml index e26714086fce62ff5ecf3a2c63dc3cda00726ee9..06ff17040a4d3fcfccd5073aae718fbcc10aa31c 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cassandra/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cassandra/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Cassandra</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraDecrypt/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraDecrypt/config.xml index 1dec9c818c2ed5834b74b14ac4220c048df9058b..72bb8bb8625520ecdfc3d9970877e1cc99763c40 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraDecrypt/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraDecrypt/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/CassandraDecrypt</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraStateValidated/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraStateValidated/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..dec55c1df81c770a350fd92aa7f42f8879bb47aa --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraStateValidated/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/CassandraStateValidated</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/CassandraStateValidated</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/artifacts/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml index e99180b3a7c50e9895c16325a7350d643a6adfd3..19b638685d1628dd1c6aa03dad5b8277c23b0367 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -51,20 +50,21 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Core/CassandraTrigger</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Core/CassandraTrigger</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cert/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cert/config.xml index fc06750462ec7a037f7675a49b4d381fc93eb3a8..fbf6fc242f477fd5cf744d599008ca87cac7d160 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cert/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Cert/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Cert</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml index 418c706b3da1236a722f80587a11acf37b340502..4748b3d7bb61305e270bcd344bc4c73040535d24 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/CertRegistryService</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Config/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Config/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..874765187c01e16d066feb96dbb84573347c760d --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Config/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Config</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Config</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Content/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Content/config.xml index ff83188c262d8ae2b48b23c17f4af5afd4245f74..3cd813b454f0de1d2edf7c20d5c8ee5d7d1d2edf 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Content/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Content/config.xml @@ -1,22 +1,21 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Content</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/EncService/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/EncService/config.xml index 77c780c037a17f3301d978a5b9a839b23e4905ac..b6ac09120df72c6bb8a92d95734f9a499407f951 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/EncService/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/EncService/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/EncService</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Groups/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Groups/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e1630358641f3d0d65be12f1601336ce6c5343b6 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Groups/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Groups</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Groups</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Hawkeye-superset/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Hawkeye-superset/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..ab8dbb6ef71926735254629ac95a9c6d213b17a7 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Hawkeye-superset/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Hawkeye-superset</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Hawkeye-superset</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Keycloak/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Keycloak/config.xml index 56e5f8b7896e25cf1647d059082783a4a2355618..825932b1b9f4865f9b25cbf0ff3d94ddb71d7730 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Keycloak/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Keycloak/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Keycloak</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -105,4 +105,4 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml index 1d398f8845570e6c774d3e6639aba2c169cc51da..b8352ba7773285cc461e70145cd2b2ebd405ed94 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/KnowledgeMW</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Learner/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Learner/config.xml index 28100d104e50264a80b9e9e68e535907b04c0a0b..a0f41171e91de863f51b8d98762dbeecb4af2ea5 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Learner/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Learner/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Learner</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Lms/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Lms/config.xml index eecb2f318417a837cf166ea3c943e669bafe7cb6..353c7d776fea4ef34b5bc5acf0ebe8c64a935189 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Lms/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Lms/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Lms</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Nodebb/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Nodebb/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e74f85cc5a663663606f93ac3475459ff07ce945 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Nodebb/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Nodebb</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Nodebb</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Notification/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Notification/config.xml index a6f84bf6e18fa875efcbed8ac2b72e3f1a071660..8741ed78748319c0a06bf54552b28837fd40fbfe 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Notification/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Notification/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Notification</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Player/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Player/config.xml index a0c8fd7a653953e9039641adbc28013893e25b0f..d14adf080f3cd4b64ccb927165c7628f7d9f2459 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Player/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Player/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Player</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Print/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Print/config.xml index df8959b6a394871fd310bfcf0fecaa1d34432e00..ef761534e2dfec120c599577cfbe6889983ca02c 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Print/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Print/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Print</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Proxy/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Proxy/config.xml index 281955d43a3fa76c4ceece82e13f82e8352eb522..eff80798abd924e67a4d6eb2673c7449d2c42f17 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Proxy/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Proxy/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Proxy</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -105,4 +105,4 @@ ArtifactRepo - Push the docker image to container registry. </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Report/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Report/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6e6022264f102fcd5da77455b2d7b0ae09c8264e --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Report/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Report</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Report</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Router/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Router/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..2f6dbc4e1878a11ab93d00ec505699c49c6b4088 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Router/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Router</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Router</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Search/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Search/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..c5c50f26216f41e44e9bab64b1d0543988f7ddc8 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Search/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Search</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Search</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Taxonomy/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Taxonomy/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..22173d79ee85c1044023461acc7b8ceb3e64e377 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Taxonomy/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/Core/Taxonomy</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/Core/Taxonomy</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Telemetry/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Telemetry/config.xml index 9bb6a0028cbf5501ba5505691055098ff75df3d8..8364282076075d184e3d30ea9d27b0ac8a447fa0 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Telemetry/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Telemetry/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Telemetry</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -105,4 +105,4 @@ ArtifactRepo - Push the docker image to container registry. </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/UserOrg/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/UserOrg/config.xml index 26c03bc496866046180500f8ce072b611300e8db..103b8d979e25a0ad18f8b2492d506a6b0ed64ca6 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/UserOrg/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/UserOrg/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,19 +50,20 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/UserOrg</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Yarn/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Yarn/config.xml index 84695658823cfd0e114da5f726812ada27c6c2a9..b235988e34320c935566bd4e99785678c3c0882b 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Core/jobs/Yarn/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/Core/Yarn</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/config.xml index ca27afff705d0451baa23e45521eebd069a68472..92618cba962f72c6132bd317b68ff0d74bfe0605 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.5.0-rc1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.15"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AdhocScripts/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AdhocScripts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9a042704aea924398d41a88287551caae8a571a6 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AdhocScripts/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/DataPipeline/AdhocScripts</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/DataPipeline/AdhocScripts</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Analytics/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Analytics/config.xml index 7010abb55eade606030a9e7d81ae57730bc37f6e..b4458fb7cd5b866aed5207329162f528e86fded8 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Analytics/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Analytics/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/DataPipeline/Analytics</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AnalyticsCore/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AnalyticsCore/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6de1a96449110f8dffd8a2ecb3635d808889964e --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AnalyticsCore/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/DataPipeline/AnalyticsCore</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/DataPipeline/AnalyticsCore</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AnalyticsService/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AnalyticsService/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..7f16a721f731c003e72a39b2f2f27fa3be70bffc --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/AnalyticsService/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/DataPipeline/AnalyticsService</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/DataPipeline/AnalyticsService</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml index 2f3f7f3cd0303230b2bd42bc94aba3236bfe6295..82bdc7efcba8bd5026506460a76d83e7f2ea4d0d 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,7 +34,7 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -51,20 +50,21 @@ ArtifactRepo - Push the docker image to container registry. </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/DataPipeline/ApiModule</upstreamProjects> + <spec/> + <upstreamProjects>/Build/DataPipeline/ApiModule</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -75,12 +75,12 @@ ArtifactRepo - Push the docker image to container registry. </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-devops.git</url> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -94,7 +94,7 @@ ArtifactRepo - Push the docker image to container registry. <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/CoreDataProducts/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/CoreDataProducts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f93395f5e0bb204885881eb803bf0f03839c378f --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/CoreDataProducts/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/DataPipeline/CoreDataProducts</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/DataPipeline/CoreDataProducts</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/DataPipeline/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/DataPipeline/config.xml index d3a16f329afe94fe0cf548ee43235cdf12e214b9..e23abe6fcb5c77c5feee6bc6951629f2734e34a6 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/DataPipeline/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/DataPipeline/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/DataPipeline/DataPipeline</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/DataReplay/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/DataReplay/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..fa4592573599c21824dae5b456087d0fa1b82ced --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/DataReplay/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/DataPipeline/DataReplay</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/DataPipeline/DataReplay</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml index 309207380b3ba44049c2933cfb9bae866e96ac9a..bd031ec6238b322e55f18c463f7d210ad0a53ceb 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/DataPipeline/ETLJobs</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/EdDataProducts/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/EdDataProducts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6e67c637811a04f08b3ad57628023d918b45c517 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/EdDataProducts/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/DataPipeline/EdDataProducts</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/DataPipeline/EdDataProducts</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..d05493d86c7f0cc65e45c29df4715f16e8235cd9 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/DataPipeline/FlinkPipelineJobs</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>Build/DataPipeline/FlinkPipelineJobs</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..953421f039250e9ac852838c77e4d7cafd148a1c --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=black size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>/Build/DataPipeline/ml-workbench</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=black size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/DataPipeline/MLWorkbench</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/docker/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Secor/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Secor/config.xml index 7a140ec413b7c9447f316e1306776f117928377d..3a215e29436335befb4ad119f1ad167e0363e973 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Secor/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/DataPipeline/jobs/Secor/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/DataPipeline/Secor</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml index b2b55dbb543b0caae77fd8007be61f4cd5ccacc9..f954ac1cbe31d56fddd5aa58e82e9849204af352 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/KnowledgePlatform/CassandraTrigger</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..b3ae96700e4ca2e5b0ad3572c291f059d92d17b5 --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/KnowledgePlatform/Dial</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>build_number</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the build job number to upload / copy the artifact built in that job.</b></font></description> + <defaultValue>lastSuccessfulBuild</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - Just keep a copy of the artifact in Jenkins.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + <string>JenkinsJob</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/Build/KnowledgePlatform/Dial</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..4742bdefff015b4c17f163525556ce4c9927ed2d --- /dev/null +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml @@ -0,0 +1,108 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>Build/KnowledgePlatform/FlinkJobs</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=darkgreen size=2><b>OPTIONAL: Specify the tag to upload a specific image version to the container registry.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Push the docker image to container registry. +</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>ArtifactRepo</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>Build/KnowledgePlatform/FlinkJobs</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${public_repo_branch}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/upload/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml index 5444de21f6ac0d47456eca25db89313277555e96..8f979780016deebb76a9fdb6aa5be4cbce998726 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml @@ -1,22 +1,21 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/KnowledgePlatform/KnowledgePlatform</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml index e3162085bb48db10822c160d330b8bcb8c00b068..fd7ef60977bba096be4b0528abbb3465bea1581b 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/KnowledgePlatform/Neo4j</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -105,4 +105,4 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/SyncTool/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/SyncTool/config.xml index 02ab22706e7388133148b5f73cb8c3716a2ec6aa..6a9af8f80c68571a3ff841439bf122840b0cc30b 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/SyncTool/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/SyncTool/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/KnowledgePlatform/SyncTool</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml index 2d6034541961ff07cb835d4da00735f23f40d929..4d6a32c8567198c17931ea54b0c60b1f6be3b0ff 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml @@ -1,22 +1,21 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -51,19 +50,20 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>/Build/KnowledgePlatform/Yarn</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -75,8 +75,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -94,7 +94,7 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml index 3fe00570747995b37d1043fe3de9a660e9ccb1c2..969a059c993672377744a200b0517652ab968d95 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml @@ -1,19 +1,18 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -44,21 +43,21 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Plugins/CollectionEditor</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Plugins/CollectionEditor</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -69,8 +68,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml index 9b43d7d8fa8f50b8196e5af111e0fe21214b1cee..9215d10244cf1a3ad8740123077c80ac105f030f 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml @@ -1,19 +1,18 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -44,20 +43,21 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Plugins/ContentEditor</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Plugins/ContentEditor</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -68,8 +68,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml index 6dcf3f76b43e2cd2bbd638cc9e585e4611322abd..4f8edb89fa093d8bab57db47a2a0ef314a3f9707 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml @@ -1,19 +1,18 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -44,20 +43,21 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Plugins/ContentPlayer</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Plugins/ContentPlayer</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -68,8 +68,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml index 0d3a13392ba3cd8008e8d8265bf725ce044adf79..253aeb9d55de79834a9e4dea824005f341a0747e 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml @@ -1,19 +1,18 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -44,20 +43,21 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Plugins/ContentPlugins</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Plugins/ContentPlugins</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -68,8 +68,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml index 4f273440986b24a2591124dd6027a9e457a19f93..569336322c96204bf44778750bd5ce39f5314dd3 100644 --- a/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml +++ b/deploy/jenkins/jobs/ArtifactUpload/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml @@ -1,19 +1,18 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -44,20 +43,21 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>Build/Plugins/GenericEditor</upstreamProjects> + <spec/> + <upstreamProjects>/Build/Plugins/GenericEditor</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -68,8 +68,8 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -90,4 +90,4 @@ ArtifactRepo - Upload and keep a copy of the artifact in Jenkins, JenkinsJob - J </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/config.xml b/deploy/jenkins/jobs/Build/config.xml index 6fe3ca0b648a7d27f01f3e0a35eb100181e779dc..e794546f97853f8c6d5beb4f144c697fe25f8645 100644 --- a/deploy/jenkins/jobs/Build/config.xml +++ b/deploy/jenkins/jobs/Build/config.xml @@ -1,13 +1,8 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.7"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.14"> <actions/> <description></description> - <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.4"> - <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.13"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> - </properties> + <properties/> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> <hudson.model.AllView> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/config.xml index ca27afff705d0451baa23e45521eebd069a68472..92618cba962f72c6132bd317b68ff0d74bfe0605 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.5.0-rc1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.15"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/APIManager/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/APIManager/config.xml index 2ee272e18905076dfcff59d0d9393819ae26ab48..e0d29e22d789931e2cd56aef0745291a8ff2268f 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/APIManager/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/APIManager/config.xml @@ -1,7 +1,6 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> @@ -13,37 +12,41 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.75"> - <script>node(){ - build_tag="1.8.0-gold" - name="kong" - node=env.NODE_NAME - org=env.hub_org - - sh """ - docker pull sunbird/kong:1.8.0-gold - docker tag sunbird/kong:1.8.0-gold ${org}/${name}:${build_tag} - """ -writeFile file: 'metadata.json', text: '{ "image_name" : "' + name + '", "image_tag" : "' + build_tag + '", "node_name" : "' + node + '"}' - - archiveArtifacts artifacts: 'metadata.json', onlyIfSuccessful: true -}</script> - <sandbox>true</sandbox> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>images/kong/Jenkinsfile.build</scriptPath> + <lightweight>false</lightweight> </definition> <triggers/> <disabled>false</disabled> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/APIManagerEcho_Backup/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/APIManagerEcho_Backup/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..a441e6b66c107561219b20bb83fe54bf70315bee --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/APIManagerEcho_Backup/config.xml @@ -0,0 +1,38 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.32"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.67"> + <script>node(){ + build_tag="1.5.0-gold" + name="echo-server" + node=env.NODE_NAME + org=env.hub_org + + sh """ + docker pull sunbird/echo-server:1.5.0-gold + docker tag sunbird/echo-server:1.5.0-gold ${org}/echo-server:${build_tag} + """ +writeFile file: 'metadata.json', text: '{ "image_name" : "echo-server", "image_tag" : "' + build_tag + '", "node_name" : "' + node + '"}' + + archiveArtifacts artifacts: 'metadata.json', onlyIfSuccessful: true +}</script> + <sandbox>true</sandbox> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/AdminUtils/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/AdminUtils/config.xml index 6c04d498722bd6609d3b5b794a8239462c4cddaf..a26017e13d0b12c309ebcb905e2f3d5b2329426a 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/AdminUtils/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/AdminUtils/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,51 +7,65 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.67"> - <script>node(){ - build_tag="1.5.0-gold" - name="adminutil" - node=env.NODE_NAME - org=env.hub_org - - sh """ - docker pull sunbird/${name}:${build_tag} - docker tag sunbird/${name}:${build_tag} ${org}/${name}:${build_tag} - """ -writeFile file: 'metadata.json', text: '{ "image_name" : "' + name + '", "image_tag" : "' + build_tag + '", "node_name" : "' + node + '"}' - - archiveArtifacts artifacts: 'metadata.json', onlyIfSuccessful: true -}</script> - <sandbox>true</sandbox> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-apimanager-util.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> </definition> <triggers/> <disabled>false</disabled> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Analytics/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Analytics/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..1f6d5991a5050c1feb7d5e67276e49f26121690d --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Analytics/config.xml @@ -0,0 +1,79 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-analytics-service.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/ApiManagerEcho/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/ApiManagerEcho/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..96d35d3ab4a4e97d85c16debc4d547481fa70ca6 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/ApiManagerEcho/config.xml @@ -0,0 +1,73 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-echo-service.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Assessment/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Assessment/config.xml index 43bed5c8588941ce280dab48e7e7c4f412112e84..f23ff671d61909db553e82a4136288cc953e974f 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Assessment/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Assessment/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,26 +28,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -66,7 +66,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Badger/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Badger/config.xml index 145cdd44aa7ee425654634143d94e4128bdb2717..5b20171528b88aeab879a5b81754bb12f0cc2f11 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Badger/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Badger/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,44 +28,39 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.75"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.80"> <script>node(){ - build_tag="1.8.0-gold" - name="badger" + build_tag="1.8.0-gold" + name="badger" node=env.NODE_NAME org=env.hub_org - sh """ + sh """ docker pull sunbird/${name}:${build_tag} docker tag sunbird/${name}:${build_tag} ${org}/${name}:${build_tag} - """ -writeFile file: 'metadata.json', text: '{ "image_name" : "' + name + '", "image_tag" : "' + build_tag + '", "node_name" : "' + node + '"}' + """ +writeFile file: 'metadata.json', text: '{ "image_name" : "' + name + '", "image_tag" : "' + build_tag + '", "node_name" : "' + node + '"}' - archiveArtifacts artifacts: 'metadata.json', onlyIfSuccessful: true + archiveArtifacts artifacts: 'metadata.json', onlyIfSuccessful: true }</script> <sandbox>true</sandbox> </definition> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cassandra/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cassandra/config.xml index c7470f6bfae1a5b7d6396d0e9110a8de2b5eb4b4..e93b6d0fbdc378700f8b900d2a2d8a6482947dc9 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cassandra/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cassandra/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,20 +28,21 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <hudson.triggers.SCMTrigger> @@ -52,8 +52,8 @@ </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +71,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraDecrypt/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraDecrypt/config.xml index 3746907b3a48158f1885056a89a998d57512ab7e..949257c004c3fcef31e26b614c175337fed1e149 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraDecrypt/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraDecrypt/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,31 +28,37 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>cassandra_jar_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>groups-service-util-1.0-SNAPSHOT-jar-with-dependencies.jar</string> + <string>user-declaration-util-1.0-SNAPSHOT-jar-with-dependencies.jar</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +76,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraStateValidated/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraStateValidated/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..4c4a7e1b007fe7eaab8380943c71bc129899519f --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraStateValidated/config.xml @@ -0,0 +1,80 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.34"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-utils.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile.stateValidated</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraTrigger/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraTrigger/config.xml index 2347b235cb700bd46a57346ff36c933d921559b4..1c1e1a1ef40dfe6f026116bcc85eb03daae3ded0 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraTrigger/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CassandraTrigger/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cert/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cert/config.xml index a867909a6f08033cf62da136cf269dac43a865b5..74e5873c355abd6fc794688001dd3f1e37587cf6 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cert/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Cert/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,31 +28,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=blue size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +66,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CertRegistryService/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CertRegistryService/config.xml index bcd353ae7bfb9c54463afcde357a09fb2ba6df59..d226d54c016ada2f7ed4330a19879ea964baa6de 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CertRegistryService/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CertRegistryService/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,31 +28,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=blue size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/CloudStorageSDK/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CloudStorageSDK/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..8fc15e8756f54f34ff06233d4a3915787b6078ed --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/CloudStorageSDK/config.xml @@ -0,0 +1,84 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.31"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.SCMTrigger> + <spec>H/15 * * * *</spec> + <ignorePostCommitHooks>false</ignorePostCommitHooks> + </hudson.triggers.SCMTrigger> + </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-cloud-storage-sdk.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>true</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Config/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Config/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..842c70c411018a79bf76dc66f766bd31954719d5 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Config/config.xml @@ -0,0 +1,85 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.31"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + <configVersion>1</configVersion> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.SCMTrigger> + <spec>H/15 * * * *</spec> + <ignorePostCommitHooks>false</ignorePostCommitHooks> + </hudson.triggers.SCMTrigger> + </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-config.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>true</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Content/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Content/config.xml index 34533b223be99a7675041e067dcf5a064a5f3f55..7def9cac2aa9f87bd2e787b9ac253176a4f5426f 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Content/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Content/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,31 +28,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +66,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/DiscussionsMiddleware/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/DiscussionsMiddleware/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..3c75acdec916e608433f5f91e154567b4bdce885 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/DiscussionsMiddleware/config.xml @@ -0,0 +1,85 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.SCMTrigger> + <spec>15 * * * *</spec> + <ignorePostCommitHooks>false</ignorePostCommitHooks> + </hudson.triggers.SCMTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.87"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.5.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/Sunbird-Ed/discussions-middleware</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/EncService/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/EncService/config.xml index 013e1a9f87556fc9de2bdb9bfe74016085c9d511..1113115faf85c24bcd5348e3aee1e23edd83bef5 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/EncService/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/EncService/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.33"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> @@ -28,31 +27,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.11.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -70,7 +63,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Groups/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Groups/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..aaf6e8d80e637892fe6f9a7b10de62373db726d1 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Groups/config.xml @@ -0,0 +1,78 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/groups-service.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Hawkeye-superset/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Hawkeye-superset/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..1f7728a619c7aa4c7dd9439133cbe608428fe486 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Hawkeye-superset/config.xml @@ -0,0 +1,78 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.SCMTrigger> + <spec>H/15 * * * *</spec> + <ignorePostCommitHooks>false</ignorePostCommitHooks> + </hudson.triggers.SCMTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/Sunbird-Ed/incubator-superset.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Keycloak/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Keycloak/config.xml index 75e3f824ef6d961f27933ffb30f6a4d7b9817d06..c4f17ac8c729e404f552c548f9691716f3cd593e 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Keycloak/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Keycloak/config.xml @@ -1,13 +1,12 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> @@ -22,20 +21,21 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <hudson.triggers.SCMTrigger> @@ -45,8 +45,8 @@ </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -64,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/KnowledgeMW/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/KnowledgeMW/config.xml index 71e5de7bbefa1fc396c6a3219b20bebb599c7d70..edf3983a7271b3420a49dacaaf611fce27c0acf2 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/KnowledgeMW/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/KnowledgeMW/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -22,35 +21,29 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-content-service.git</url> + <url>https://github.com/project-sunbird/knowledge-mw-service.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -64,7 +57,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Learner/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Learner/config.xml index b8d0132a3945db61dfdf77548fe1b304d8e4191f..8d26ae1f1ac9c75d91327f23d23970624c0d8196 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Learner/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Learner/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,31 +28,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +66,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Lms/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Lms/config.xml index 417df3f39e3f61dfbe5dd594d62b8ba4f58f2838..4aa49ef4da7378e0ab5345bea65719f1090deb57 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Lms/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Lms/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,30 +28,29 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-course-service</url> + <url>https://github.com/project-sunbird/sunbird-course-service.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -66,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Nodebb/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Nodebb/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f02fabb463b4f483eb78660083d57510a43b8fa3 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Nodebb/config.xml @@ -0,0 +1,79 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>nodebb_branch</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/build/nodebb/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Notification/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Notification/config.xml index 511ab2d2eb567bc8d30f82fee1ebf292588e13cc..6116cd04f23d9b48b941f56ef51be6389474e083 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Notification/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Notification/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,31 +28,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=blue size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/PlatformCoursesFunctionalTest/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/PlatformCoursesFunctionalTest/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..94dd96265cd76f60d43a89667b058229e3a4bd21 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/PlatformCoursesFunctionalTest/config.xml @@ -0,0 +1,88 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.TimerTrigger> + <spec>H 0 * * *</spec> + </hudson.triggers.TimerTrigger> + <hudson.triggers.SCMTrigger> + <spec>H 23 * * *</spec> + <ignorePostCommitHooks>false</ignorePostCommitHooks> + </hudson.triggers.SCMTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-functional-tests.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>lms_service_api_test/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Player/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Player/config.xml index 4558b6a4343fcc56a1d82e3d37014072e455657c..a7ec059293b4b4ddca3aa219693fefa7140b0e43 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Player/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Player/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,53 +28,73 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> <name>sunbird_content_editor_artifact_url</name> <description><font color=dimgray size=2><b>Blob URL for content editor zip file</b></font></description> - <defaultValue></defaultValue> + <defaultValue>https://sunbirddev.blob.core.windows.net/sunbird-content-dev/artefacts/editor/content-editor-iframe-3.0.0.zip</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> <name>sunbird_collection_editor_artifact_url</name> <description><font color=dimgray size=2><b>Blob URL for collection editor zip file</b></font></description> - <defaultValue></defaultValue> + <defaultValue>https://sunbirddev.blob.core.windows.net/sunbird-content-dev/artefacts/editor/collection-editor-iframe-3.0.0.zip</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> <name>sunbird_generic_editor_artifact_url</name> <description><font color=dimgray size=2><b>Blob URL for generic editor zip file</b></font></description> - <defaultValue></defaultValue> + <defaultValue>https://sunbirddev.blob.core.windows.net/sunbird-content-dev/artefacts/editor/generic-editor-iframe-2.9.0.zip</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>buildDockerImage</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>true</string> + <string>false</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>buildCdnAssests</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>false</string> + <string>true</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>cdnUrl</name> + <description/> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/Sunbird-Ed/SunbirdEd-portal.git</url> + <url>https://github.com/Sunbird-Ed/SunbirdEd-portal</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -89,7 +108,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -100,4 +119,4 @@ </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/PlayerCustomStage/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/PlayerCustomStage/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..133012369df9ab5e02c6caa2dc17840e728784a1 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/PlayerCustomStage/config.xml @@ -0,0 +1,60 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.80"> + <script>node(){ +ansiColor('xterm') { + String ANSI_GREEN = "\u001B[32m" + String ANSI_NORMAL = "\u001B[0m" + String ANSI_BOLD = "\u001B[1m" + String ANSI_RED = "\u001B[31m" + String ANSI_YELLOW = "\u001B[33m" + buildNumber = params.build_number + try { + copyArtifacts projectName: params.absolute_job_path, fingerprintArtifacts: true, flatten: true, selector: specific(buildNumber) + } + catch (err) { + println ANSI_YELLOW + ANSI_BOLD + "Ok that failed!. Lets try an alertnative.." + ANSI_NORMAL + copyArtifacts projectName: params.absolute_job_path, flatten: true, selector: upstream() + } + stage('ArchiveArtifacts') { + archiveArtifacts "metadata.json" + currentWs = sh(returnStdout: true, script: 'pwd').trim() + image_tag = sh(returnStdout: true, script: 'jq -r .image_tag metadata.json').trim() + agent = sh(returnStdout: true, script: 'jq -r .node_name metadata.json').trim() + image_name = sh(returnStdout: true, script: 'jq -r .image_name metadata.json').trim() + commit_hash = sh(returnStdout: true, script: 'jq -r .commit_hash metadata.json').trim() + values = [:] + values.put('image_name', image_name) + values.put('image_tag', image_tag) + values.put('commit_hash', commit_hash) + cdn_file_exists = new File("$currentWs/index_cdn.ejs") + if (cdn_file_exists.exists()) { + archiveArtifacts "index_cdn.ejs, cdn_assets.zip" + } + currentBuild.description = "${values.image_tag}" + } +} +}</script> + <sandbox>true</sandbox> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Print/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Print/config.xml index 2ec5081594b79a7145f9f36f430fe240d3e5f2bd..0317d4a8bdf368d65050590eb692f59631260134 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Print/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Print/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -22,31 +21,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -64,7 +57,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Proxy/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Proxy/config.xml index 20e7a55b7b5b784fae5f7b4c46cf840d715b24cd..d6a7b60a56a8ffe653a1dd6cf288af4e532bc718 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Proxy/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Proxy/config.xml @@ -1,19 +1,18 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -22,26 +21,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -59,7 +59,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Report/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Report/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..ca135323c0d4b124a5d23e6c34c688406e7fba05 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Report/config.xml @@ -0,0 +1,78 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-report-service</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Search/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Search/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e5472de674d251e0698cf8359010e87fe0f0629b --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Search/config.xml @@ -0,0 +1,78 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/knowledge-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>build/search-service/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Taxonomy/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Taxonomy/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..d6845b1e75c9f64fa5dceca7f96a2051b4c2d10f --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Taxonomy/config.xml @@ -0,0 +1,78 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/knowledge-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>build/taxonomy-service/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Telemetry/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Telemetry/config.xml index 8db1eb374ff3a1c79e495363edcc39431dbfb3d5..7d243557443d98b20af2f80e0f54a3b10739e1e9 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Telemetry/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Telemetry/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,32 +28,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -72,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -82,5 +74,5 @@ <lightweight>false</lightweight> </definition> <triggers/> - <disabled>true</disabled> + <disabled>false</disabled> </flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/UserOrg/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/UserOrg/config.xml index 3b5cc656b21aaca3dd62bbf42383eee50231666d..e942a49066a03f1db4e55210e4134adbe1080ab8 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/UserOrg/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/UserOrg/config.xml @@ -1,7 +1,7 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> @@ -14,15 +14,11 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> - <autoRebuild>false</autoRebuild> - <rebuildDisabled>false</rebuildDisabled> - </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <hudson.model.StringParameterDefinition> @@ -33,26 +29,12 @@ </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> - <categories class="java.util.concurrent.CopyOnWriteArrayList"/> - <throttleEnabled>false</throttleEnabled> - <throttleOption>project</throttleOption> - <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Yarn/config.xml b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Yarn/config.xml index 76a1d0c7f29121ac1e7914d96373eade8948b55b..903fc54bd391a5d5a3b750ec7eec30a292fbf213 100644 --- a/deploy/jenkins/jobs/Build/jobs/Core/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Core/jobs/Yarn/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -29,32 +28,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -72,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -82,5 +74,5 @@ <lightweight>false</lightweight> </definition> <triggers/> - <disabled>true</disabled> + <disabled>false</disabled> </flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/config.xml index 2b6dfdd25fa1b4d85d7e2f288fe548c35080d54a..b4e3e19ff5dfa0b5e0ad064b3f331b262a084e05 100644 --- a/deploy/jenkins/jobs/Build/jobs/DataPipeline/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/config.xml @@ -1,13 +1,13 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.5.0-rc1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.15"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> - <org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty plugin="config-file-provider@3.6.2"> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + <org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty plugin="config-file-provider@3.6.3"> <configs class="sorted-set"> <comparator class="org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty$1"/> </configs> diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AdhocScripts/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AdhocScripts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..7fadcf6e986bc164876d181d89a771c6fd96dee4 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AdhocScripts/config.xml @@ -0,0 +1,68 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/Sunbird-Ed/sunbird-data-products.git</url> + <credentialsId>githubHarsha</credentialsId> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>python-scripts/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Analytics/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Analytics/config.xml index ce25972cbba11f89a418967dd6cdae7552a8a1fc..b5f6fe737dc21d0c6c7691c0b4e5d3dbaead62b9 100644 --- a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Analytics/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Analytics/config.xml @@ -1,7 +1,7 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> @@ -14,16 +14,12 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> - <autoRebuild>false</autoRebuild> - <rebuildDisabled>false</rebuildDisabled> - </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <hudson.model.StringParameterDefinition> @@ -34,30 +30,16 @@ </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> - <categories class="java.util.concurrent.CopyOnWriteArrayList"/> - <throttleEnabled>false</throttleEnabled> - <throttleOption>project</throttleOption> - <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-analytics.git</url> + <url>https://github.com/project-sunbird/sunbird-core-dataproducts.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AnalyticsCore/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AnalyticsCore/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6c0648ca69d81fcdb1a5e31e2ac2ac5b2c895830 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AnalyticsCore/config.xml @@ -0,0 +1,80 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-analytics-core</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AnalyticsService/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AnalyticsService/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..49b4a521aa6668e4748553f803c4b7ea56cec59f --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/AnalyticsService/config.xml @@ -0,0 +1,67 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-analytics-service.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ApiModule/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ApiModule/config.xml index 79fbc9b2381dc368c6caed66cb1caec10c65c497..2ba32367d999518236d7455884c0ea96cbb5e44a 100644 --- a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ApiModule/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ApiModule/config.xml @@ -1,7 +1,7 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> @@ -14,16 +14,12 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> - <autoRebuild>false</autoRebuild> - <rebuildDisabled>false</rebuildDisabled> - </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <hudson.model.StringParameterDefinition> @@ -34,26 +30,12 @@ </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> - <categories class="java.util.concurrent.CopyOnWriteArrayList"/> - <throttleEnabled>false</throttleEnabled> - <throttleOption>project</throttleOption> - <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/CoreDataProducts/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/CoreDataProducts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..550b6da99c82cc3144593958cc46202c87ef2dac --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/CoreDataProducts/config.xml @@ -0,0 +1,80 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-core-dataproducts.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/DataPipeline/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/DataPipeline/config.xml index 17afc4067c9f6507b108cc77982f69d2da148c24..0777c5d77f1d9b94160ae1504bd415c0bc765bb3 100644 --- a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/DataPipeline/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/DataPipeline/config.xml @@ -1,7 +1,7 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> @@ -14,16 +14,12 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> - <autoRebuild>false</autoRebuild> - <rebuildDisabled>false</rebuildDisabled> - </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <hudson.model.StringParameterDefinition> @@ -34,26 +30,12 @@ </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> - <categories class="java.util.concurrent.CopyOnWriteArrayList"/> - <throttleEnabled>false</throttleEnabled> - <throttleOption>project</throttleOption> - <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/DataReplay/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/DataReplay/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..2cc421723442bd656ee5f4fab7980177e0226528 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/DataReplay/config.xml @@ -0,0 +1,68 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/sowmya-dixit/sunbird-data-products.git</url> + <credentialsId>githubHarsha</credentialsId> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>replay-scripts/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ETLJobs/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ETLJobs/config.xml index 5de7b91e0e05975a2d4d0e5ab8dda9074c9cf7a6..94e0a87ee1eb80496926951445f4d5998d0c1d53 100644 --- a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ETLJobs/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/ETLJobs/config.xml @@ -1,7 +1,6 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> @@ -13,27 +12,28 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/sunbird-Ed/sunbird-data-products.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -45,7 +45,7 @@ <submoduleCfg class="list"/> <extensions/> </scm> - <scriptPath>pipelines/build/adhoc-jobs/Jenkinsfile</scriptPath> + <scriptPath>etl-jobs/build.Jenkinsfile</scriptPath> <lightweight>false</lightweight> </definition> <triggers/> diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/EdDataProducts/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/EdDataProducts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..4c52f1ccf3b1889f821304e4c8891790ddeb3b86 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/EdDataProducts/config.xml @@ -0,0 +1,80 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/Sunbird-Ed/sunbird-data-products.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>data-products/build.Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..03719536006bd73c22080f0c8806118fa4c95791 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml @@ -0,0 +1,78 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/build/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Secor/config.xml b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Secor/config.xml index 35dfa63937985c31e6adb2dfd25673a8ca425ee8..e179860313fba16a259d3afd98ab3c0c28f363a3 100644 --- a/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Secor/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/DataPipeline/jobs/Secor/config.xml @@ -1,7 +1,7 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> @@ -14,16 +14,12 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> - <autoRebuild>false</autoRebuild> - <rebuildDisabled>false</rebuildDisabled> - </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> <hudson.model.StringParameterDefinition> @@ -34,25 +30,12 @@ </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> - <categories class="java.util.concurrent.CopyOnWriteArrayList"/> - <throttleEnabled>false</throttleEnabled> - <throttleOption>project</throttleOption> - <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -81,4 +64,4 @@ </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Experiments/config.xml b/deploy/jenkins/jobs/Build/jobs/Experiments/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..5be56a4e057771f36a9853e10466836ea20d7ada --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Experiments/config.xml @@ -0,0 +1,29 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.8"> + <actions/> + <description></description> + <properties> + <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.8"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.14"/> + </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/config.xml b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..37e2c9b17a36df9c322b1d8c5c5ea45d9198d74c --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/config.xml @@ -0,0 +1,29 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> + <actions/> + <description></description> + <properties> + <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.9"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.15"/> + </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/config.xml b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..37e2c9b17a36df9c322b1d8c5c5ea45d9198d74c --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/config.xml @@ -0,0 +1,29 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> + <actions/> + <description></description> + <properties> + <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.9"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.15"/> + </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp1/config.xml b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp1/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..471add90f98e76aab30d0a54a4220f3795e12f2d --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp1/config.xml @@ -0,0 +1,121 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.33"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>exp1</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>exp1</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>portal_branch_name</name> + <description></description> + <defaultValue>release-2.2.0</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>portal_repo_url</name> + <description></description> + <defaultValue>https://github.com/Sunbird-Ed/SunbirdEd-portal.git</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.11.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/player-experiments/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp2/config.xml b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp2/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..d8dcbf422df04be63855999830c8c63900264c18 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp2/config.xml @@ -0,0 +1,121 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.33"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>exp2</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>exp2</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>portal_branch_name</name> + <description></description> + <defaultValue>portal-experiments</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>portal_repo_url</name> + <description></description> + <defaultValue>https://github.com/G33tha/SunbirdEd-portal.git</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.11.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>${portal_repo_url}</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Experiments/experiments.Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp3/config.xml b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp3/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..295f773de5775e697b44a2e3478868e597c2091e --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments/jobs/exp3/config.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?><flow-definition> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties/> + <triggers/> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition"> + <scriptPath>experiments/experiments.Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + <scm class="hudson.plugins.git.GitSCM"> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/G33tha/SunbirdEd-portal.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>portal-experiments</name> + </hudson.plugins.git.BranchSpec> + </branches> + <configVersion>2</configVersion> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <gitTool>Default</gitTool> + </scm> + </definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments_Job_Generator/config.xml b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments_Job_Generator/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..74790c6bfb4bf9dc5d3d96706fd68ac5fdb7b605 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/Experiments/jobs/dev/jobs/Experiments_Job_Generator/config.xml @@ -0,0 +1,85 @@ +<?xml version='1.1' encoding='UTF-8'?> +<project> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>experiment_job_name</name> + <description>job name or experiment name</description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>repo_url</name> + <description>ex : https://github.com/${account_name}/SunbirdEd-portal.git</description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>branch_name</name> + <description></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <scm class="hudson.scm.NullSCM"/> + <canRoam>true</canRoam> + <disabled>false</disabled> + <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> + <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> + <triggers/> + <concurrentBuild>false</concurrentBuild> + <builders> + <javaposse.jobdsl.plugin.ExecuteDslScripts plugin="job-dsl@1.76"> + <scriptText>def jobname = "${experiment_job_name}" +def repo = "${repo_url}" +def branch = "${branch_name}" + +pipelineJob("Experiments/dev/Experiments/${jobname}") { + + definition { + cpsScm { + scm { + git { + remote { url(repo) } + branches(branch) + scriptPath('experiments/experiments.Jenkinsfile') + } + } + } + } +}</scriptText> + <usingScriptText>true</usingScriptText> + <sandbox>false</sandbox> + <ignoreExisting>false</ignoreExisting> + <ignoreMissingFiles>false</ignoreMissingFiles> + <failOnMissingPlugin>false</failOnMissingPlugin> + <failOnSeedCollision>false</failOnSeedCollision> + <unstableOnDeprecation>false</unstableOnDeprecation> + <removedJobAction>IGNORE</removedJobAction> + <removedViewAction>IGNORE</removedViewAction> + <removedConfigFilesAction>IGNORE</removedConfigFilesAction> + <lookupStrategy>JENKINS_ROOT</lookupStrategy> + </javaposse.jobdsl.plugin.ExecuteDslScripts> + </builders> + <publishers/> + <buildWrappers/> +</project> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/FunctionalTests/config.xml b/deploy/jenkins/jobs/Build/jobs/FunctionalTests/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..fb78197ddd867fb7562c730d5fea8573f50faae5 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/FunctionalTests/config.xml @@ -0,0 +1,28 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> + <description></description> + <properties> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/FunctionalTests/jobs/Core/config.xml b/deploy/jenkins/jobs/Build/jobs/FunctionalTests/jobs/Core/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..fb78197ddd867fb7562c730d5fea8573f50faae5 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/FunctionalTests/jobs/Core/config.xml @@ -0,0 +1,28 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> + <description></description> + <properties> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/FunctionalTests/jobs/Core/jobs/Content/config.xml b/deploy/jenkins/jobs/Build/jobs/FunctionalTests/jobs/Core/jobs/Content/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..3cf2aa50ee1d306162a1c17041d25561f33bd7ab --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/FunctionalTests/jobs/Core/jobs/Content/config.xml @@ -0,0 +1,80 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/knowledge-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>functional-tests/content/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/config.xml index c3548f16ca38c8c5271404ef7b085a6c2bd0d184..b4e3e19ff5dfa0b5e0ad064b3f331b262a084e05 100644 --- a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/config.xml @@ -1,13 +1,13 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.9"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.15"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> - <org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty plugin="config-file-provider@3.6.2"> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + <org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty plugin="config-file-provider@3.6.3"> <configs class="sorted-set"> <comparator class="org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty$1"/> </configs> diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml index b7a1b0f5f5f924fb8913c84dbc991f88561538a1..e9c657cf3b71c74496c7e8bbd2cbd6516403a668 100644 --- a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,13 +7,13 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> @@ -29,26 +28,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -66,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Dial/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Dial/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..fb61d20cc73c774089d28f1ec6e8804340b1620f --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Dial/config.xml @@ -0,0 +1,78 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-dial-service</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..41a9eadcd69e7a637e1daa0d298260f7c8e0519d --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml @@ -0,0 +1,80 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/knowledge-platform-jobs.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernets/pipelines/build/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml index 01eeb5d5152bbeeb5a766e293ad71c67a9d37662..a33487e183ca9a7b27cb85ec75eacdcd2f850e8e 100644 --- a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/KnowledgePlatform/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,13 +7,13 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> @@ -29,7 +28,7 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> @@ -44,25 +43,24 @@ </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + <url>https://github.com/project-sunbird/sunbird-learning-platform</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -76,7 +74,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/LPFuntionalTest/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/LPFuntionalTest/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..8338d7a5cde441bbf401b384bdebe5411463cf07 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/LPFuntionalTest/config.xml @@ -0,0 +1,109 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_service_url</name> + <description></description> + <defaultValue>http://11.2.4.22:8080/learning-service</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_content_creator_password</name> + <description></description> + <defaultValue>password</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_content_reviewer_password</name> + <description></description> + <defaultValue>password</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_search_base_url</name> + <description></description> + <defaultValue>http://11.2.6.6/search</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_dial_base_url</name> + <description></description> + <defaultValue>https://qa.ekstep.in/api</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_dial_auth_key</name> + <description></description> + <defaultValue>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI2MzExMTYwNTMzOGY0Zjc5YTgwZTM3YjcyZjVjMmUwZiJ9.azmj_AHmndeJz0h6yIkOJz1XjeZR6Gzd-OrZzR66I0A</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_cs_uri</name> + <description></description> + <defaultValue>http://11.2.6.6/content</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-functional-tests.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kp_service_test/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/LP_Decoupling_Test/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/LP_Decoupling_Test/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..288e7b050564c5be2552dad10b95c56745c0d4f1 --- /dev/null +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/LP_Decoupling_Test/config.xml @@ -0,0 +1,77 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>1</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>profile_id</name> + <description>Select the profile_id</description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>platform-services</string> + <string>learning-services</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${github_release_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/build/learning/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Neo4j/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Neo4j/config.xml index 4dfbddd06a7d9608ff2490ce26975efb7d078e9c..e8f69cfc3ee66da4fb7784c878b5452852e7818f 100644 --- a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Neo4j/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Neo4j/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,13 +7,13 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> @@ -29,31 +28,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/SyncTool/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/SyncTool/config.xml index 09e72999b84be18388cdff2ce77186ea46a897b8..0f8cf822dc742828798e0749fc5a0a92bede920a 100644 --- a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/SyncTool/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/SyncTool/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,13 +7,13 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> @@ -29,31 +28,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <hudson.triggers.SCMTrigger> - <spec>H/15 * * * *</spec> - <ignorePostCommitHooks>false</ignorePostCommitHooks> - </hudson.triggers.SCMTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -71,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Yarn/config.xml b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Yarn/config.xml index b29e9d14e0e90b5cdfceaef7e7bbafdeb3c23a0c..ff889ff7263c1ccfd1f09dfe973f6ae41616c7d1 100644 --- a/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/KnowledgePlatform/jobs/Yarn/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,13 +7,13 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>1</artifactNumToKeep> </strategy> @@ -29,41 +28,29 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>KnowledgePlatform</upstreamProjects> - <threshold> - <name>SUCCESS</name> - <ordinal>0</ordinal> - <color>BLUE</color> - <completeBuild>true</completeBuild> - </threshold> - </jenkins.triggers.ReverseBuildTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + <url>https://github.com/project-sunbird/sunbird-learning-platform</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -77,7 +64,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/CollectionEditor/config.xml b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/CollectionEditor/config.xml index 2851393b4a4cc239d1f789c6f960c416e6e7d4c7..9349be357535ee6035d8cda9f0eb4deeb533de4f 100644 --- a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/CollectionEditor/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/CollectionEditor/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -22,30 +21,31 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-collection-editor</url> + <url>https://github.com/project-sunbird/sunbird-collection-editor.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -59,7 +59,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentEditor/config.xml b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentEditor/config.xml index 64757a95ea73f03a44853ddc55f7c682db9bc621..e59dc31c4bad788bbcd51a9e1d1153fd04c83b70 100644 --- a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentEditor/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentEditor/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -22,26 +21,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -59,7 +59,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlayer/config.xml b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlayer/config.xml index 2c05092c2191204cef5a024484a274b8b674bda3..2719e4d2798f321895e70e00c9d0c188b1f58f23 100644 --- a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlayer/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlayer/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -22,26 +21,25 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> - <maxConcurrentPerNode>0</maxConcurrentPerNode> - <maxConcurrentTotal>0</maxConcurrentTotal> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -59,7 +57,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlugins/config.xml b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlugins/config.xml index 2c87891f4372a1e8a76ed62f3e15b498a0f8c58e..b53b66fe22ea27ac34c8618edb58580f9be3225a 100644 --- a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlugins/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/ContentPlugins/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -22,26 +21,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -59,7 +59,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/GenericEditor/config.xml b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/GenericEditor/config.xml index 8e12940dcfe796f0b1044bf01d8e71f4291f8184..c1a37d63e27ffe49304a69f516d406972d3a985a 100644 --- a/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/GenericEditor/config.xml +++ b/deploy/jenkins/jobs/Build/jobs/Plugins/jobs/GenericEditor/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>1</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -22,26 +21,27 @@ <hudson.model.StringParameterDefinition> <name>github_release_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -59,7 +59,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>false</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/config.xml b/deploy/jenkins/jobs/Deploy/config.xml index 68477b8ac7421fc78d69182df3125c9ab3412fdf..e794546f97853f8c6d5beb4f144c697fe25f8645 100644 --- a/deploy/jenkins/jobs/Deploy/config.xml +++ b/deploy/jenkins/jobs/Deploy/config.xml @@ -1,13 +1,8 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.7"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.14"> <actions/> <description></description> - <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.4.1"> - <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.13"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> - </properties> + <properties/> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> <hudson.model.AllView> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/config.xml index ca27afff705d0451baa23e45521eebd069a68472..92618cba962f72c6132bd317b68ff0d74bfe0605 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.5.0-rc1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.15"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/APIManager/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/APIManager/config.xml index 04ef70b5737fc766b06a4ee63aa331d3f3b37538..bf725fd9e615793ad1ec1dda98c98e6a86b470b7 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/APIManager/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/APIManager/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,76 +34,78 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>APIManager</projectName> + <projectFullName>Deploy/dev/Core/APIManager</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>APIManager</projectName> + <projectFullName>Deploy/dev/Core/APIManager</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Core/APIManager</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -116,8 +117,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -135,7 +136,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml index c9eb87767881b66972e50eee44dea82f7b62fa5f..298ff2b71d835a15f0cbeb00d6c288761aa5e28e 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/AdminUtils/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Assessment/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Assessment/config.xml index 1353dd4e767769e993b3f5abd5bb9f54a269af26..bd554ea42ee0d688f7f4761a5f29aedafe8a69ac 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Assessment/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Assessment/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -58,7 +58,7 @@ return """<b>This parameter is not used</b>"&quo </secureFallbackScript> </script> <projectName>Assessment</projectName> - <projectFullName>Deploy/dev/Core_disabled/Assessment</projectFullName> + <projectFullName>Deploy/dev/Core/Assessment</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -85,7 +85,7 @@ return """<b>This parameter is not used</b>"&quo </secureFallbackScript> </script> <projectName>Assessment</projectName> - <projectFullName>Deploy/dev/Core_disabled/Assessment</projectFullName> + <projectFullName>Deploy/dev/Core/Assessment</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -127,7 +127,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.7.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Badger/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Badger/config.xml index 139322e5f85752196223071274edee0b3a4e94e4..5bdde924e3cd74d20c82795cf11dce136bb20ae5 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Badger/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Badger/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -116,7 +116,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.2.0_RC11</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml index 54d79c38fe4a6edf38a0517ca9816090bad3d9c2..76712ca41fd253cc1761b0b1d57e1612c89bc4c9 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/BootstrapMongodb/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/BootstrapMongodb/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..c37ca3a3fc7c08c8d01610497905534632f501d0 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/BootstrapMongodb/config.xml @@ -0,0 +1,126 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-196486141556745</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>BootstrapMongodb</projectName> + <projectFullName>Provision/dev/Core/BootstrapMongodb</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-196486144020383</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>BootstrapMongodb</projectName> + <projectFullName>Provision/dev/Core/BootstrapMongodb</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>tag_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>nodebb</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.87"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.5.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/nodebb/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CF-QUML_Migration_Script/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CF-QUML_Migration_Script/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e166158a8c008998d5b40b75f14bd8e2f48afc9b --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CF-QUML_Migration_Script/config.xml @@ -0,0 +1,94 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description>Migration from QUML version 0.5 to QUML version 1.0</description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>kp_search_service_base_path</name> + <description>kp_search_service_base_path http://11.2.6.6/search</description> + <defaultValue>http://11.2.6.6/search</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_learning_service_base_path</name> + <description>kp_learning_service_base_path http://11.2.4.22:8080/learning-service</description> + <defaultValue>http://11.2.4.22:8080/learning-service</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_assessment_service_base_path</name> + <description>kp_assessment_service_base_path: http://11.2.6.6/assessment</description> + <defaultValue>http://11.2.6.6/assessment</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kp_content_service_base_path</name> + <description>kp_content_service_base_path http://11.2.6.6/content</description> + <defaultValue>http://11.2.6.6/content</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>github_release_tag</name> + <description><font color="red"><b>CAUTION: If the value is blank, latest code will be built. Specify github tag name to build from a tag</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/Sunbird-Ed/SunbirdEd-portal.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>quml-mogration-2.10</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CassandraStateValidated/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CassandraStateValidated/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..dcdd0db0d347300e377636e705b9abd8f0cadc27 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CassandraStateValidated/config.xml @@ -0,0 +1,214 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.34"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/CassandraStateValidated</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9600649228560</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraStateValidated</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>build_number</name> + <description></description> + <randomName>choice-parameter-9600651313765</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraStateValidated</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>artifact_version</name> + <description></description> + <randomName>choice-parameter-9600653373369</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraStateValidated</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraStateValidated</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraStateValidated</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec></spec> + <upstreamProjects>ArtifactUpload/dev/Core/CassandraStateValidated</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/cassandra-deploy/Jenkinsfile.stateValidated</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml index 9fb0436c4b3e42eb0d5e0c01177733f3b8719f40..82b8b8a6b3320b9dd8cf03f7ba7dfd453e381dcd 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CassandraTrigger/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Cert/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Cert/config.xml index 5713bdacb9e014720b25b78c65cbde3a0d6ca500..cf950946896ae4f9e277a704e200d5d4f528356d 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Cert/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Cert/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml index 44e278d0d382161b4f554ae95daf2453ba03c5fe..ee1bfcb08547d921e7ee8c0dc986302934159021 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/CertRegistryService/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Config/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Config/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..40c3e9754b34da783f19d2433c7a75dd29e19081 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Config/config.xml @@ -0,0 +1,137 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.31"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Config</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.53"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.53"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Config</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.53"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.53"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Config</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/config-service/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Content/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Content/config.xml index c7253c95198f95412e32076cea447180e6562f74..821fb2fbf0a9d13f76c9eea7e47ebbad0b382d83 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Content/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Content/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,77 +34,78 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Content</projectName> <projectFullName>Deploy/dev/Core/Content</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Content</projectName> <projectFullName>Deploy/dev/Core/Content</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Core/Content</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -117,8 +117,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -127,7 +127,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>sc-1928</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -136,7 +136,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/EncService/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/EncService/config.xml index 46fec0d7d277320a9bbe3fc3b8e4cc0f4b89571a..307fc4c505f89a17c49c390353b9df7f7df01224 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/EncService/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/EncService/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KafkaSetup/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KafkaSetup/config.xml index f53155770384269a0f753b3a78449e916f5d4766..bd98aec0fa63c43c7da4268b1efd2cd3412f8a84 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KafkaSetup/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KafkaSetup/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,71 +25,74 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188157054642539</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaSetup</projectName> + <projectFullName>Deploy/dev/Core/KafkaSetup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188157057910170</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaSetup</projectName> + <projectFullName>Deploy/dev/Core/KafkaSetup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_UNORDERED_LIST</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -99,7 +101,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -108,7 +110,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/LogEsUpgrade6xx/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakCustom/config.xml similarity index 82% rename from deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/LogEsUpgrade6xx/config.xml rename to deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakCustom/config.xml index 02a00d5d44ed3011de775c15940b36f8d8482c59..0038bd043cd8c4aa4b77dd790234d119657353b4 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/LogEsUpgrade6xx/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakCustom/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<flow-definition plugin="workflow-job@2.32"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,25 +7,25 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> <name>private_branch</name> <description></description> - <randomName>choice-parameter-186487879604743</randomName> + <randomName>choice-parameter-196487835595646</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.68"> + <secureScript plugin="script-security@1.58"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -33,25 +33,24 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.68"> + <secureFallbackScript plugin="script-security@1.58"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> - <projectName>LogEsUpgrade6xx</projectName> - <projectFullName>Provision/loadtest/Core/LogEsUpgrade6xx</projectFullName> + <projectName>KeycloakAddClients</projectName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> <name>branch_or_tag</name> <description></description> - <randomName>choice-parameter-186487885338467</randomName> + <randomName>choice-parameter-196487838166797</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.68"> + <secureScript plugin="script-security@1.58"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; @@ -60,13 +59,12 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.68"> + <secureFallbackScript plugin="script-security@1.58"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> - <projectName>LogEsUpgrade6xx</projectName> - <projectFullName>Provision/loadtest/Core/LogEsUpgrade6xx</projectFullName> + <projectName>KeycloakAddClients</projectName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -84,12 +82,12 @@ return """<b>This parameter is not used</b>"&quo <paramsToUseForLimit></paramsToUseForLimit> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.78"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/kaali09/sunbird-devops.git</url> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -109,9 +107,9 @@ return """<b>This parameter is not used</b>"&quo </hudson.plugins.git.extensions.impl.CloneOption> </extensions> </scm> - <scriptPath>pipelines/provision/log-es-upgrade/Jenkinsfile.latest</scriptPath> + <scriptPath>pipelines/deploy/keycloak/Jenkinsfile.custom</scriptPath> <lightweight>false</lightweight> </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakMigration/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakMigration/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..0cdecbe4fc34e52938eb74d74becc6982c0e328c --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakMigration/config.xml @@ -0,0 +1,173 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Keycloak</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9600649228560</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Core/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>build_number</name> + <description></description> + <randomName>choice-parameter-9600651313765</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Core/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>artifact_version</name> + <description></description> + <randomName>choice-parameter-9600653373369</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Core/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Core/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.7.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/deploy/keycloak-migration/Jenkinsfile</scriptPath> + <lightweight>true</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakRealm/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakRealm/config.xml index 78de0730d0bcc0ab43aed1aa08fecabfda6ec1a5..7eb30d0c183fee994e8d2b8fec4efbddd0de2107 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakRealm/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KeycloakRealm/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,92 +7,95 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-186662917593857</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KeycloakRealm</projectName> + <projectFullName>Deploy/dev/Core/KeycloakRealm</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-186662921061407</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KeycloakRealm</projectName> + <projectFullName>Deploy/dev/Core/KeycloakRealm</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml index c355d4b94494f9bc5f467bf0095572851ecec1f0..46e23f702d15cb23aafa3fa0d608bb31e1fa66c1 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/KnowledgeMW/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -127,7 +127,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.9.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Learner/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Learner/config.xml index db227c4737627f4306aa07a61cff417c60709517..406390f30375a99ce3e7155ba831b4b8d6034d90 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Learner/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Learner/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,77 +34,78 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Learner</projectName> <projectFullName>Deploy/dev/Core/Learner</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Learner</projectName> <projectFullName>Deploy/dev/Core/Learner</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Core/Learner</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -117,8 +117,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -127,7 +127,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.2.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -136,7 +136,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Lms/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Lms/config.xml index 580fb9c8921a7e2ad7d62c246d2b0424a026066e..c63aa7263c2e884b5d8f02062e4236ad7b26ebfc 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Lms/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Lms/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,77 +34,78 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Lms</projectName> <projectFullName>Deploy/dev/Core/Lms</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Lms</projectName> <projectFullName>Deploy/dev/Core/Lms</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Core/Lms</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -117,8 +117,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -127,7 +127,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>summary-aggregate</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -136,7 +136,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logging/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logging/config.xml index 70c06dbdc42ba459f969ad2eb8a09bfa4f29bcfc..0bf64894bd24bbe24dbce2027ee976403a457607 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logging/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logging/config.xml @@ -6,10 +6,10 @@ <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> - <daysToKeep>10</daysToKeep> - <numToKeep>-1</numToKeep> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/LoggingFileBeatsVM/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/LoggingFileBeatsVM/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6d70dacf019259866eb98c61c3702f8d33e3c8cc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/LoggingFileBeatsVM/config.xml @@ -0,0 +1,175 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-6494533480752662</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-6494533482836034</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.ChoiceParameter plugin="uno-choice@2.5.1"> + <name>hosts</name> + <description><font color=dimgray size=2><b>Choose the host groups to deploy filbeat. You can add additonal host groups if you have more or different group names</b></font></description> + <randomName>choice-parameter-6494533485540097</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>return ['cassandra', +'composite-search-cluster', +'dial', +'dp-cassandra', +'dp-redis', +'es', +'influxdb', +'ingestion-cluster-kafka', +'ingestion-cluster-zookeeper', +'kafka-indexer', +'keycloak', +'learningall', +'learning-neo4j-cluster', +'lms-redis', +'log-es', +'lp-cassandra', +'lp-redis', +'postgres', +'processing-cluster-kafka', +'redis-metadata', +'secor', +'spark', +'telemetry-indexer-logstash', +'zookeeper']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.ChoiceParameter> + <org.biouno.unochoice.ChoiceParameter plugin="uno-choice@2.5.1"> + <name>tags</name> + <description><font color=dimgray size=2><b>Select this only if you want to start or stop. Use default for deploying filebeat</b></font></description> + <randomName>choice-parameter-6563905181834747</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>return['default', +'start-filebeat', +'stop-filebeat']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.ChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.87"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.5.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/logger/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logstash/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logstash/config.xml index 40ece3d118349c897ab9bd79fa4a98ff673234af..8a028a7772dc9d2960944a63845d6ffc4d8b8db9 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logstash/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Logstash/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml index 5d8bcbb8028d32b7c0abba649e05781ddd33efc1..dcab0240de9ad5633ec80bf0f58dc6cc2c8d9839 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Monitoring/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -19,56 +18,56 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-186775018293883</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Monitoring</projectName> <projectFullName>Deploy/dev/Core/Monitoring</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-186775024902722</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Monitoring</projectName> <projectFullName>Deploy/dev/Core/Monitoring</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> @@ -92,18 +91,19 @@ return """<b>This parameter is not used</b>"&quo </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -112,7 +112,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>sunbird-monitoring-release-3.5.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -121,7 +121,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Notification/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Notification/config.xml index ccf3d0f4a6657880080ae12a05916052e7a60db0..6594417008781b271d17cbf207dcef455d6084fc 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Notification/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Notification/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Oauth/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Oauth/config.xml index a90507de47c12787a48da70120f69ee445ae4757..6bbe79142af8d2343f0e60c62d5d31b3b97750ec 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Oauth/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Oauth/config.xml @@ -6,10 +6,10 @@ <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> - <daysToKeep>10</daysToKeep> - <numToKeep>-1</numToKeep> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardAPIs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardAPIs/config.xml index 7e9662ce0e08f4dfa077d035d545c4efa35a2a3e..a122d804d296001703e02016b0c1891e22f3715d 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardAPIs/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardAPIs/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -96,12 +96,12 @@ return """<b>This parameter is not used</b>"&quo <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-devops</url> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.7.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardConsumers/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardConsumers/config.xml index d1a4d4cfc19322454a38a75284baeefa0d4aa17b..44efa4f3e0633ccc3298ebe543b0ae77f5faa27b 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardConsumers/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/OnboardConsumers/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -94,7 +94,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.7.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Player/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Player/config.xml index 04b4bc73bd749cb7ccfaa4a198405ec08fda94e0..6b5fd45cb7fdd1d75a741fa6925703af9f39e736 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Player/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Player/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -35,75 +34,78 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Player</projectName> + <projectFullName>Deploy/dev/Core/Player</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Player</projectName> + <projectFullName>Deploy/dev/Core/Player</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>Deploy/dev/Core/PlayerCDN</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -115,8 +117,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -134,7 +136,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/PlayerCDN/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/PlayerCDN/config.xml index c7d437a52bf8cd69b926c028a7b376dd1ddcd3d0..1a32fe8014da3997f9d4ab61bca94786f00be767 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/PlayerCDN/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/PlayerCDN/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -38,13 +38,13 @@ <defaultValue></defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> <description></description> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -52,7 +52,7 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> @@ -64,13 +64,13 @@ return """<b>This parameter is not used</b>"&quo <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; @@ -79,7 +79,7 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> @@ -99,7 +99,7 @@ return """<b>This parameter is not used</b>"&quo </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> @@ -107,6 +107,7 @@ return """<b>This parameter is not used</b>"&quo <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> <paramsToUseForLimit></paramsToUseForLimit> + <configVersion>1</configVersion> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> @@ -123,8 +124,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -152,5 +153,5 @@ return """<b>This parameter is not used</b>"&quo <lightweight>false</lightweight> </definition> <triggers/> - <disabled>false</disabled> + <disabled>true</disabled> </flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Print/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Print/config.xml index d6239bef9ac837f51ec57baf7c5d3dedb4633c08..a59ba36bee8082f56bc9b9f07c2e376acebaee23 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Print/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Print/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -127,7 +127,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.7.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Proxy/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Proxy/config.xml index b41cfe595cbe82114aefba0a82bfa9343d33d619..6867343613bc9e2bfd0ad3100e4e733c433a69ac 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Proxy/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Proxy/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -28,75 +27,78 @@ <hudson.model.StringParameterDefinition> <name>image_tag</name> <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Proxy</projectName> + <projectFullName>Deploy/dev/Core/Proxy</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Proxy</projectName> + <projectFullName>Deploy/dev/Core/Proxy</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Core/Proxy</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -108,8 +110,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -127,7 +129,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/ReloadContainerServices/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/ReloadContainerServices/config.xml index 3e98e52376bfabb9ad6e484de3c84b6a265cc973..915daeeb8def128b6ee3242b4c3ef4e71f3920aa 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/ReloadContainerServices/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/ReloadContainerServices/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>-1</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Telemetry/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Telemetry/config.xml index d41ac682b32a072339bec41b7705534bcb23cb06..122d8aded61bfb4bb8c333788c729a49148f653c 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Telemetry/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/Telemetry/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/TelemetryLogstash/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/TelemetryLogstash/config.xml index 3f59f70e3585e0dea40c728d72f3032020c84b60..ef548d986a076bb9577e53690d41ded4a554de2f 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/TelemetryLogstash/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/TelemetryLogstash/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/UserOrg/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/UserOrg/config.xml index 557e5f459793701f161713990c94c368b322c587..c0cd9f5f4c66cd7f6bd25ec3323a52b4a673c589 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/UserOrg/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/UserOrg/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/YarnOld/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/YarnOld/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e14279a743555f718a98724eeac89325d5edfb33 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/YarnOld/config.xml @@ -0,0 +1,234 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.34"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Yarn</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>build_number</name> + <description></description> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>artifact_version</name> + <description></description> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <name>job_names_to_deploy</name> + <description><font color=green size=2><b>Choose the samza app names to deploy and this will kill the selected samza app and deploy them. Multi selection is available.</b></font></description> + <randomName>choice-parameter-8026182213525059</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>return ['lms.user-account-merger_1', +'lms.sso-account-updater_1', +'lms.indexer_1']</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/yarn/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlineInstaller/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlineInstaller/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..bd1b7a06842915f04c069fab045c4c7071539b82 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlineInstaller/config.xml @@ -0,0 +1,138 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>offlineInstaller</projectName> + <projectFullName>Deploy/dev/Core/offlineInstaller</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>offlineInstaller</projectName> + <projectFullName>Deploy/dev/Core/offlineInstaller</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>sunbirded_installer_branch_or_tag</name> + <description><font color=dimgray size=2><b>Provide the branch or tag of sunbirded offline installer repo [ <u>https://github.com/Sunbird-Ed/sunbird-desktop-app.git</u> ] for the build job.</b></font></description> + <defaultValue>release-2.6.0</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>offline_installer_type</name> + <description><font color=dimgray size=2><b>Choose the type of installer you wanted to build</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>linux64bit</string> + <string>windows64bit</string> + <string>windows32bit</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + <configVersion>1</configVersion> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>test</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/offlineinstaller/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>true</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlinewindowstest32/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlinewindowstest32/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..5d2d3a18258d42a39479d6e7d5f42394c8992d41 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlinewindowstest32/config.xml @@ -0,0 +1,135 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.34"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>offlinewindowstest32</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>offlinewindowstest32</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>sunbirded_installer_branch_or_tag</name> + <description><font color=dimgray size=2><b>Provide the branch or tag of sunbirded offline installer repo [ <u>https://github.com/Sunbird-Ed/sunbird-desktop-app.git</u> ] for the build job.</b></font></description> + <defaultValue>release-2.1</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>offline_installer_type</name> + <description><font color=dimgray size=2><b>Choose the type of installer you wanted to build</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>windows32bit</string> + <string>windows64bit</string> + <string>linux64bit</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/offlineinstaller/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlinewindowstest64/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlinewindowstest64/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..137949d93ba3c30968c4e96d31976fde2058ade3 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/offlinewindowstest64/config.xml @@ -0,0 +1,135 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.34"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>offlinewindowstest64</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>offlinewindowstest64</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>sunbirded_installer_branch_or_tag</name> + <description><font color=dimgray size=2><b>Provide the branch or tag of sunbirded offline installer repo [ <u>https://github.com/Sunbird-Ed/sunbird-desktop-app.git</u> ] for the build job.</b></font></description> + <defaultValue>release-2.1</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>offline_installer_type</name> + <description><font color=dimgray size=2><b>Choose the type of installer you wanted to build</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>windows64bit</string> + <string>windows32bit</string> + <string>linux64bit</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/offlineinstaller/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/user-Keycloak/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/user-Keycloak/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..1292b42c032a98bbcc2a95a89e5c59589114b0b9 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Core/jobs/user-Keycloak/config.xml @@ -0,0 +1,214 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Keycloak</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9600649228560</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>user-Keycloak</projectName> + <projectFullName>Deploy/dev/Core/user-Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>build_number</name> + <description></description> + <randomName>choice-parameter-9600651313765</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>user-Keycloak</projectName> + <projectFullName>Deploy/dev/Core/user-Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>artifact_version</name> + <description></description> + <randomName>choice-parameter-9600653373369</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>user-Keycloak</projectName> + <projectFullName>Deploy/dev/Core/user-Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>user-Keycloak</projectName> + <projectFullName>Deploy/dev/Core/user-Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>user-Keycloak</projectName> + <projectFullName>Deploy/dev/Core/user-Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>sunbird_auth_branch_or_tag</name> + <description><font color=dimgray size=2><b>Provide the branch or tag of sunbird auth repo.</b></font></description> + <defaultValue>release-1.15_RC9</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/keycloak/Jenkinsfile.user</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/config.xml index ca27afff705d0451baa23e45521eebd069a68472..6a4f8d07e708420a9648f2eec50961c830fb8368 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.9"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.5.0-rc1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.15"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> @@ -17,6 +17,55 @@ <filterQueue>false</filterQueue> <properties class="hudson.model.View$PropertyList"/> </hudson.model.AllView> + <au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView plugin="build-pipeline-plugin@1.5.8"> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>Deployment View</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + <consoleOutputLinkStyle>Lightbox</consoleOutputLinkStyle> + <triggerOnlyLatestJob>false</triggerOnlyLatestJob> + <alwaysAllowManualTrigger>false</alwaysAllowManualTrigger> + <showPipelineParameters>false</showPipelineParameters> + <rowHeaders class="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.SimpleRowHeader"/> + <showPipelineParametersInHeaders>false</showPipelineParametersInHeaders> + <columnHeaders class="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.NullColumnHeader"/> + <buildCard class="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.StandardBuildCard"/> + <startsWithParameters>false</startsWithParameters> + <refreshFrequency>3</refreshFrequency> + <showPipelineDefinitionHeader>false</showPipelineDefinitionHeader> + </au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView> + <hudson.plugins.view.dashboard.Dashboard plugin="dashboard-view@2.12"> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>dahs</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + <jobNames> + <comparator class="hudson.util.CaseInsensitiveComparator"/> + </jobNames> + <jobFilters/> + <columns> + <hudson.views.StatusColumn/> + <hudson.views.WeatherColumn/> + <hudson.views.JobColumn/> + <hudson.views.LastSuccessColumn/> + <hudson.views.LastFailureColumn/> + <hudson.views.LastDurationColumn/> + <hudson.views.BuildButtonColumn/> + <hudson.plugins.favorite.column.FavoriteColumn plugin="favorite@2.3.2"/> + </columns> + <recurse>false</recurse> + <useCssStyle>false</useCssStyle> + <includeStdJobList>false</includeStdJobList> + <hideJenkinsPanels>false</hideJenkinsPanels> + <leftPortletWidth>50%</leftPortletWidth> + <rightPortletWidth>50%</rightPortletWidth> + <leftPortlets/> + <rightPortlets/> + <topPortlets/> + <bottomPortlets/> + </hudson.plugins.view.dashboard.Dashboard> </views> <tabBar class="hudson.views.DefaultViewsTabBar"/> </folderViews> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AdhocScripts/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AdhocScripts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..90b51247816bbbdca0b0b38c9dc83de0fa7d9131 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AdhocScripts/config.xml @@ -0,0 +1,227 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/AdhocScripts</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AdhocScripts</projectName> + <projectFullName>Deploy/dev/DataPipeline/AdhocScripts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AdhocScripts</projectName> + <projectFullName>Deploy/dev/DataPipeline/AdhocScripts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AdhocScripts</projectName> + <projectFullName>Deploy/dev/DataPipeline/AdhocScripts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AdhocScripts</projectName> + <projectFullName>Deploy/dev/DataPipeline/AdhocScripts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AdhocScripts</projectName> + <projectFullName>Deploy/dev/DataPipeline/AdhocScripts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/AdhocScripts</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <credentialsId>githubHarsha</credentialsId> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.9.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/datascience/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml index dfe786f734a844ead09b7f9abd93293aac86eaa0..2a39d1b1f151fadf895f2671ea15ac0606b17195 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,158 +31,169 @@ <defaultValue>ArtifactUpload/dev/DataPipeline/Analytics</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-9061667106947</randomName> - <visibleItemCount>1</visibleItemCount> + <visibleItemCount>2</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsAPI</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsAPI</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-9061670571657</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsAPI</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsAPI</projectFullName> - <parameters class="linked-hash-map"/> + <parameters class="linked-hash-map"> + <entry> + <string>artifact_source</string> + <string>JenkinsJob</string> + </entry> + </parameters> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-9061673103864</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsAPI</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsAPI</projectFullName> - <parameters class="linked-hash-map"/> + <parameters class="linked-hash-map"> + <entry> + <string>artifact_source</string> + <string>JenkinsJob</string> + </entry> + </parameters> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsAPI</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsAPI</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsAPI</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsAPI</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -192,7 +202,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.7.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -201,7 +211,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -211,5 +221,5 @@ return """<b>This parameter is not used</b>"&quo <lightweight>false</lightweight> </definition> <triggers/> - <disabled>false</disabled> + <disabled>true</disabled> </flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsCore/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsCore/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..aaf1954e324adb06e4de35833e375835fa9a19d8 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsCore/config.xml @@ -0,0 +1,239 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/AnalyticsCore</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsCore</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsCore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsCore</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsCore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsCore</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsCore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsCore</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsCore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsCore</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsCore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>module</name> + <description> +<font color=dimgray size=2><b>It will deploy only lpa_core_artifacts(analytics-core & analytics-framework) jar.</b></font></description> + <defaultValue>framework</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>remote</name> + <description/> + <defaultValue>spark</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/AnalyticsCore</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/data-products/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsFetchLogs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsFetchLogs/config.xml index a8ca2905d17db40a223abb2ba92797c193a228ea..f230bc0a3b4bd042fee91710e5b5ed9ed4479568 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsFetchLogs/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsFetchLogs/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -48,73 +47,74 @@ </a> </choices> </hudson.model.ChoiceParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsFetchLogs</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsFetchLogs</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsFetchLogs</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsFetchLogs</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -132,7 +132,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsGeoLocationDBSetup/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsGeoLocationDBSetup/config.xml index 23e99c74f0580a49c27f6dc9b4f32c7e1df4fca0..06c58447943d9c1b618355104979073970ae6753 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsGeoLocationDBSetup/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsGeoLocationDBSetup/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsPopulatePSQLConsumerChannelMapping/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsPopulatePSQLConsumerChannelMapping/config.xml index 1f159729916cb2144096ed5a56e34e822c95fa83..9b5f1d1ae92112d121c91b04918ca2a10cbf70c9 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsPopulatePSQLConsumerChannelMapping/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsPopulatePSQLConsumerChannelMapping/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -54,77 +53,78 @@ <defaultValue>analytics-team</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsPopulatePSQLConsumerChannelMapping</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsPopulatePSQLConsumerChannelMapping</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsPopulatePSQLConsumerChannelMapping</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsPopulatePSQLConsumerChannelMapping</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/sowmya-dixit/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -138,7 +138,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsReplayJobs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsReplayJobs/config.xml index cf23738d91e15bdde4f1cd70f10e85d9b0044876..c67809a5f3fef57b6315cddd9c1b0c8a475150e9 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsReplayJobs/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsReplayJobs/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -45,9 +44,10 @@ </choices> </hudson.model.ChoiceParameterDefinition> <hudson.model.StringParameterDefinition> - <name>job_id</name> - <description><font color=dimgray size=2><b>Specify the job id.</b></font></description> - <defaultValue></defaultValue> + <name>batch_identifier</name> + <description><font color=dimgray size=2><b>Specify The BatchId to Generate report for specific batch</b></font> +<font color=dimgray size=2><b>NOTE: Only Applicable if you are running course-metrics and assessment metrics job</b></font></description> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> @@ -68,73 +68,91 @@ <defaultValue>30</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsReplayJobs</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsReplayJobs</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsReplayJobs</projectName> <projectFullName>Deploy/dev/DataPipeline/AnalyticsReplayJobs</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>keyword</name> + <description>Optional - Enter a keyword to generate a report for the "program-collection-summary-report" </description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>job_id</name> + <description><font color=dimgray size=2><b>Specify the job id.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>progress-exhaust</string> + <string>userinfo-exhaust</string> + <string>response-exhaust</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -152,7 +170,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsService/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsService/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f1b3a45ba2d8957e66474b6007d6720634e66342 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsService/config.xml @@ -0,0 +1,225 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/AnalyticsService</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>2</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsService</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsService</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsService</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsService</projectFullName> + <parameters class="linked-hash-map"> + <entry> + <string>artifact_source</string> + <string>JenkinsJob</string> + </entry> + </parameters> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsService</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsService</projectFullName> + <parameters class="linked-hash-map"> + <entry> + <string>artifact_source</string> + <string>JenkinsJob</string> + </entry> + </parameters> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsService</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsService</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AnalyticsService</projectName> + <projectFullName>Deploy/dev/DataPipeline/AnalyticsService</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.2.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/analytics-api/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>true</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsStartJobManager/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsStartJobManager/config.xml index 99fa738f030377bd7d91ac141a317e79e9c807cb..d59080aeb42b664266a38472611dd1a12c68e8b4 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsStartJobManager/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsStartJobManager/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -102,12 +102,12 @@ return """<b>This parameter is not used</b>"&quo <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/manjudr/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.8.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSubmitJobs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSubmitJobs/config.xml index e3639ec0fecfbf2d7ce3173ebaca068b1f2f0007..99d97a99a4c360261fbec3f83842c0b51daedb33 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSubmitJobs/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSubmitJobs/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -102,12 +102,12 @@ return """<b>This parameter is not used</b>"&quo <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/manjudr/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>dataproducts-ansible-changes</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml index 940c48fa635d8613bd8996a8c96d44aad34220c0..392e4f9837f07547a1bca705597c9a878b8a7dd0 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ApiModule/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -150,12 +150,12 @@ return """<b>This parameter is not used</b>"&quo <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/manjudr/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>proxy-api</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/CassandraDbUpdate/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/CassandraDbUpdate/config.xml index b1efd0f52eaf6b826d892da37231ab2552d08995..312081ee3e0cbefe8109a944b7f641b41b7cfc56 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/CassandraDbUpdate/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/CassandraDbUpdate/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,71 +25,74 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188134496458577</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraDbUpdate</projectName> + <projectFullName>Deploy/dev/DataPipeline/CassandraDbUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188134511232202</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraDbUpdate</projectName> + <projectFullName>Deploy/dev/DataPipeline/CassandraDbUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -108,7 +110,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/CoreDataProducts/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/CoreDataProducts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f459c48329d4fb2c52467a569ebf6ee322ffc529 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/CoreDataProducts/config.xml @@ -0,0 +1,238 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/CoreDataProducts</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CoreDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/CoreDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CoreDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/CoreDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CoreDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/CoreDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CoreDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/CoreDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CoreDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/CoreDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>module</name> + <description><font color=dimgray size=2><b>It will deploy only lpa_core_dp_artifacts(batch-models & job-manager) jar.</b></font></description> + <defaultValue>dataproducts,default-jobs</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>remote</name> + <description/> + <defaultValue>spark</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/CoreDataProducts</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/data-products/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataProducts/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataProducts/config.xml index 7826dc016a05e7c888a65e2853078084751d529b..8f09be5bc682104120f37eff0b88e57c40aa2d3d 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataProducts/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataProducts/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,51 +31,51 @@ <defaultValue>ArtifactUpload/dev/DataPipeline/Analytics</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-9061667106947</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>DataProducts</projectName> <projectFullName>Deploy/dev/DataPipeline/DataProducts</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-9061670571657</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -87,23 +86,23 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-9061673103864</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -114,75 +113,76 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>DataProducts</projectName> <projectFullName>Deploy/dev/DataPipeline/DataProducts</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>DataProducts</projectName> <projectFullName>Deploy/dev/DataPipeline/DataProducts</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects>ArtifactUpload/dev/DataPipeline/Analytics</upstreamProjects> + <spec/> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/AnalyticsCore</upstreamProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> @@ -193,8 +193,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -212,7 +212,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataReplayJob/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataReplayJob/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..2121bb596ba8985f6c7fc58c88d034d707e14d72 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataReplayJob/config.xml @@ -0,0 +1,153 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>container</name> + <description><font color=dimgray size=2><b>Specify the container for data replay.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>prefix</name> + <description><font color=dimgray size=2><b>Specify the prefix for data replay.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>start_date</name> + <description><font color=dimgray size=2><b>Specify the start date. The default value is just a placeholder which can be changed as per need.</b></font></description> + <defaultValue>2017-05-01</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>end_date</name> + <description><font color=dimgray size=2><b>Specify the end date. The default value is just a placeholder which can be changed as per need.</b></font></description> + <defaultValue>2017-07-11</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.BooleanParameterDefinition> + <name>delete_backups</name> + <description><font color=dimgray size=2><b>Boolean field indicating whether to delete backups or not</b></font></description> + <defaultValue>false</defaultValue> + </hudson.model.BooleanParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>DataReplayJob</projectName> + <projectFullName>Deploy/dev/DataPipeline/DataReplayJob</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>DataReplayJob</projectName> + <projectFullName>Deploy/dev/DataPipeline/DataReplayJob</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/sowmya-dixit/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.8.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/data-replay/Jenkinsfile.replay</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataReplayScript/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataReplayScript/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..55e382d7aa05438366501869696d87220f6f4414 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataReplayScript/config.xml @@ -0,0 +1,227 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/DataReplay</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>DataReplayScript</projectName> + <projectFullName>Deploy/dev/DataPipeline/DataReplayScript</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>build_number</name> + <description></description> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>DataReplayScript</projectName> + <projectFullName>Deploy/dev/DataPipeline/DataReplayScript</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>artifact_version</name> + <description></description> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>DataReplayScript</projectName> + <projectFullName>Deploy/dev/DataPipeline/DataReplayScript</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>DataReplayScript</projectName> + <projectFullName>Deploy/dev/DataPipeline/DataReplayScript</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>DataReplayScript</projectName> + <projectFullName>Deploy/dev/DataPipeline/DataReplayScript</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec></spec> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/DataReplay</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <credentialsId>githubHarsha</credentialsId> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.8.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/data-replay/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataproductsConfigUpdate/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataproductsConfigUpdate/config.xml index 6e006a10c1808105049d46181905c3e394b08a37..3d602c216fa0e06cde3e21d188116dc30707a14f 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataproductsConfigUpdate/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DataproductsConfigUpdate/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,88 +31,95 @@ Please provide the tag name. Provide the comma separated value if you want to give more than 1 tags.[ Ex: clean-cronjobs,cronjobs,update-config ] </b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>DataproductsConfigUpdate</projectName> <projectFullName>Deploy/dev/DataPipeline/DataproductsConfigUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>DataproductsConfigUpdate</projectName> <projectFullName>Deploy/dev/DataPipeline/DataproductsConfigUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>remote</name> + <description/> + <defaultValue>spark</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/sowmya-dixit/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.10.1</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -122,7 +128,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DruidIngestion/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DruidIngestion/config.xml index 30f4f7c78f1a076461c82ae42f25819088a5fbce..530f33936c45f2c80d03e92363386ab4d1918c60 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DruidIngestion/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DruidIngestion/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -39,74 +38,77 @@ To stop task: [stop-task] </a> </choices> </hudson.model.ChoiceParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-193684482193674</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>DruidIngestion</projectName> + <projectFullName>Deploy/dev/DataPipeline/DruidIngestion</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-193684493817846</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>DruidIngestion</projectName> + <projectFullName>Deploy/dev/DataPipeline/DruidIngestion</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -124,7 +126,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DruidSummaryMonthlyRollup/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DruidSummaryMonthlyRollup/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..cba7924d7cb98cdf56dd8620dfa9802262a4962e --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/DruidSummaryMonthlyRollup/config.xml @@ -0,0 +1,74 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.TimerTrigger> + <spec>H 22 1 * *</spec> + </hudson.triggers.TimerTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/druid-summary-monthly-ingestion/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_Health_Check/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_Health_Check/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..27e6b355db4fd318a72142ba21a11ac26170e173 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_Health_Check/config.xml @@ -0,0 +1,70 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/RevathiKotla/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.8.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/ops/druid/Jenkinsfile.druidsegmentalert</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_ingestion_health_check/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_ingestion_health_check/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f56940d479c012b46c39b77e5d4bf9427e65b7f0 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_ingestion_health_check/config.xml @@ -0,0 +1,70 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.8.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/ops/druid/Jenkinsfile.druidingestionalert</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_segment_health_check/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_segment_health_check/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..5315e4d56302a0b4006e03b5e4cc57eef5b77d43 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Druid_segment_health_check/config.xml @@ -0,0 +1,74 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.TimerTrigger> + <spec>H/15 * * * *</spec> + </hudson.triggers.TimerTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.8.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/ops/druid/Jenkinsfile.druidsegmentalert</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLDruidContentIndexer/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLDruidContentIndexer/config.xml index d6bcdef93cb1fdbbb1a8a136935327beb6b0b2f2..6d9f4e68aeb197b0de831ec6c248a5b1cb0eaaa8 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLDruidContentIndexer/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLDruidContentIndexer/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,107 +31,111 @@ <defaultValue>Deploy/dev/DataPipeline/ETLJobs</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-9061667106947</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLDruidContentIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLDruidContentIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-9061670571657</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLDruidContentIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLDruidContentIndexer</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-9061673103864</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLDruidContentIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLDruidContentIndexer</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLDruidContentIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLDruidContentIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> @@ -146,36 +149,37 @@ Default Druid content indexer job will run as cron.</b></font></desc </a> </choices> </hudson.model.ChoiceParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLDruidContentIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLDruidContentIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> <hudson.model.ChoiceParameterDefinition> <name>invoke_type</name> <description><font color=dimgray size=2><b> -If you select the "execute script from the invoke_type drop down then choose which script you want to execute."</b></font></description> +If you select the "execute script from the invoke_type drop down then choose which script you want to execute."</b></font></description> <choices class="java.util.Arrays$ArrayList"> <a class="string-array"> <string>execute-script</string> @@ -184,15 +188,16 @@ If you select the "execute script from the invoke_type drop down then choos </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <hudson.triggers.TimerTrigger> @@ -201,8 +206,8 @@ If you select the "execute script from the invoke_type drop down then choos </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -211,7 +216,7 @@ If you select the "execute script from the invoke_type drop down then choos </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -220,7 +225,7 @@ If you select the "execute script from the invoke_type drop down then choos <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml index f559a8b3007d138fea8c435cb1755566251b8d70..3951b1ca18b640de5a16639b6b236d53250f06b2 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLJobs/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -46,7 +45,7 @@ Please select the action deploy or execute script.</b></font></descr <hudson.model.ChoiceParameterDefinition> <name>script_to_run</name> <description><font color=dimgray size=2><b> -If you select the "execute script from the invoke_type drop down then choose which script you want to execute."</b></font></description> +If you select the "execute script from the invoke_type drop down then choose which script you want to execute."</b></font></description> <choices class="java.util.Arrays$ArrayList"> <a class="string-array"> <string>USER_CACHE_INDEXER</string> @@ -56,151 +55,157 @@ If you select the "execute script from the invoke_type drop down then choos </a> </choices> </hudson.model.ChoiceParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-9061667106947</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLJobs</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-9061670571657</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLJobs</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-9061673103864</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLJobs</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLJobs</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLJobs</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/DataPipeline/ETLJobs</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -212,8 +217,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -231,7 +236,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLUserCacheIndexer/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLUserCacheIndexer/config.xml index 553749d1f5135b5a86dfc6f5282e28e1998b9cba..169267af786c49ddeefa561261b3a8a0fe438ecc 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLUserCacheIndexer/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/ETLUserCacheIndexer/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,107 +31,111 @@ <defaultValue>Deploy/dev/DataPipeline/ETLJobs</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-9061667106947</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLUserCacheIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLUserCacheIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-9061670571657</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLUserCacheIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLUserCacheIndexer</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-9061673103864</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLUserCacheIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLUserCacheIndexer</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLUserCacheIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLUserCacheIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> @@ -146,29 +149,30 @@ user cache indexer script will run.</b></font></description> </a> </choices> </hudson.model.ChoiceParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ETLUserCacheIndexer</projectName> + <projectFullName>Deploy/dev/DataPipeline/ETLUserCacheIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> @@ -182,17 +186,39 @@ Please select the action deploy or execute script.</b></font></descr </a> </choices> </hudson.model.ChoiceParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>date</name> + <description><font color=dimgray size=2><b> + Mention the Date in (YYYY-MM-DD) formate to load all the user data from this specific date of cassandra to redis</b></font></description> + <defaultValue>"null"</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>user_id</name> + <description><font color=dimgray size=2><b> + Mention the user id to populate the data in the redis</b></font></description> + <defaultValue>"null"</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>populate_anonymous_user</name> + <description><font color=dimgray size=2><b> + Mention the true/false to migrate the existing redis user data</b></font></description> + <defaultValue>"false"</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <hudson.triggers.TimerTrigger> @@ -201,8 +227,8 @@ Please select the action deploy or execute script.</b></font></descr </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -220,7 +246,7 @@ Please select the action deploy or execute script.</b></font></descr <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/EdDataProducts/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/EdDataProducts/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..800cf6995ec5a15a83aa4f2e6e8554ea16701e41 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/EdDataProducts/config.xml @@ -0,0 +1,238 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/EdDataProducts</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>EdDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/EdDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>EdDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/EdDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>EdDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/EdDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>EdDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/EdDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>EdDataProducts</projectName> + <projectFullName>Deploy/dev/DataPipeline/EdDataProducts</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>module</name> + <description><font color=dimgray size=2><b>It will deploy only lpa_core_dp_artifacts(batch-models & job-manager) jar.</b></font></description> + <defaultValue>ed-dataproducts</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>remote</name> + <description/> + <defaultValue>spark</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/EdDataProducts</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/ed-dataproducts/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..37878bceb0a6bc58ffd0aab0908d2987fd73cf4b --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/FlinkPipelineJobs/config.xml @@ -0,0 +1,172 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>FlinkPipelineJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/FlinkPipelineJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>FlinkPipelineJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/FlinkPipelineJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/FlinkPipelineJobs</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>job_names_to_deploy</name> + <description><font color=green size=2><b>Choose the job names to deploy. Multi-selection is available.</b></font></description> + <randomName>choice-parameter-1273072434092073</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return['telemetry-extractor', +'pipeline-preprocessor', +'druid-validator', +'assessment-aggregator', +'content-cache-updater', +'de-normalization-primary', +'de-normalization-secondary', +'user-cache-updater-v2', +'summary-denormalization', +'error-denormalization', +'device-profile-updater']</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>FlinkPipelineJobs</projectName> + <projectFullName>Deploy/dev/DataPipeline/FlinkPipelineJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/kaali09/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/GraphitePrometheusExporter/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/GraphitePrometheusExporter/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..bfe7fe3b672d0172f609b5ae3199e24161eac272 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/GraphitePrometheusExporter/config.xml @@ -0,0 +1,127 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>GraphitePrometheusExporter</projectName> + <projectFullName>Deploy/dev/DataPipeline/GraphitePrometheusExporter</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>GraphitePrometheusExporter</projectName> + <projectFullName>Deploy/dev/DataPipeline/GraphitePrometheusExporter</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/provision/graphite-exporter/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/InfraMonitoring/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/InfraMonitoring/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..957182101826c5e4a0822d28ddeb93eb5b0db830 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/InfraMonitoring/config.xml @@ -0,0 +1,129 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.32"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-188158799721702</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.57"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.57"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Monitoring</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-188158802464010</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.57"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.57"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Monitoring</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec></spec> + <upstreamProjects></upstreamProjects> + <threshold> + <name>FAILURE</name> + <ordinal>2</ordinal> + <color>RED</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/monitor/DataPipeline/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/InternalKong/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/InternalKong/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..371779b6f3144fe19628d247526b35e613ced866 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/InternalKong/config.xml @@ -0,0 +1,180 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/APIManager</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>InternalKong</projectName> + <projectFullName>Deploy/dev/DataPipeline/InternalKong</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>option</name> + <description></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>onboard-apis</string> + <string>onboard-consumers</string> + <string>deploy-internal-kong</string> + <string>provision-kong-db</string> + <string>bootstrap-swarm</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>InternalKong</projectName> + <projectFullName>Deploy/dev/DataPipeline/InternalKong</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>InternalKong</projectName> + <projectFullName>Deploy/dev/DataPipeline/InternalKong</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/ekstep/sunbird-devops.git</url> + <credentialsId>githubPassword</credentialsId> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.10.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/internal-kong/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaIndexer/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaIndexer/config.xml index 906b7afeb9955f7b92bd205b364b0408a73c5b67..e599b6964b6f24b1048d47fd7597ae7cf5be2a5d 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaIndexer/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaIndexer/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,82 +25,83 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188153004575082</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaIndexer</projectName> <projectFullName>Deploy/dev/DataPipeline/KafkaIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188153015326365</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaIndexer</projectName> <projectFullName>Deploy/dev/DataPipeline/KafkaIndexer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/manjudr/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>flink-logstash-setup</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -110,7 +110,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaSetup/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaSetup/config.xml index 6a96ea641afc3a29135c7017103f9d915882a745..aa1b537b89ccd45bdde21f80ae48b696e271e234 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaSetup/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/KafkaSetup/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,73 +25,74 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188157054642539</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaSetup</projectName> <projectFullName>Deploy/dev/DataPipeline/KafkaSetup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188157057910170</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaSetup</projectName> <projectFullName>Deploy/dev/DataPipeline/KafkaSetup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_UNORDERED_LIST</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -101,7 +101,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -110,7 +110,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Logging/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Logging/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..490a9ba60811c8ad329514db3745a22877c224d8 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Logging/config.xml @@ -0,0 +1,145 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Logging</projectName> + <projectFullName>Deploy/dev/DataPipeline/Logging</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Logging</projectName> + <projectFullName>Deploy/dev/DataPipeline/Logging</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>chartname</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>fluentd-elasticsearch</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>logging</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/kaali09/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.2.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/logging/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/LoggingFileBeatsVM/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/LoggingFileBeatsVM/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6d70dacf019259866eb98c61c3702f8d33e3c8cc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/LoggingFileBeatsVM/config.xml @@ -0,0 +1,175 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-6494533480752662</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-6494533482836034</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.ChoiceParameter plugin="uno-choice@2.5.1"> + <name>hosts</name> + <description><font color=dimgray size=2><b>Choose the host groups to deploy filbeat. You can add additonal host groups if you have more or different group names</b></font></description> + <randomName>choice-parameter-6494533485540097</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>return ['cassandra', +'composite-search-cluster', +'dial', +'dp-cassandra', +'dp-redis', +'es', +'influxdb', +'ingestion-cluster-kafka', +'ingestion-cluster-zookeeper', +'kafka-indexer', +'keycloak', +'learningall', +'learning-neo4j-cluster', +'lms-redis', +'log-es', +'lp-cassandra', +'lp-redis', +'postgres', +'processing-cluster-kafka', +'redis-metadata', +'secor', +'spark', +'telemetry-indexer-logstash', +'zookeeper']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.ChoiceParameter> + <org.biouno.unochoice.ChoiceParameter plugin="uno-choice@2.5.1"> + <name>tags</name> + <description><font color=dimgray size=2><b>Select this only if you want to start or stop. Use default for deploying filebeat</b></font></description> + <randomName>choice-parameter-6563905181834747</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>return['default', +'start-filebeat', +'stop-filebeat']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.ChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.87"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.5.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/logger/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..4772e037c5122ea4ab33b8ee208a44cea6fb3cbc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml @@ -0,0 +1,97 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.31"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=black size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/ml-workbench</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, latest built image will be deployed.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec></spec> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/ml-workbench</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/ml-workbench/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Monitoring/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Monitoring/config.xml index dcfdb361be4b025a3a1f1fde84626f4a093eccda..2f345e87ea534bd6d435c2e494db24208d513963 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Monitoring/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Monitoring/config.xml @@ -1,112 +1,122 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> - <actions/> - <description></description> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>private_branch</name> - <description></description> - <randomName>choice-parameter-188158799721702</randomName> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Monitoring</projectName> + <projectFullName>Deploy/dev/DataPipeline/Monitoring</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>branch_or_tag</name> - <description></description> - <randomName>choice-parameter-188158802464010</randomName> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Monitoring</projectName> + <projectFullName>Deploy/dev/DataPipeline/Monitoring</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>tag</name> + <description/> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>kubeconfigpath</name> + <description/> + <defaultValue>/var/lib/jenkins/secrets/dp-k8s.yml</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> - <triggers> - <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> - <upstreamProjects></upstreamProjects> - <threshold> - <name>FAILURE</name> - <ordinal>2</ordinal> - <color>RED</color> - <completeBuild>true</completeBuild> - </threshold> - </jenkins.triggers.ReverseBuildTrigger> - </triggers> + <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-devops.git</url> + <url>https://github.com/kaali09/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.5.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -115,15 +125,15 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> - <depth>1</depth> + <reference/> + <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> </extensions> </scm> - <scriptPath>pipelines/deploy/monitor/DataPipeline/Jenkinsfile</scriptPath> + <scriptPath>kubernetes/pipelines/monitoring/Jenkinsfile</scriptPath> <lightweight>false</lightweight> </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/PipelineFlinkSummaryDenormStart/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/PipelineFlinkSummaryDenormStart/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..95b4d9536fef0b779d177575676ad5b6fb87e84b --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/PipelineFlinkSummaryDenormStart/config.xml @@ -0,0 +1,139 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SummaryDenormStart</projectName> + <projectFullName>Deploy/dev/DataPipeline/SummaryDenormStart</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SummaryDenormStart</projectName> + <projectFullName>Deploy/dev/DataPipeline/SummaryDenormStart</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>job_names</name> + <description/> + <defaultValue>summary-denormalization</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>action</name> + <description/> + <defaultValue>scaleup_taskmanager,scaleup_jobmanager</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/kaali09/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy/Jenkinsfile.startstop</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/PipelineFlinkSummaryDenormStop/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/PipelineFlinkSummaryDenormStop/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6af02c0417cb13504223f4a5f55b93547df80285 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/PipelineFlinkSummaryDenormStop/config.xml @@ -0,0 +1,139 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SummaryDenormStop</projectName> + <projectFullName>Deploy/dev/DataPipeline/SummaryDenormStop</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SummaryDenormStop</projectName> + <projectFullName>Deploy/dev/DataPipeline/SummaryDenormStop</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>job_names</name> + <description/> + <defaultValue>summary-denormalization</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>action</name> + <description/> + <defaultValue>scaledown_taskmanager,scaledown_jobmanager</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/kaali09/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy/Jenkinsfile.startstop</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/RunReportJob/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/RunReportJob/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..547afa21985d492f26abbbd8ce6d1d4102ed87fc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/RunReportJob/config.xml @@ -0,0 +1,130 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>report_id</name> + <description><font color=dimgray size=2><b>Specify the job id.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RunReportJob</projectName> + <projectFullName>Deploy/dev/DataPipeline/RunReportJob</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RunReportJob</projectName> + <projectFullName>Deploy/dev/DataPipeline/RunReportJob</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/RevathiKotla/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.2.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/druid-run-report-job/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SamzaTelemetrySchemas/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SamzaTelemetrySchemas/config.xml index fa3c7e23852364bccca76316602cbd536f78e777..6256fb7ba02437a04939ac90e6a611a89f6329c6 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SamzaTelemetrySchemas/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SamzaTelemetrySchemas/config.xml @@ -1,26 +1,25 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -32,71 +31,74 @@ <defaultValue>${branch_or_tag}</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.53"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.53"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>SamzaTelemetrySchemas</projectName> + <projectFullName>Deploy/dev/DataPipeline/SamzaTelemetrySchemas</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.53"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.53"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>SamzaTelemetrySchemas</projectName> + <projectFullName>Deploy/dev/DataPipeline/SamzaTelemetrySchemas</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -105,7 +107,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.9.1</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -114,7 +116,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -125,4 +127,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SecorFlink/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SecorFlink/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..619c3cac5d15fd06a132f1335398f9b5fab39dd5 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SecorFlink/config.xml @@ -0,0 +1,226 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/DataPipeline/Secor</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SecorFlink</projectName> + <projectFullName>Deploy/dev/DataPipeline/SecorFlink</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SecorFlink</projectName> + <projectFullName>Deploy/dev/DataPipeline/SecorFlink</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SecorFlink</projectName> + <projectFullName>Deploy/dev/DataPipeline/SecorFlink</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SecorFlink</projectName> + <projectFullName>Deploy/dev/DataPipeline/SecorFlink</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SecorFlink</projectName> + <projectFullName>Deploy/dev/DataPipeline/SecorFlink</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/DataPipeline/Secor</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/maheshkumargangula/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.1.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/secor/Jenkinsfile.flink</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SubmitReportJob/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SubmitReportJob/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..182356ec8e36bbced4297d4c7873b57f846ba133 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/SubmitReportJob/config.xml @@ -0,0 +1,154 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>report_id</name> + <description/> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>report_schedule</name> + <description/> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>report_config</name> + <description><font color=dimgray size=2><b>Specify the report config json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>report_filepath</name> + <description/> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>report_description</name> + <description/> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SubmitReportJob</projectName> + <projectFullName>Deploy/dev/DataPipeline/SubmitReportJob</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SubmitReportJob</projectName> + <projectFullName>Deploy/dev/DataPipeline/SubmitReportJob</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.10.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/druid-report-run-job/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml index 7a1bcd77f96dfb0fab1830d4a54033420b8214cf..1001dab76c35c42ef21f801352dfb67b55949a0c 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,21 +32,21 @@ <defaultValue>ArtifactUpload/dev/DataPipeline/DataPipeline</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-9061667106947</randomName> - <visibleItemCount>1</visibleItemCount> + <visibleItemCount>2</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>return[ 'JenkinsJob', 'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script></script> <sandbox>false</sandbox> </secureFallbackScript> @@ -59,13 +59,13 @@ ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrif <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> <description></description> <randomName>choice-parameter-9061670571657</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>if (artifact_source.equals("JenkinsJob")) { return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } @@ -75,25 +75,30 @@ return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script></script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Yarn</projectName> <projectFullName>Deploy/dev/DataPipeline/Yarn</projectFullName> - <parameters class="linked-hash-map"/> + <parameters class="linked-hash-map"> + <entry> + <string>artifact_source</string> + <string>JenkinsJob</string> + </entry> + </parameters> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> <description></description> <randomName>choice-parameter-9061673103864</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>if (artifact_source.equals("ArtifactRepo")) { return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } @@ -102,25 +107,30 @@ return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script></script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Yarn</projectName> <projectFullName>Deploy/dev/DataPipeline/Yarn</projectFullName> - <parameters class="linked-hash-map"/> + <parameters class="linked-hash-map"> + <entry> + <string>artifact_source</string> + <string>JenkinsJob</string> + </entry> + </parameters> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> <description></description> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -128,7 +138,7 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> @@ -140,13 +150,13 @@ return """<b>This parameter is not used</b>"&quo <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; @@ -155,7 +165,7 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> @@ -167,13 +177,13 @@ return """<b>This parameter is not used</b>"&quo <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>job_names_to_deploy</name> <description><font color=green size=2><b>Choose the samza app names to deploy and this will kill the selected samza app and deploy them. Multi selection is available.</b></font></description> <randomName>choice-parameter-8026182213525059</randomName> - <visibleItemCount>1</visibleItemCount> + <visibleItemCount>14</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>return ['DeDuplication_1', 'DeNormalization_1', 'DruidEventsValidator_1', @@ -190,7 +200,7 @@ return """<b>This parameter is not used</b>"&quo 'DerivedDeDuplication_1']</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> + <secureFallbackScript plugin="script-security@1.71"> <script></script> <sandbox>false</sandbox> </secureFallbackScript> @@ -205,7 +215,7 @@ return """<b>This parameter is not used</b>"&quo </org.biouno.unochoice.CascadeChoiceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> @@ -213,13 +223,14 @@ return """<b>This parameter is not used</b>"&quo <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> <paramsToUseForLimit></paramsToUseForLimit> + <configVersion>1</configVersion> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -228,7 +239,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.10.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -247,5 +258,5 @@ return """<b>This parameter is not used</b>"&quo <lightweight>false</lightweight> </definition> <triggers/> - <disabled>false</disabled> + <disabled>true</disabled> </flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/config.xml index 68477b8ac7421fc78d69182df3125c9ab3412fdf..92618cba962f72c6132bd317b68ff0d74bfe0605 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.7"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.4.1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.13"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/AssetSizeMigration/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/AssetSizeMigration/config.xml index 5dbac72126b615a184b4a89e8835cfda356de4a3..d6752cc7af088b1f8d980c5eea8dc659a3251f0b 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/AssetSizeMigration/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/AssetSizeMigration/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraDbUpdate/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraDbUpdate/config.xml index 651ff3f5d5cdc985d0c467291a8ffb4bbce34315..0700be4aa4618dfe686e5ac9ee48a7cccfce7509 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraDbUpdate/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraDbUpdate/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,74 +25,77 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188160224505093</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraDbUpdate</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/CassandraDbUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188160228215280</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraDbUpdate</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/CassandraDbUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -102,7 +104,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml index d4d9795999ab188041f176ecc9b547c9cbbedd12..25ea50fffa9884b2ff553b8c717c497d52d6a9b9 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraTrigger/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ContentTool/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ContentTool/config.xml index 71cb4c9b3b069185798acb88996433bd4121f56b..21acd2aedf9ab4e63a60a8686756a22dffd0703c 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ContentTool/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ContentTool/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e4c0e725ca2ba6ddeef7b073e5bc165e50da4d40 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml @@ -0,0 +1,226 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/KnowledgePlatform/Dial</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-14760318274338</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Dial</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Dial</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-14760320375443</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Dial</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Dial</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-14760322347747</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Dial</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Dial</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Dial</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Dial</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Dial</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Dial</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/KnowledgePlatform/Dial</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/dial/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ESMapping/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ESMapping/config.xml index 415af374cffd07a0f4f7c96b6c2ccb59e7256b34..31ab3671b8b990d303807a0cb0b91b63b647829c 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ESMapping/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ESMapping/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/FileSyncTool/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/FileSyncTool/config.xml index 1a51b321ad9a1102a0dfeab3d9506cae75587a62..282b3a268ad1291265598f15a445d0ceebf065ad 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/FileSyncTool/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/FileSyncTool/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..2ade746534e30b63fde39eb449f1fa1ada7c9d23 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/FlinkJobs/config.xml @@ -0,0 +1,167 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>FlinkJobs</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/FlinkJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>FlinkJobs</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/FlinkJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/KnowledgePlatform/FlinkJobs</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>job_names_to_deploy</name> + <description><font color=green size=2><b>Choose the job names to deploy. Multi-selection is available.</b></font></description> + <randomName>choice-parameter-1273072434092073</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return['activity-aggregate-updater', +'relation-cache-updater', +'post-publish-processor', +'post-certificate-processor', +'certificate-generator', +'certificate-pre-processor']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>FlinkJobs</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/FlinkJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>flink-fix</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/InsertQRCode/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/InsertQRCode/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e8e72223a57e4c460e08645272aa563d3a7cf6ac --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/InsertQRCode/config.xml @@ -0,0 +1,140 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>InsertQRCode</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/InsertQRCode</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>InsertQRCode</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/InsertQRCode</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>channel_name</name> + <description>Provide the channel name</description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>date</name> + <description>Provide the current date in below format. +2019-10-17T10:00:00.000</description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/dial/Jenkinsfile.insert</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/KafkaSetup/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/KafkaSetup/config.xml index 979e769aa0bcc5cdd2a0eb70ac020d6ef7206b7c..6aba98d056c27b00868b2e0eaebc9325edbc8ee7 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/KafkaSetup/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/KafkaSetup/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.33"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,74 +25,77 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188161640748171</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaSetup</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/KafkaSetup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188161652021198</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>KafkaSetup</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/KafkaSetup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.11.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -102,7 +104,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml index a5af84b20f5ba09653d69a11f02c32404d39b338..a7e85c5622d6ee83934ee2c61e98d93ac8fa3130 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml @@ -1,22 +1,21 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,51 +31,51 @@ <defaultValue>ArtifactUpload/dev/KnowledgePlatform/KnowledgePlatform</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.5.1"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-12566219493457</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.75"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.75"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Learning</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Learning</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-12566221440336</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.75"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.75"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -87,23 +86,23 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-12566223395914</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.75"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.75"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -114,74 +113,75 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Learning</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Learning</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Learning</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Learning</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/KnowledgePlatform/KnowledgePlatform</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -193,8 +193,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -203,7 +203,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.5.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -212,7 +212,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/LoggingFileBeatsVM/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/LoggingFileBeatsVM/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6d70dacf019259866eb98c61c3702f8d33e3c8cc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/LoggingFileBeatsVM/config.xml @@ -0,0 +1,175 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-6494533480752662</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-6494533482836034</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.ChoiceParameter plugin="uno-choice@2.5.1"> + <name>hosts</name> + <description><font color=dimgray size=2><b>Choose the host groups to deploy filbeat. You can add additonal host groups if you have more or different group names</b></font></description> + <randomName>choice-parameter-6494533485540097</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>return ['cassandra', +'composite-search-cluster', +'dial', +'dp-cassandra', +'dp-redis', +'es', +'influxdb', +'ingestion-cluster-kafka', +'ingestion-cluster-zookeeper', +'kafka-indexer', +'keycloak', +'learningall', +'learning-neo4j-cluster', +'lms-redis', +'log-es', +'lp-cassandra', +'lp-redis', +'postgres', +'processing-cluster-kafka', +'redis-metadata', +'secor', +'spark', +'telemetry-indexer-logstash', +'zookeeper']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.ChoiceParameter> + <org.biouno.unochoice.ChoiceParameter plugin="uno-choice@2.5.1"> + <name>tags</name> + <description><font color=dimgray size=2><b>Select this only if you want to start or stop. Use default for deploying filebeat</b></font></description> + <randomName>choice-parameter-6563905181834747</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>return['default', +'start-filebeat', +'stop-filebeat']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LoggingFileBeatsVM</projectName> + <projectFullName>Deploy/staging/Kubernetes/LoggingFileBeatsVM</projectFullName> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.ChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.87"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.5.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/logger/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Monitoring/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Monitoring/config.xml index a12d3f0783a31a9b19fd4b37e8ec0000e6f17338..cc7259165a536b1252bf10d23868a2b944eca1b6 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Monitoring/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Monitoring/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml index d631a65b70ccdda2676f46e52beaea43eb5ff2dc..672697c8a6a4da486797f8d5ab366b4fc2b3ab11 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,19 +7,19 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -32,153 +31,159 @@ <defaultValue>ArtifactUpload/dev/KnowledgePlatform/Neo4j</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-13436883643465</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4j</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4j</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-13436885688258</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4j</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4j</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-13436888536349</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4j</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4j</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4j</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4j</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4j</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4j</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -196,7 +201,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jDefinitionUpdate/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jDefinitionUpdate/config.xml index b2b030f6648b78349028dc4dec455cfad34087c5..85bb8d7f511bf9746450b31d5ee4c1c8c274d958 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jDefinitionUpdate/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jDefinitionUpdate/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,76 +25,77 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188174424977419</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jDefinitionUpdate</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Neo4jDefinitionUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188174429374717</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jDefinitionUpdate</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Neo4jDefinitionUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -104,7 +104,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -113,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jElasticSearchSyncTool/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jElasticSearchSyncTool/config.xml index be8578de2e32b993772dde4914556afb3293c77d..186b913653cfb2bcca5ecda1cfaadefe8898db59 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jElasticSearchSyncTool/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jElasticSearchSyncTool/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,80 +31,83 @@ <defaultValue>ArtifactUpload/dev/KnowledgePlatform/SyncTool</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-14175006770414</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jElasticSearchSyncTool</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4jElasticSearchSyncTool</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-14175008677110</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jElasticSearchSyncTool</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4jElasticSearchSyncTool</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-14175010584707</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jElasticSearchSyncTool</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4jElasticSearchSyncTool</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -126,6 +128,10 @@ return "<b>Not Applicable</b>" <string>syncbatch</string> <string>migratequestionextproperties</string> <string>migrate-dialcodeRequired</string> + <string>syncecml</string> + <string>migratecoursetype</string> + <string>syncdialcodes</string> + <string>sync-collection-rel-cache</string> </a> </choices> </hudson.model.ChoiceParameterDefinition> @@ -142,74 +148,77 @@ return "<b>Not Applicable</b>" <defaultValue>--ids</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jElasticSearchSyncTool</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4jElasticSearchSyncTool</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jElasticSearchSyncTool</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/Neo4jElasticSearchSyncTool</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -218,7 +227,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -227,7 +236,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml index 434510f8e9c0c81ce1c533002e5af73ca7a59ce3..67cabd05f8d0a9d51718bdc17ccc93feab6c21e6 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -203,7 +203,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.9.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StartNeo4jCluster/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StartNeo4jCluster/config.xml index 5e3b9a03388059f0b4fa13bde9fe9ebde5618ba6..b76e3665b0633b84f442c22d72a28d6968431c9a 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StartNeo4jCluster/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StartNeo4jCluster/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,92 +7,95 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-188176807343905</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>StartNeo4jCluster</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/StartNeo4jCluster</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-188176809967474</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>StartNeo4jCluster</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/StartNeo4jCluster</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StopNeo4jCluster/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StopNeo4jCluster/config.xml index 7bb9a7a064a319ce79d4894ded1b3f42b564d601..721b7333cbed7c01c56288e71f199ef80934f969 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StopNeo4jCluster/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/StopNeo4jCluster/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/SyncQRCode/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/SyncQRCode/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..bda4633dee9c8803ca91b35148e8f88fd23c67be --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/SyncQRCode/config.xml @@ -0,0 +1,127 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SyncQRCode</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/SyncQRCode</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>SyncQRCode</projectName> + <projectFullName>Deploy/dev/KnowledgePlatform/SyncQRCode</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/dial/Jenkinsfile.sync</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ValidateLearning/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ValidateLearning/config.xml index 70cf30e77618e06a2e96c201b9b30a1cb6fc9783..4384eb1ce25d637921056fcfbd57f5d018fe01cb 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ValidateLearning/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/ValidateLearning/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml index af5b7e4c3c948d99b98ba4eca8e686443488c83f..b6d9320d4326de58f0048a249ce77309663233d8 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -32,51 +31,51 @@ <defaultValue>ArtifactUpload/dev/KnowledgePlatform/Yarn</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-2874232768088857</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Yarn</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Yarn</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-2874449088885218</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -87,23 +86,23 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-2877900313772031</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -114,74 +113,75 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Yarn</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Yarn</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Yarn</projectName> <projectFullName>Deploy/dev/KnowledgePlatform/Yarn</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/KnowledgePlatform/Yarn</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -193,8 +193,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -203,7 +203,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.4.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -212,7 +212,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..4506aeec7c17782fec69bbb6c69c7b683b2dea53 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/config.xml @@ -0,0 +1,34 @@ +<?xml version='1.1' encoding='UTF-8'?> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> + <actions/> + <description></description> + <properties> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> + <dockerLabel></dockerLabel> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> + <org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty plugin="config-file-provider@3.6.3"> + <configs class="sorted-set"> + <comparator class="org.jenkinsci.plugins.configfiles.ConfigByIdComparator"/> + </configs> + </org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty> + </properties> + <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> + <views> + <hudson.model.AllView> + <owner class="com.cloudbees.hudson.plugins.folder.Folder" reference="../../../.."/> + <name>All</name> + <filterExecutors>false</filterExecutors> + <filterQueue>false</filterQueue> + <properties class="hudson.model.View$PropertyList"/> + </hudson.model.AllView> + </views> + <tabBar class="hudson.views.DefaultViewsTabBar"/> + </folderViews> + <healthMetrics> + <com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + <nonRecursive>false</nonRecursive> + </com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric> + </healthMetrics> + <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/> +</com.cloudbees.hudson.plugins.folder.Folder> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/APIManager/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/APIManager/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..fe91de3687de7cafa1e6d54bff1adea150e6f49a --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/APIManager/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/APIManager</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>APIManager</projectName> + <projectFullName>Deploy/dev/Kubernetes/APIManager</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>APIManager</projectName> + <projectFullName>Deploy/dev/Kubernetes/APIManager</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>Deploy/dev/Core/APIManager</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/APIManagerEcho/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/APIManagerEcho/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..560e0cbce485be1453b7ca8116d7896c2003a851 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/APIManagerEcho/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/APIManagerEcho</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>APIManagerEcho</projectName> + <projectFullName>Deploy/dev/Kubernetes/APIManagerEcho</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>APIManagerEcho</projectName> + <projectFullName>Deploy/dev/Kubernetes/APIManagerEcho</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/APIManagerEcho</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/AdminUtils/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/AdminUtils/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..ebaedb2e34e99de954a91f2580c4b2274067976f --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/AdminUtils/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/AdminUtils</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AdminUtils</projectName> + <projectFullName>Deploy/dev/Kubernetes/AdminUtils</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>AdminUtils</projectName> + <projectFullName>Deploy/dev/Kubernetes/AdminUtils</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>Deploy/dev/Core/AdminUtils</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Analytics/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Analytics/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..48270103c3807f4bcf5c968becc0e908efff779d --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Analytics/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Analytics</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Analytics</projectName> + <projectFullName>Deploy/dev/Kubernetes/Analytics</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Analytics</projectName> + <projectFullName>Deploy/dev/Kubernetes/Analytics</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Analytics</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/ApplicationElasticSearch/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/ApplicationElasticSearch/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..766a8ce2f063e3cbcf0fbf9b212eddd59bcf1f3b --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/ApplicationElasticSearch/config.xml @@ -0,0 +1,117 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-186487879604743</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="db_restore" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>ApplicationElasticSearch</projectName> + <projectFullName>Deploy/dev/Kubernetes/ApplicationElasticSearch</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-186487885338467</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>ApplicationElasticSearch</projectName> + <projectFullName>Deploy/dev/Kubernetes/ApplicationElasticSearch</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/application-elasticsearch/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Assessment/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Assessment/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f0ecf32f7d3459d0e2df7a805ce7c2e8eb72c992 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Assessment/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Assessment</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Assessment</projectName> + <projectFullName>Deploy/dev/Kubernetes/Assessment</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Assessment</projectName> + <projectFullName>Deploy/dev/Kubernetes/Assessment</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Assessment</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Badger/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Badger/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..5a49dbdceb094ba3a2f89d3ba4c814477e9fef82 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Badger/config.xml @@ -0,0 +1,156 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Badger</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Badger</projectName> + <projectFullName>Deploy/dev/Kubernetes/Badger</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Badger</projectName> + <projectFullName>Deploy/dev/Kubernetes/Badger</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>role_name</name> + <description/> + <defaultValue>deploy-badger</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Badger</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/BootstrapCluster/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/BootstrapCluster/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..df5bc0fe50626e6abd856f4291a09c14db9db85f --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/BootstrapCluster/config.xml @@ -0,0 +1,127 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>BootstrapCluster</projectName> + <projectFullName>Deploy/dev/Kubernetes/BootstrapCluster</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>BootstrapCluster</projectName> + <projectFullName>Deploy/dev/Kubernetes/BootstrapCluster</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.8.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/bootstrap_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>true</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/BootstrapMinimal/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/BootstrapMinimal/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..86084333e417021fe9ef416f1d2dc2a3eeaa51df --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/BootstrapMinimal/config.xml @@ -0,0 +1,57 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/bootstrap_minimal/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Cassandra/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Cassandra/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..8445a39d0e4f682696a92625bb86bcc59e085cae --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Cassandra/config.xml @@ -0,0 +1,219 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Cassandra</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9600649228560</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Cassandra</projectName> + <projectFullName>Deploy/dev/Kubernetes/Cassandra</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9600651313765</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Cassandra</projectName> + <projectFullName>Deploy/dev/Kubernetes/Cassandra</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9600653373369</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Cassandra</projectName> + <projectFullName>Deploy/dev/Kubernetes/Cassandra</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Cassandra</projectName> + <projectFullName>Deploy/dev/Kubernetes/Cassandra</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Cassandra</projectName> + <projectFullName>Deploy/dev/Kubernetes/Cassandra</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Cassandra</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/cassandra-deploy/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CassandraDBUpdate/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CassandraDBUpdate/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..cacaa806fcff41567a01dbd2287ab392769c7e2d --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CassandraDBUpdate/config.xml @@ -0,0 +1,129 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-9675060449018219</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraDBUpdate</projectName> + <projectFullName>Deploy/dev/Core/CassandraDBUpdate</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-9675060450520341</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraDBUpdate</projectName> + <projectFullName>Deploy/dev/Core/CassandraDBUpdate</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>cql_file_name</name> + <description><font color=dimgray size=2><b>enter the cql file name from templates folder <br> + templates frolder from the ansible role : <br> + sunbird-devops/ansible/roles/cassandra-db-update/templates <br> + </b></font></description> + <defaultValue>alter_externalId_table.cql</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/cassandra_db_update/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CassandraDecrypt/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CassandraDecrypt/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f091b47fb3422d284fe81f907cebfbe6db8cca03 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CassandraDecrypt/config.xml @@ -0,0 +1,229 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/CassandraDecrypt</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9600649228560</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraDecrypt</projectName> + <projectFullName>Deploy/dev/Core/CassandraDecrypt</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9600651313765</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraDecrypt</projectName> + <projectFullName>Deploy/dev/Core/CassandraDecrypt</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9600653373369</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraDecrypt</projectName> + <projectFullName>Deploy/dev/Core/CassandraDecrypt</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraDecrypt</projectName> + <projectFullName>Deploy/dev/Core/CassandraDecrypt</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraDecrypt</projectName> + <projectFullName>Deploy/dev/Core/CassandraDecrypt</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>cassandra_jar_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>groups-service-util-1.0-SNAPSHOT-jar-with-dependencies.jar</string> + <string>user-declaration-util-1.0-SNAPSHOT-jar-with-dependencies.jar</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/CassandraDecrypt</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/cassandra-deploy/Jenkinsfile.decrypt</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Cert/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Cert/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e2fa6869fb257d2bb4e760838fc7fb0e0fe29e99 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Cert/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Cert</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Cert</projectName> + <projectFullName>Deploy/dev/Kubernetes/Cert</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Cert</projectName> + <projectFullName>Deploy/dev/Kubernetes/Cert</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Cert</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CertRegistry/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CertRegistry/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..d88da2db635a2e9626a23977f006b08fc485a52f --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/CertRegistry/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/CertRegistryService</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CertRegistry</projectName> + <projectFullName>Deploy/dev/Kubernetes/CertRegistry</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CertRegistry</projectName> + <projectFullName>Deploy/dev/Kubernetes/CertRegistry</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/CertRegistryService</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Content/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Content/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..8aa755cdc5a7ede44c03f2ac6de57c896f33699f --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Content/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Content</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Content</projectName> + <projectFullName>Deploy/dev/Kubernetes/Content</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Content</projectName> + <projectFullName>Deploy/dev/Kubernetes/Content</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Content</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Enc/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Enc/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..7c79c007c157fe62ada40957a9d1d824f66f7145 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Enc/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/EncService</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Enc</projectName> + <projectFullName>Deploy/dev/Kubernetes/Enc</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Enc</projectName> + <projectFullName>Deploy/dev/Kubernetes/Enc</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/EncService</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/FuntionalTestCases/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/FuntionalTestCases/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..3db5484d42bde18a82a9ba9a487f20e0fc09d26c --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/FuntionalTestCases/config.xml @@ -0,0 +1,69 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction plugin="pipeline-model-definition@1.6.0"/> + <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction plugin="pipeline-model-definition@1.6.0"> + <jobProperties/> + <triggers/> + <parameters/> + <options/> + </org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.TimerTrigger> + <spec>H 23 * * *</spec> + </hudson.triggers.TimerTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.10.0</name> + </hudson.plugins.git.BranchSpec> + <hudson.plugins.git.BranchSpec> + <name>release-3.0.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Groups/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Groups/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..619cd6c3456241a6801262251b63b6db8a23c9a7 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Groups/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Groups</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Groups</projectName> + <projectFullName>Deploy/dev/Kubernetes/Groups</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Groups</projectName> + <projectFullName>Deploy/dev/Kubernetes/Groups</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Groups</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Hawkeye-superset/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Hawkeye-superset/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e9028d14c392a99cd2dddc12816344a01f96681d --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Hawkeye-superset/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Hawkeye-superset</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Hawkeye-superset</projectName> + <projectFullName>Deploy/dev/Kubernetes/Hawkeye-superset</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Hawkeye-superset</projectName> + <projectFullName>Deploy/dev/Kubernetes/Hawkeye-superset</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>/ArtifactUpload/dev/Core/Hawkeye-superset</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Keycloak/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Keycloak/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..530f56dfc8b0c9e8443557232584af56a9aa592e --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Keycloak/config.xml @@ -0,0 +1,206 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Keycloak</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9600649228560</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Keycloak</projectName> + <projectFullName>Deploy/dev/Kubernetes/Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9600651313765</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Keycloak</projectName> + <projectFullName>Deploy/dev/Kubernetes/Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9600653373369</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Keycloak</projectName> + <projectFullName>Deploy/dev/Kubernetes/Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Keycloak</projectName> + <projectFullName>Deploy/dev/Kubernetes/Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Keycloak</projectName> + <projectFullName>Deploy/dev/Kubernetes/Keycloak</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>sunbird_auth_branch_or_tag</name> + <description><font color=dimgray size=2><b>Provide the branch or tag of sunbird auth repo.</b></font></description> + <defaultValue>release-1.15_RC9</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>keycloak-3.2.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/deploy/keycloak/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KeycloakMigration/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KeycloakMigration/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f34b4e9742044d8562ab8745241105c2207adf74 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KeycloakMigration/config.xml @@ -0,0 +1,173 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Keycloak</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9600649228560</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Kubernetes/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>build_number</name> + <description></description> + <randomName>choice-parameter-9600651313765</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Kubernetes/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>artifact_version</name> + <description></description> + <randomName>choice-parameter-9600653373369</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Kubernetes/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KeycloakMigration</projectName> + <projectFullName>Deploy/dev/Kubernetes/KeycloakMigration</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.5.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/deploy/keycloak-migration/Jenkinsfile</scriptPath> + <lightweight>true</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KnowledgeMW/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KnowledgeMW/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..89018080dc1852865f2e3a4cdc4bda2d2d1caa29 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KnowledgeMW/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/KnowledgeMW</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KnowledgeMW</projectName> + <projectFullName>Deploy/dev/Kubernetes/KnowledgeMW</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KnowledgeMW</projectName> + <projectFullName>Deploy/dev/Kubernetes/KnowledgeMW</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/KnowledgeMW</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KongJWTAdminUtil/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KongJWTAdminUtil/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..54d1fa46bf82d7b3fe3dff9924a06f44572efd08 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/KongJWTAdminUtil/config.xml @@ -0,0 +1,136 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KongJWTAdminUtil</projectName> + <projectFullName>Deploy/dev/Kubernetes/KongJWTAdminUtil</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>KongJWTAdminUtil</projectName> + <projectFullName>Deploy/dev/Kubernetes/KongJWTAdminUtil</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>kong-jwt-create-adminutil</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/kong-jwt-create-adminutil/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Learner/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Learner/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..a79a0679abcb8b9823c41bbe4ecef65f8dfc5ae8 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Learner/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Learner</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Learner</projectName> + <projectFullName>Deploy/dev/Kubernetes/Learner</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Learner</projectName> + <projectFullName>Deploy/dev/Kubernetes/Learner</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Learner</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Lms/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Lms/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..306f28c71e1d7fe5d97d799919b2462512a7770e --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Lms/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Lms</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Lms</projectName> + <projectFullName>Deploy/dev/Kubernetes/Lms</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Lms</projectName> + <projectFullName>Deploy/dev/Kubernetes/Lms</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Lms</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Logging/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Logging/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f123de45ad307b5d7ec64da981e6afd3de2facdc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Logging/config.xml @@ -0,0 +1,149 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Logging</projectName> + <projectFullName>Deploy/dev/Kubernetes/Logging</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Logging</projectName> + <projectFullName>Deploy/dev/Kubernetes/Logging</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>chartname</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>elasticsearch</string> + <string>fluent-bit</string> + <string>kibana</string> + <string>oauth2-proxy</string> + <string>fluentd-elasticsearch</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>logging</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/logging/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Monitoring/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Monitoring/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..275efa8201de08da2e2df6aeff803732ff1dc401 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Monitoring/config.xml @@ -0,0 +1,133 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.22"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Monitoring</projectName> + <projectFullName>Deploy/dev/Kubernetes/Monitoring</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Monitoring</projectName> + <projectFullName>Deploy/dev/Kubernetes/Monitoring</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>tag</name> + <description/> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.5.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/monitoring/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/NetworkConfig/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/NetworkConfig/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..be00b7b2d6df793d75af394d2d3136fe636ba5dc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/NetworkConfig/config.xml @@ -0,0 +1,133 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>NetworkConfig</projectName> + <projectFullName>Deploy/dev/Kubernetes/NetworkConfig</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>NetworkConfig</projectName> + <projectFullName>Deploy/dev/Kubernetes/NetworkConfig</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>playbook</name> + <description>This parameter is optional. By default the playbook will be deploy_core_service.yml</description> + <defaultValue>networkconfig.yaml</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>internal-lb-fix</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/common/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>true</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Nodebb/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Nodebb/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..752aac1666ec506c86742033e0c96688f5ba184d --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Nodebb/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Nodebb</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Nodebb</projectName> + <projectFullName>Deploy/dev/Kubernetes/Nodebb</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Nodebb</projectName> + <projectFullName>Deploy/dev/Kubernetes/Nodebb</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Nodebb</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Notification/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Notification/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..f1aec9208ab882c53ba56e9f7ea87fe0f3cae7c0 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Notification/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Notification</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Notification</projectName> + <projectFullName>Deploy/dev/Kubernetes/Notification</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Notification</projectName> + <projectFullName>Deploy/dev/Kubernetes/Notification</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Notification</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/OnboardAPIs/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/OnboardAPIs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..a6ec25b005925ab18cf0862ac4863fccd801d8a8 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/OnboardAPIs/config.xml @@ -0,0 +1,136 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>OnboardAPIs</projectName> + <projectFullName>Deploy/dev/Kubernetes/OnboardAPIs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>OnboardAPIs</projectName> + <projectFullName>Deploy/dev/Kubernetes/OnboardAPIs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>kong-api</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/onboard-api/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/OnboardConsumers/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/OnboardConsumers/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..10044249b5b4dc324e9c618d2fbbbd24ea9bbea4 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/OnboardConsumers/config.xml @@ -0,0 +1,117 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-186788940114941</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>OnboardConsumers</projectName> + <projectFullName>Deploy/dev/Kubernetes/OnboardConsumers</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-186788943531283</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>OnboardConsumers</projectName> + <projectFullName>Deploy/dev/Kubernetes/OnboardConsumers</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/onboard-consumer/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Player/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Player/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..a28bc0763c8cabe9466c87434b8f3761bd859f98 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Player/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Player</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>true</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Player</projectName> + <projectFullName>Deploy/dev/Kubernetes/Player</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Player</projectName> + <projectFullName>Deploy/dev/Kubernetes/Player</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>deploy-player</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Player</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile.player</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Print/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Print/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..a79315647fa4f3f1bf016aca1a40461dc017d3e8 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Print/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Print</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Print</projectName> + <projectFullName>Deploy/dev/Kubernetes/Print</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Print</projectName> + <projectFullName>Deploy/dev/Kubernetes/Print</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Print</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Report/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Report/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..47bf1e8ee48e9f19916e2d351901e71a9c739806 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Report/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Report</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Report</projectName> + <projectFullName>Deploy/dev/Kubernetes/Report</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Report</projectName> + <projectFullName>Deploy/dev/Kubernetes/Report</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Report</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Search/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Search/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..0ef53825abf47d6832a7738cb0b16d02a8097d4e --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Search/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Search</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Search</projectName> + <projectFullName>Deploy/dev/Kubernetes/Search</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Search</projectName> + <projectFullName>Deploy/dev/Kubernetes/Search</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Search</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Taxonomy/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Taxonomy/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..ef2a23242a663389df7686b2b969e5272fdf7f6f --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Taxonomy/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Taxonomy</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Taxonomy</projectName> + <projectFullName>Deploy/dev/Kubernetes/Taxonomy</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Taxonomy</projectName> + <projectFullName>Deploy/dev/Kubernetes/Taxonomy</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Taxonomy</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Telemetry/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Telemetry/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..ef7c4a9a1ad3bb815dcac1705b295a11f112bbfe --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Telemetry/config.xml @@ -0,0 +1,159 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Telemetry</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Telemetry</projectName> + <projectFullName>Deploy/dev/Kubernetes/Telemetry</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Telemetry</projectName> + <projectFullName>Deploy/dev/Kubernetes/Telemetry</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec/> + <upstreamProjects>ArtifactUpload/dev/Core/Telemetry</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/UploadSchema/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/UploadSchema/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..b2dbba03573786e75b145ef6e93a1b9d491148a8 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/UploadSchema/config.xml @@ -0,0 +1,133 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>UploadSchema</projectName> + <projectFullName>Deploy/dev/Kubernetes/UploadSchema</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>UploadSchema</projectName> + <projectFullName>Deploy/dev/Kubernetes/UploadSchema</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>kp_branch_or_tag</name> + <description>This is knowledge platform branch or tag</description> + <defaultValue>release-3.4.0</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/upload/schema/knowledge-platform/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/UserOrg/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/UserOrg/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb6a462579ca83f1206f93a29b335fe5f6565f07 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/UserOrg/config.xml @@ -0,0 +1,159 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/UserOrg</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>UserOrg</projectName> + <projectFullName>Deploy/dev/Kubernetes/UserOrg</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>UserOrg</projectName> + <projectFullName>Deploy/dev/Kubernetes/UserOrg</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <jenkins.triggers.ReverseBuildTrigger> + <spec></spec> + <upstreamProjects>ArtifactUpload/dev/Core/UserOrg</upstreamProjects> + <threshold> + <name>SUCCESS</name> + <ordinal>0</ordinal> + <color>BLUE</color> + <completeBuild>true</completeBuild> + </threshold> + </jenkins.triggers.ReverseBuildTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Yarn/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Yarn/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..afb0969da89d1ae465ac42cb73ac321a968bd4fc --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/Yarn/config.xml @@ -0,0 +1,241 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Yarn</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-9061667106947</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <projectFullName>Deploy/dev/Kubernetes/Yarn</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>build_number</name> + <description/> + <randomName>choice-parameter-9061670571657</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <projectFullName>Deploy/dev/Kubernetes/Yarn</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>artifact_version</name> + <description/> + <randomName>choice-parameter-9061673103864</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <projectFullName>Deploy/dev/Kubernetes/Yarn</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <projectFullName>Deploy/dev/Kubernetes/Yarn</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <projectFullName>Deploy/dev/Kubernetes/Yarn</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>job_names_to_deploy</name> + <description><font color=green size=2><b>Choose the samza app names to deploy and this will kill the selected samza app and deploy them. Multi selection is available.</b></font></description> + <randomName>choice-parameter-8026182213525059</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return ['lms.user-account-merger_1', +'lms.sso-account-updater_1', +'lms.indexer_1', +'lms.notification-job_1']</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Yarn</projectName> + <projectFullName>Deploy/dev/Kubernetes/Yarn</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/yarn/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/certTemplate/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/certTemplate/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..d02f6bf815dab6f798fb0af977488643b58f92ff --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/certTemplate/config.xml @@ -0,0 +1,136 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.34"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>certTemplate</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.62"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.62"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>certTemplate</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>sunbird_util_branch_or_tag</name> + <description><font color=dimgray size=2><b>Provide the branch or tag of sunbird util repo for templates.</b></font></description> + <defaultValue>release-2.3.0</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.ChoiceParameterDefinition> + <name>badgeType</name> + <description><font color=dimgray size=2><b>Select the type of deployment as per your requirement.</b></font></description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>createBadge</string> + <string>createIssuer</string> + <string>createPublicKey</string> + <string>All</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/certs-templates/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/nginx-private-ingress/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/nginx-private-ingress/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6af233e9f1db03159229d905ecaf130d5935dec1 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/nginx-private-ingress/config.xml @@ -0,0 +1,149 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Proxy</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>nginx-private-ingress</projectName> + <projectFullName>Deploy/dev/Kubernetes/nginx-private-ingress</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>nginx-private-ingress</projectName> + <projectFullName>Deploy/dev/Kubernetes/nginx-private-ingress</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/nginx-public-ingress/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/nginx-public-ingress/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..e24b07952f5d19d0b7595c0ca0a5343e2e4bf86e --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Kubernetes/jobs/nginx-public-ingress/config.xml @@ -0,0 +1,149 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Core/Proxy</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>image_tag</name> + <description><font color=red size=2><b>CAUTION: If the value is blank, image tag will be taken from the latest metadata.json.</b></font></description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>nginx-public-ingress</projectName> + <projectFullName>Deploy/dev/Kubernetes/nginx-public-ingress</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>nginx-public-ingress</projectName> + <projectFullName>Deploy/dev/Kubernetes/nginx-public-ingress</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>role_name</name> + <description/> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>helm-deploy</string> + <string>sunbird-deploy</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.4.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>kubernetes/pipelines/deploy_core/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml index 8e06439289a9ee35d76a043bd86d05a155e75b98..0f30f927eddd4bcb8ebed23063699d709842edb5 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/CollectionEditor/config.xml @@ -1,11 +1,10 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -17,150 +16,156 @@ <defaultValue>ArtifactUpload/dev/Plugins/CollectionEditor</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-620062284617427</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CollectionEditor</projectName> + <projectFullName>Deploy/dev/Plugins/CollectionEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-620062286335119</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CollectionEditor</projectName> + <projectFullName>Deploy/dev/Plugins/CollectionEditor</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-620062288387509</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CollectionEditor</projectName> + <projectFullName>Deploy/dev/Plugins/CollectionEditor</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CollectionEditor</projectName> + <projectFullName>Deploy/dev/Plugins/CollectionEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CollectionEditor</projectName> + <projectFullName>Deploy/dev/Plugins/CollectionEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Plugins/CollectionEditor</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -172,8 +177,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -182,7 +187,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>editor-chnages</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -191,7 +196,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml index 2206e127f4004a07b5a79dd96ac033762bbced42..be250dc944e6b58b51cbf047631af18ae7982141 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentEditor/config.xml @@ -1,7 +1,6 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -17,150 +16,156 @@ <defaultValue>ArtifactUpload/dev/Plugins/ContentEditor</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-620062284617427</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentEditor</projectName> + <projectFullName>Deploy/dev/Plugins/ContentEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-620062286335119</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentEditor</projectName> + <projectFullName>Deploy/dev/Plugins/ContentEditor</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-620062288387509</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentEditor</projectName> + <projectFullName>Deploy/dev/Plugins/ContentEditor</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentEditor</projectName> + <projectFullName>Deploy/dev/Plugins/ContentEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentEditor</projectName> + <projectFullName>Deploy/dev/Plugins/ContentEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Plugins/ContentEditor</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -172,8 +177,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -182,7 +187,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>editor-chnages</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -191,7 +196,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml index 999dde5c352e4f5bba39a66521354ea69e588ff5..04b82ffeb03ea761ea49fc128c4d23624266d3a8 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlayer/config.xml @@ -1,7 +1,6 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -17,51 +16,51 @@ <defaultValue>ArtifactUpload/dev/Plugins/ContentPlayer</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-620062284617427</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlayer</projectName> <projectFullName>Deploy/dev/Plugins/ContentPlayer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-620062286335119</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -72,23 +71,23 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-620062288387509</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -99,73 +98,74 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlayer</projectName> <projectFullName>Deploy/dev/Plugins/ContentPlayer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlayer</projectName> <projectFullName>Deploy/dev/Plugins/ContentPlayer</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Plugins/ContentPlayer</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -177,8 +177,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -196,7 +196,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml index 37fdaa0d4db8cb21fe41b480ca8e4859dfa9be54..d3dc97dda4f74e59a065f573e36e4126a8471b43 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/ContentPlugins/config.xml @@ -1,11 +1,10 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -17,150 +16,156 @@ <defaultValue>ArtifactUpload/dev/Plugins/ContentPlugins</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-620062284617427</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlugins</projectName> + <projectFullName>Deploy/dev/Plugins/ContentPlugins</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-620062286335119</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlugins</projectName> + <projectFullName>Deploy/dev/Plugins/ContentPlugins</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-620062288387509</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlugins</projectName> + <projectFullName>Deploy/dev/Plugins/ContentPlugins</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters>artifact_source</referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlugins</projectName> + <projectFullName>Deploy/dev/Plugins/ContentPlugins</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ContentPlugins</projectName> + <projectFullName>Deploy/dev/Plugins/ContentPlugins</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Plugins/ContentPlugins</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -172,8 +177,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -191,7 +196,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml index c4a6262e7e1ae793225b73d7ab37823eb3f9adcc..102495eaab86bf0d1165295dce9926e2964f0ad9 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/GenericEditor/config.xml @@ -1,7 +1,6 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -17,51 +16,51 @@ <defaultValue>ArtifactUpload/dev/Plugins/GenericEditor</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> <name>artifact_source</name> <description><font color=dimgray size=2><b> ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> <randomName>choice-parameter-620062284617427</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> + <secureScript plugin="script-security@1.71"> <script>return[ -'JenkinsJob', -'ArtifactRepo' +'JenkinsJob', +'ArtifactRepo' ]</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>GenericEditor</projectName> <projectFullName>Deploy/dev/Plugins/GenericEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>PT_SINGLE_SELECT</choiceType> <filterable>false</filterable> <filterLength>1</filterLength> </org.biouno.unochoice.CascadeChoiceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>build_number</name> - <description></description> + <description/> <randomName>choice-parameter-620062286335119</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("JenkinsJob")) { -return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -72,23 +71,23 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>artifact_version</name> - <description></description> + <description/> <randomName>choice-parameter-620062288387509</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (artifact_source.equals("ArtifactRepo")) { -return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" } else { -return "<b>Not Applicable</b>" +return "<b>Not Applicable</b>" }</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script></script> + <secureFallbackScript plugin="script-security@1.71"> + <script/> <sandbox>false</sandbox> </secureFallbackScript> </script> @@ -99,73 +98,74 @@ return "<b>Not Applicable</b>" <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2544395024638227</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>GenericEditor</projectName> <projectFullName>Deploy/dev/Plugins/GenericEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2620434998790477</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>GenericEditor</projectName> <projectFullName>Deploy/dev/Plugins/GenericEditor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>ArtifactUpload/dev/Plugins/GenericEditor</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -177,8 +177,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -187,7 +187,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>editor-chnages</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -196,7 +196,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/org_sunbird_questionunit_quml/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/org_sunbird_questionunit_quml/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..73b41059d4156feec5627551808d89e0002d53d4 --- /dev/null +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Plugins/jobs/org_sunbird_questionunit_quml/config.xml @@ -0,0 +1,200 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.32"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>absolute_job_path</name> + <description><font color=dimgray size=2><b>Do not change this value! The metadata.json will be copied from this job.</b></font></description> + <defaultValue>ArtifactUpload/dev/Plugins/ContentPlugins</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.1"> + <name>artifact_source</name> + <description><font color=dimgray size=2><b> +ArtifactRepo - Download the artifact from azure blob, JenkinsJob - Use the atrifact from Jenkins job.</b></font></description> + <randomName>choice-parameter-620062284617427</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.58"> + <script>return[ +'JenkinsJob', +'ArtifactRepo' +]</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.58"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>org_sunbird_questionunit_quml</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>PT_SINGLE_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>build_number</name> + <description></description> + <randomName>choice-parameter-620062286335119</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.58"> + <script>if (artifact_source.equals("JenkinsJob")) { +return """<input name="value" value="lastSuccessfulBuild" class="setting-input" type="text"><br> <font color=darkgreen size=2><b>OPTIONAL: Specify the build number of ArtifactUpload job from which the artifact will be copied and deployed.</b></font>""" +} +else +{ +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.58"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>org_sunbird_questionunit_quml</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>artifact_version</name> + <description></description> + <randomName>choice-parameter-620062288387509</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.58"> + <script>if (artifact_source.equals("ArtifactRepo")) { +return """<input name="value" value="" class="setting-input" type="text"> <br> <font color=red size=2><b>CAUTION: If the value is blank, artifact version will be taken from the latest metadata.json.</b></font>""" +} +else { +return "<b>Not Applicable</b>" +}</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.58"> + <script></script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>org_sunbird_questionunit_quml</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters>artifact_source</referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.58"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.58"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>org_sunbird_questionunit_quml</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.58"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="${public_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout Jenkinsfile from a different tag or branch.<br>Note: Ideally this value should be same as the branch or tag from which the corresponding Build job was run.</b></font></b></font>"""; +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.58"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>org_sunbird_questionunit_quml</projectName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.StringParameterDefinition> + <name>plugin_name</name> + <description></description> + <defaultValue>org.sunbird.questionunit.quml-1.0</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/deploy/org_sunbird_questionunit_quml/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Summary/jobs/DeployedVersions/config.xml b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Summary/jobs/DeployedVersions/config.xml index 2c667ec58182974b546becdc93f72ddbcbc6e9bb..0f9f56f42a1b8b0b812a5a026166ef917353878e 100644 --- a/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Summary/jobs/DeployedVersions/config.xml +++ b/deploy/jenkins/jobs/Deploy/jobs/dev/jobs/Summary/jobs/DeployedVersions/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>10</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/config.xml b/deploy/jenkins/jobs/OpsAdministration/config.xml index 68477b8ac7421fc78d69182df3125c9ab3412fdf..92618cba962f72c6132bd317b68ff0d74bfe0605 100644 --- a/deploy/jenkins/jobs/OpsAdministration/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.7"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.4.1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.13"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchBackup/config.xml index 54c8ced7abfc6249294840697ae5bc0d6a2ccac3..fa769962d2e513f60ec302c04459002d7a09cc5e 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -99,7 +99,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchRestore/config.xml index 0f8f73f2d21264e02eb48f7cc0e40ae71c94fd8a..af8153a6b8fc4187708404ff120c0df1a8d161cc 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ApplicationElasticsearchRestore/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,50 +7,65 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <hudson.model.StringParameterDefinition> + <name>host</name> + <description><font color=teal size=2>enter any one host name or ip if it is a cluster</font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>SNAPSHOT_NUMBER</name> + <description><font color=teal size=2>Enter Snapshot number to restore. +curl command to get snapshot number: +curl http://localhost:9200/_snapshot/azurebackup/_all, Parse the json and get the valid snapshot number to restore</font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> - <randomName>choice-parameter-189745871212329</randomName> + <randomName>choice-parameter-193693971284924</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="db_restore" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ApplicationElasticsearchRestore</projectName> + <projectFullName>OpsAdministration/dev/Core/ApplicationElasticsearchRestore</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> - <randomName>choice-parameter-189745873861032</randomName> + <randomName>choice-parameter-193693974507874</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; @@ -59,29 +74,18 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ApplicationElasticsearchRestore</projectName> + <projectFullName>OpsAdministration/dev/Core/ApplicationElasticsearchRestore</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <hudson.model.StringParameterDefinition> - <name>host</name> - <description><b color:"#b666d2">Give the host IP in which you wanted to restore the ES. Do add the host ip in inventory file.</b></description> - <defaultValue>11.11.11.11</defaultValue> - <trim>false</trim> - </hudson.model.StringParameterDefinition> - <hudson.model.StringParameterDefinition> - <name>snapshot_name</name> - <description><b color:"#b666d2">Give the Snapshot Name of the snapshot which you want to restore from azure.</b></description> - <defaultValue>snapshot_1562619680</defaultValue> - <trim>false</trim> - </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> @@ -94,12 +98,12 @@ return """<b>This parameter is not used</b>"&quo <paramsToUseForLimit></paramsToUseForLimit> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-devops.git</url> + <url>https://github.com/MasterAlt/sunbird-devops.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml index 9b168d96d01e8638da17cf1c8a3e201a884219fc..94af12a448d41cd2db238ae7de82a22639d35d7c 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/Bootstrap/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CassandraBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CassandraBackup/config.xml index 9ceaefbe6b5e89371518fc966855acfd3ab92f71..85c852a1719d309e6278b26db1b0e4008d93dcae 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CassandraBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CassandraBackup/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,25 +7,25 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-189743214208409</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -33,24 +33,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraBackup</projectName> + <projectFullName>OpsAdministration/dev/Core/CassandraBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-189743216959018</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; @@ -59,12 +60,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraBackup</projectName> + <projectFullName>OpsAdministration/dev/Core/CassandraBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -89,8 +91,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -99,7 +101,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.9.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearDockerImages/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearDockerImages/config.xml index 0abf0e9bfba90edf31520cdc1a07758076be308f..77b16591b4b0ad8b29ac7ffb633b01a056a8db57 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearDockerImages/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearDockerImages/config.xml @@ -1,22 +1,22 @@ -<?xml version='1.1' encoding='UTF-8'?> -<project> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><project> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> @@ -25,14 +25,14 @@ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers> <hudson.triggers.TimerTrigger> - <spec>H 2 * * *</spec> + <spec>H 5 * * *</spec> </hudson.triggers.TimerTrigger> </triggers> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Shell> - <command>#docker image rm $(docker images | awk 'NR>1 {print $3}') --force 2> /dev/null -docker system prune -af</command> + <command>sudo docker image rm $(sudo docker images | awk 'NR>1 {print $3}') --force +sudo docker system prune -af</command> </hudson.tasks.Shell> </builders> <publishers/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearWorkspace/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearWorkspace/config.xml index 087d526b05768677bb8f324c1b32d8cd3df6fa18..912f23767c39d8b900311a3b942bb33639c157fd 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearWorkspace/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ClearWorkspace/config.xml @@ -1,19 +1,22 @@ -<?xml version='1.1' encoding='UTF-8'?> -<project> - <description></description> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><project> + <actions/> + <description/> <keepDependencies>false</keepDependencies> <properties> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> @@ -22,19 +25,33 @@ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers> <hudson.triggers.TimerTrigger> - <spec>H 4 * * *</spec> + <spec>H 6 * * *</spec> </hudson.triggers.TimerTrigger> </triggers> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Shell> - <command>rm -rf /var/lib/jenkins/workspace/Build -rm -rf /var/lib/jenkins/workspace/Provision -rm -rf /var/lib/jenkins/workspace/OpsAdministration -rm -rf /var/lib/jenkins/workspace/ArtifactUpload -rm -rf /var/lib/jenkins/workspace/Deploy</command> + <command>echo "Before clearing" +df -h +curl -XPOST http://$ops@localhost:8080/jenkins/quietDown +sleep 60 +sudo rm -rf /var/lib/jenkins/workspace/* || true +sudo rm -rf /tmp/* || true +sleep 60 +curl -XPOST http://$ops@localhost:8080/jenkins/cancelQuietDown +echo "After clearing" +df -h</command> </hudson.tasks.Shell> </builders> <publishers/> - <buildWrappers/> + <buildWrappers> + <org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper plugin="credentials-binding@1.22"> + <bindings> + <org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordBinding> + <credentialsId>ops</credentialsId> + <variable>ops</variable> + </org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordBinding> + </bindings> + </org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper> + </buildWrappers> </project> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CreateUser/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CreateUser/config.xml index cfda6e5ec24fc5fdd01dcb16dc3552776640d5be..30e2a224b9501d60198fa180c3b554181b57576f 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CreateUser/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/CreateUser/config.xml @@ -1,7 +1,6 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.33"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> @@ -13,30 +12,30 @@ <hudson.model.StringParameterDefinition> <name>instance_name</name> <description><font color=dimgray size=2><b>Enter ansible group name</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> <name>username</name> <description><font color=dimgray size=2><b>Enter user name</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> <name>password</name> <description><font color=dimgray size=2><b>Enter encrypted password</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.StringParameterDefinition> <name>public_key</name> <description><font color=dimgray size=2><b>Enter public key in single quotes</b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> <hudson.model.ChoiceParameterDefinition> <name>tag</name> - <description></description> + <description/> <choices class="java.util.Arrays$ArrayList"> <a class="string-array"> <string>add-user</string> @@ -44,80 +43,83 @@ </a> </choices> </hudson.model.ChoiceParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-189741599993386</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CreateUser</projectName> + <projectFullName>OpsAdministration/dev/Core/CreateUser</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-189741602917876</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CreateUser</projectName> + <projectFullName>OpsAdministration/dev/Core/CreateUser</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.11.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-devops.git</url> + <url>https://github.com/rjshrjndrn/sunbird-devops.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>useradd</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -126,7 +128,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ESMapping/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ESMapping/config.xml index 0227b7997a0e45fb58da73a5e0eb71e355ca2553..35d9e419f271dc6f768408f1d26ef35998d37431 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ESMapping/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ESMapping/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -19,54 +18,56 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-9675060449018219</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ESMapping</projectName> + <projectFullName>OpsAdministration/dev/Core/ESMapping</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-9675060450520341</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ESMapping</projectName> + <projectFullName>OpsAdministration/dev/Core/ESMapping</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> @@ -85,26 +86,27 @@ return """<b>This parameter is not used</b>"&quo <br> enter all to run all indices and mappings <br> </b></font></description> - <defaultValue></defaultValue> + <defaultValue/> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -122,7 +124,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/EsReindexing/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/EsReindexing/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..eb5bf8353d37f5fdf83a2dcfce57605bc56d2263 --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/EsReindexing/config.xml @@ -0,0 +1,91 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><project> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>esHost</name> + <description/> + <defaultValue>11.2.3.58</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>oldIndex</name> + <description/> + <defaultValue>certreg</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>newIndex</name> + <description/> + <defaultValue>certv2</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>aliasName</name> + <description/> + <defaultValue>certs</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>indexFileLocation</name> + <description/> + <defaultValue>sunbird-es-utils/src/main/resources/reindexing/indices/certreg_indices.json</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>mappingFileLocation</name> + <description/> + <defaultValue>sunbird-es-utils/src/main/resources/reindexing/mappings/certreg_mappings.json</defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-utils.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.10.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <canRoam>true</canRoam> + <disabled>false</disabled> + <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> + <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> + <triggers/> + <concurrentBuild>false</concurrentBuild> + <builders> + <hudson.tasks.Shell> + <command>chmod +x sunbird-es-utils/src/main/resources/reindexing/reindex.sh +bash sunbird-es-utils/src/main/resources/reindexing/reindex.sh ${esHost} ${oldIndex} ${newIndex} ${aliasName} ${indexFileLocation} ${mappingFileLocation}</command> + </hudson.tasks.Shell> + </builders> + <publishers/> + <buildWrappers/> +</project> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/GrafanaBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/GrafanaBackup/config.xml index 68aafba327742928695c84f6df090b77549ce5ec..5e891cba0ba65af6d8a7a899459251c71428c241 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/GrafanaBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/GrafanaBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -94,7 +94,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/Health/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/Health/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..1cd2aa21a67314bb767f9da6eda3be83729020e9 --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/Health/config.xml @@ -0,0 +1,43 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.32"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/deploy/health-check/Jenkinsfile</scriptPath> + <lightweight>true</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/JenkinsBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/JenkinsBackup/config.xml index b09d7e5429bdbd5f7d95e0a870de57ed0a2e7ffa..c4b34773688582b4ce07d5af930db045d968512c 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/JenkinsBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/JenkinsBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -98,7 +98,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KeyRotation/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KeyRotation/config.xml index 1880fa9db7e7ccd142f5c75c1df543a32db056fe..c87f70872af64c8ede3e1d5b986f705634b59e70 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KeyRotation/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KeyRotation/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KongMigration/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KongMigration/config.xml index 6d1c763aeb91e6b54c91aae9bb4f22e826751f1c..9e18416ad5f66027a14a7b873d19dd8b2c8d5637 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KongMigration/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/KongMigration/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchBackup/config.xml index 17fa0572d65de0782e44c6eb06e3e4fe36cd59e0..3d52d256c1afb698a0dba7744d43900d613826d7 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -99,7 +99,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchRestore/config.xml index 7982bb2c21c2695b54960b2be3602af20dfee1b4..3953efc54f4755b2b3aa97bc6238d25d84e0b6fa 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/LoggerElasticSearchRestore/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ManagedPostgresBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ManagedPostgresBackup/config.xml index 51657f25fb26e1d02f2174c44dea4291780dbd1a..74888f8ff0895f29f92f3fecbcba15200ef583ff 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ManagedPostgresBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/ManagedPostgresBackup/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -19,76 +18,77 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-189733897665665</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> - <projectName>PostgresManagedBackup</projectName> - <projectFullName>OpsAdministration/dev/Core/PostgresManagedBackup</projectFullName> + <projectName>ManagedPostgresBackup</projectName> + <projectFullName>OpsAdministration/dev/Core/ManagedPostgresBackup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-189733901134743</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> - <projectName>PostgresManagedBackup</projectName> - <projectFullName>OpsAdministration/dev/Core/PostgresManagedBackup</projectFullName> + <projectName>ManagedPostgresBackup</projectName> + <projectFullName>OpsAdministration/dev/Core/ManagedPostgresBackup</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> <hudson.model.StringParameterDefinition> <name>postgres_env</name> - <description></description> + <description/> <defaultValue>dev_old</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <hudson.triggers.TimerTrigger> @@ -97,8 +97,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -107,7 +107,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.3.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -116,7 +116,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitDeploy/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitDeploy/config.xml index 413b0297a694d23b0f3382a5c702dcc1e2436ff6..e09d90a53dfb08421276659e7e16761b160751e4 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitDeploy/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitDeploy/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitStatus/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitStatus/config.xml index 423e81855774a13d3fbf617a4e1495e39a89de5b..fb56faf6ffb705dd1048184d139ace6412ee80e6 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitStatus/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/MonitStatus/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlBackup/config.xml index c8d49c9cd7442cf070442fe52249e46b2952d0a9..11c154f9a135883649fb179ff91ed349447f064f 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -99,7 +99,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlRestore/config.xml index 9949088537b0b202aacff45ed7a9e0c54f06d7ba..f9a24a2bc3c76e12152319215b1393db60402386 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PostgresqlRestore/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -90,7 +90,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusBackup/config.xml index 62420abc2826e834a1d15306f02fa05bb3475cfd..1d8cb3e0eac2588dbd372bb70ae5f93eb68e88e1 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -99,7 +99,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusSanpshot/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusSanpshot/config.xml index 497f1633bd43c358d08577e23abe42db097020fc..768fce6ca54e2944cbf6d2e02a8d0eab44913bc1 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusSanpshot/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/PrometheusSanpshot/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -99,7 +99,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backup</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/RedisBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/RedisBackup/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..0f5f261ef85dcee81e76c34057ce6760e023957d --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/RedisBackup/config.xml @@ -0,0 +1,124 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-193697432119747</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RedisBackup</projectName> + <projectFullName>OpsAdministration/dev/Core/RedisBackup</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-193697441891806</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RedisBackup</projectName> + <projectFullName>OpsAdministration/dev/Core/RedisBackup</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers> + <hudson.triggers.TimerTrigger> + <spec>H 2 * * *</spec> + </hudson.triggers.TimerTrigger> + </triggers> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-3.3.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/backup/redis-backup/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/SwarmBootstrap/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/SwarmBootstrap/config.xml index 429a4261f0bc4f431f1d554faf5aeb3fe8100bd1..ef4f2bf6d0a229943f2b9b9e9cae854db67ef9b9 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/SwarmBootstrap/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/Core/jobs/SwarmBootstrap/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Bootstrap/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Bootstrap/config.xml index 7b842f76ddb315d91c32ffaa2f31925d6a420451..b19a70afa8b37b8b5d571a5dc26741ec30f93dbc 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Bootstrap/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Bootstrap/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraBackup/config.xml index e99463288bef77dac83cbed22e4b989fd239252c..ddae73cc32fd440a7884d3253a6be166036aa38c 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraBackup/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -118,7 +118,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraRestore/config.xml index a120e7f0b71bf564123e6f50de25e00002f52ff0..fa5bdcbb2f8b5ac1c83c836bcf1ee2fecc28773d 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/CassandraRestore/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -109,7 +109,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ConsumerLagAlert/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ConsumerLagAlert/config.xml index 78c54d89f8e9653eebff0183b1a917a95db42df4..4e750b5e17b2d1b575e18f72f91fb3de80140170 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ConsumerLagAlert/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ConsumerLagAlert/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DataproductsAlert/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DataproductsAlert/config.xml index 570cefb6e40f80981f4d21c75df667437d930f96..39ce90809fe46435b127e59b815a1f4a82d71a71 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DataproductsAlert/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DataproductsAlert/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DruidPostgresBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DruidPostgresBackup/config.xml index b63f0b4ebc4e909a0c80a417510dbec0619f9e4b..995714507f40c3f9ed57626f6efa89bcc62c317d 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DruidPostgresBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/DruidPostgresBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -98,7 +98,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchBackup/config.xml index 068045858f5cdac2755e65b694514af48214a2f2..5ea4ae60f30b35c79635f1e3be64b15fecfddee7 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchBackup/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -112,7 +112,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchRestore/config.xml index 26d88833299a58600d769ad4969fc497fdb44876..c3d01408706c728c9a1208736542c4e766b5aba2 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/ElasticsearchRestore/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -111,7 +111,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Health/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Health/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..870f36491421360ebb330ed7ed84cd311fe401c3 --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Health/config.xml @@ -0,0 +1,43 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.32"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/deploy/health-check/Jenkinsfile-dp</scriptPath> + <lightweight>true</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/InfluxDBBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/InfluxDBBackup/config.xml index 14d6355551891f89571811d7b0b0fb8e113e9ac3..49635f78e87ce4d0fafefc1b58eb1ffd02c27572 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/InfluxDBBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/InfluxDBBackup/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -14,25 +14,25 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-193686205164304</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -40,24 +40,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>InfluxDBBackup</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/InfluxDBBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-193686227117959</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; @@ -66,12 +67,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>InfluxDBBackup</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/InfluxDBBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -96,17 +98,17 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + <url>https://github.com/MasterAlt/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.9.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -126,4 +128,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Influxdb_restore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Influxdb_restore/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9a0942df58c20b6b177f341a0d385e5ca19ddfe6 --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Influxdb_restore/config.xml @@ -0,0 +1,85 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>influxdb_host</name> + <description>Influxdb ip or hostname where data needs to be restored.</description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>influxdb_restore_file_name</name> + <description>influxdb backup file name which needs to be restored.</description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-4812402663506673</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Influxdb_restore</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/Influxdb_restore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.9.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/backup/influxdb-restore/Jenkinsfile</scriptPath> + <lightweight>true</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/KeyRotation/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/KeyRotation/config.xml index faaea481ffd929625f0ad80f3f2632eedb21dad6..54a0681dc9269f967b8b97c1cbe84c57afbc34fb 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/KeyRotation/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/KeyRotation/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/MonitDeploy/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/MonitDeploy/config.xml index abbec5a2060f0200cb29c37491420b64a3669f9e..713e2f38d1f465b0451e78c5277ba82b2ff3ad5a 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/MonitDeploy/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/MonitDeploy/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -19,62 +18,62 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-193690420291616</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>MonitDeploy</projectName> <projectFullName>OpsAdministration/dev/DataPipeline/MonitDeploy</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-193690422104853</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>MonitDeploy</projectName> <projectFullName>OpsAdministration/dev/DataPipeline/MonitDeploy</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> <hudson.model.ChoiceParameterDefinition> <name>tag</name> - <description></description> + <description/> <choices class="java.util.Arrays$ArrayList"> <a class="string-array"> <string>all</string> @@ -92,21 +91,22 @@ return """<b>This parameter is not used</b>"&quo </hudson.model.ChoiceParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -115,7 +115,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-3.2.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -124,7 +124,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlBackup/config.xml index fac30b93635fd013584b427d92d05c80b24f8561..edfc1ee0d5d958f084d5047f4b7fe027f4101475 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlBackup/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -90,7 +90,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlRestore/config.xml index f3bfd06a63959b4030807fca9025616fb1d218a5..1369badc49ad953c5a7d09256a3f703c3fd7aa2f 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/PostgresqlRestore/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -90,7 +90,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RedisBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RedisBackup/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..7d3c56036d2d33f8faa4ecc52b4a0ce602f2966b --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RedisBackup/config.xml @@ -0,0 +1,120 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-193697432119747</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RedisBackup</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/RedisBackup</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-193697441891806</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RedisBackup</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/RedisBackup</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/sowmya-dixit/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>redis-multiprocess</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/backup/redis-backup/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RedisDumpMonitoring/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RedisDumpMonitoring/config.xml index d7cb16b5a96026be8461a5397a76fe932acb13cb..e93b31bd52b40accb2fe785c36b889688954573d 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RedisDumpMonitoring/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RedisDumpMonitoring/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RestartSecorJobs/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RestartSecorJobs/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..002f8f1f87790e6453419f764ae13dd703544170 --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/RestartSecorJobs/config.xml @@ -0,0 +1,173 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-2544395024638227</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RestartSecorJobs</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/RestartSecorJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-2620434998790477</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RestartSecorJobs</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/RestartSecorJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.ChoiceParameterDefinition> + <name>trigger</name> + <description>Select the trigger. (Start, Stop or Restart)</description> + <choices class="java.util.Arrays$ArrayList"> + <a class="string-array"> + <string>start</string> + <string>stop</string> + <string>restart</string> + </a> + </choices> + </hudson.model.ChoiceParameterDefinition> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>secor_jobs</name> + <description><font color=green size=2><b>Select the one or multiple secor jobs to start, stop or restart</b></font></description> + <randomName>choice-parameter-8026182213525059</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return ['extractor-failed-backup', +'unique-telemetry-backup', +'denorm-events-backup', +'learning-failed-backup', +'ingestion-telemetry-backup', +'raw-telemetry-backup', +'pipeline-metrics-backup', +'channel-telemetry-backup', +'assess-events-backup', +'learning-events-backup', +'device-profile-backup', +'failed-telemetry-backup', +'derived-telemetry-backup']</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RestartSecorJobs</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/RestartSecorJobs</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>release-2.10.0</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/ops/secor_restart/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlert/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlert/config.xml index c4a2791b0735a023739fcf971bb8d68d93f5abc8..6bead98a4c94449e6b1da6702dfa7c34db64a528 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlert/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlert/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,13 +26,13 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> <description></description> <randomName>choice-parameter-2914866095851737</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> + <secureScript plugin="script-security@1.71"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -40,24 +40,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> + <secureFallbackScript plugin="script-security@1.71"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>SamzaJobsAlert</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/SamzaJobsAlert</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-2914866097410763</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> + <secureScript plugin="script-security@1.71"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; @@ -66,20 +67,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> + <secureFallbackScript plugin="script-security@1.71"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>SamzaJobsAlert</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/SamzaJobsAlert</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> + <hudson.model.FileParameterDefinition> + <name></name> + <description></description> + </hudson.model.FileParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> @@ -87,6 +93,7 @@ return """<b>This parameter is not used</b>"&quo <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> <paramsToUseForLimit></paramsToUseForLimit> + <configVersion>1</configVersion> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> @@ -96,8 +103,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -106,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -125,5 +132,5 @@ return """<b>This parameter is not used</b>"&quo <lightweight>false</lightweight> </definition> <triggers/> - <disabled>false</disabled> + <disabled>true</disabled> </flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlertProvision/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlertProvision/config.xml index 89b09c57176caa36679fcf2c1584dc4cc5388c19..7093c353756c18474d5acb4c2907fa189c95e3da 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlertProvision/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsAlertProvision/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsKill/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsKill/config.xml index e77ed5775b80d44fbb9e97b8241f7484e2e5fd9e..293f2e6b955333d09ac082ffca3acf9f56a8b40f 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsKill/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaJobsKill/config.xml @@ -123,7 +123,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaLogsBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaLogsBackup/config.xml index 3dc7f04d88bbe3b04ec9d057b76be60c175a1ada..bf3f5750eee16066c1fb62cb87f3907a17edfbac 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaLogsBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaLogsBackup/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaMonitoringProvision/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaMonitoringProvision/config.xml index 15ad71d1a88396b854c3074d7fa5888c2e517d47..a1cc4ddecee1927de0177a427262a72e17b69afa 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaMonitoringProvision/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaMonitoringProvision/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaOrphanprocessAlert/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaOrphanprocessAlert/config.xml index 8146d565f5837c00868019cb5826d12c156d30ea..20c333f607d4afeb65fdccba7a39c497b18e4bcf 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaOrphanprocessAlert/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaOrphanprocessAlert/config.xml @@ -1,43 +1,42 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.31"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> - <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.20"> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> <string>hudson.model.ParametersDefinitionProperty</string> <string>com.sonyericsson.rebuild.RebuildSettings</string> </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.29"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <jenkins.triggers.ReverseBuildTrigger> - <spec></spec> + <spec/> <upstreamProjects>Deploy/dev/DataPipeline/Yarn,Deploy/dev/KnowledgePlatform/Yarn</upstreamProjects> <threshold> <name>SUCCESS</name> @@ -52,8 +51,8 @@ </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.63"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -62,7 +61,7 @@ </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>refs/tags/tag-for-backups</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -71,7 +70,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -82,4 +81,4 @@ </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputAlert/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputAlert/config.xml index d4d40ccfa9690fbb6bc962155815a0f7c66a773d..bef6b6f258f0c16faaf5021381d30b89036758d7 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputAlert/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputAlert/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,76 +25,81 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-2914866095851737</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>SamzaThroughputAlert</projectName> <projectFullName>OpsAdministration/dev/DataPipeline/SamzaThroughputAlert</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-2914866097410763</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>SamzaThroughputAlert</projectName> <projectFullName>OpsAdministration/dev/DataPipeline/SamzaThroughputAlert</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> <hudson.model.StringParameterDefinition> <name>tag</name> - <description></description> + <description/> <defaultValue>throughput_monitor</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> + <hudson.model.FileParameterDefinition> + <name>/tmp/dialcode.csv</name> + <description/> + </hudson.model.FileParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> <hudson.triggers.TimerTrigger> @@ -104,8 +108,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -123,7 +127,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputProvision/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputProvision/config.xml index 5239bf8befeaa9df42cbfa432c4ef8ed92c74873..bf9b1d729d70c8a277ad9af381f4778d8f6973de 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputProvision/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/SamzaThroughputProvision/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Test/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Test/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..08c7fb9e7b5b5d6bb11025295844fc901bf8d642 --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/Test/config.xml @@ -0,0 +1,39 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><project> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.FileParameterDefinition> + <name>~jenkins</name> + <description/> + </hudson.model.FileParameterDefinition> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <scm class="hudson.scm.NullSCM"/> + <canRoam>true</canRoam> + <disabled>false</disabled> + <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> + <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> + <triggers/> + <concurrentBuild>false</concurrentBuild> + <builders/> + <publishers/> + <buildWrappers/> +</project> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/redis-restore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/redis-restore/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..4de167aaf401183ebfa99b4743946138319d6ece --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/DataPipeline/jobs/redis-restore/config.xml @@ -0,0 +1,86 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>redis_restore_file_name</name> + <description>redis backup file name which needs to be restored.</description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <hudson.model.StringParameterDefinition> + <name>redis_restore_process</name> + <description>port on which redis process runs which needs to be restored. Ex ['device','user','content','dialcode']</description> + <defaultValue/> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-4812402663506673</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>redis-restore</projectName> + <projectFullName>OpsAdministration/dev/DataPipeline/redis-restore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>false</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.86"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.4.5"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/sowmya-dixit/sunbird-data-pipeline.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>redis-multiprocess</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/backup/redis-restore/Jenkinsfile</scriptPath> + <lightweight>true</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Bootstrap/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Bootstrap/config.xml index 62b910c1ec3afea05af9ce815321e58cd1a85aa5..d42e958fcc05ef63dddca98582f6eea6660d8376 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Bootstrap/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Bootstrap/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraBackup/config.xml index 234226a02554e716dcfbd302c048e4759f4822bf..a188429354ac3ccdd45a4883990b090951ca45e8 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraBackup/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,13 +7,13 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -31,13 +31,13 @@ <defaultValue>/var/lib/cassandra/data</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-193690420291616</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -45,24 +45,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/CassandraBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-193690422104853</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; @@ -71,12 +72,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CassandraBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/CassandraBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -92,7 +94,6 @@ return """<b>This parameter is not used</b>"&quo <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> <paramsToUseForLimit></paramsToUseForLimit> - <configVersion>1</configVersion> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers> @@ -102,17 +103,17 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + <url>https://github.com/badaltechiepi/sunbird-learning-platform.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>patch-2</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -131,5 +132,5 @@ return """<b>This parameter is not used</b>"&quo <lightweight>false</lightweight> </definition> <triggers/> - <disabled>true</disabled> + <disabled>false</disabled> </flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraRestore/config.xml index aa26d8091b7adf4fd5963cab7131db8d338c6776..2736bef3ff4de5734a7469a30f58a6b8f72a21d5 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/CassandraRestore/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchBackup/config.xml index d54244fc0ecafe3e903c8906998486cbefd4ed4b..6f995b76af21c1895bbf667972505e093e979cfa 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchBackup/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,25 +7,25 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-193692901127485</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -33,24 +33,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ElasticsearchBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/ElasticsearchBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-193692904321817</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; @@ -59,12 +60,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ElasticsearchBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/ElasticsearchBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -89,17 +91,17 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + <url>https://github.com/MasterAlt/sunbird-learning-platform.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>es-provision</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -119,4 +121,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchRestore/config.xml index 0372d6d3c57b90b97dbfce7fd17c56d1e32c316c..2b968ad93d7413e1a56632ae8ed0ef1666c8d2ca 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/ElasticsearchRestore/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,13 +7,13 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> @@ -33,13 +33,13 @@ curl http://localhost:9200/_snapshot/azurebackup/_all, Parse the json and get th <defaultValue></defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-193693971284924</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -47,24 +47,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ElasticsearchRestore</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/ElasticsearchRestore</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-193693974507874</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; @@ -73,12 +74,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>ElasticsearchRestore</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/ElasticsearchRestore</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -96,12 +98,12 @@ return """<b>This parameter is not used</b>"&quo <paramsToUseForLimit></paramsToUseForLimit> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + <url>https://github.com/MasterAlt/sunbird-learning-platform.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Health/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Health/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..d5825945e2dbc1ba8dc4e1e4bbce3d09cc7c1f9f --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Health/config.xml @@ -0,0 +1,43 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.32"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/harshavardhanc/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions/> + </scm> + <scriptPath>pipelines/deploy/health-check/Jenkinsfile-lp</scriptPath> + <lightweight>true</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/KeyRotation/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/KeyRotation/config.xml index 70003b8d7ffbb16c436756e0b7582a533de66eed..aa56705fb1f055ece5faabf7fd59601beae08ffa 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/KeyRotation/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/KeyRotation/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitDeploy/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitDeploy/config.xml index a8e7cfc7c2853a0a2799299bd7e0ab5135ba4c68..e1eac147989bbdcda0f5606ee68b7bc0fe4d6697 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitDeploy/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitDeploy/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitStatus/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitStatus/config.xml index 9bdcb636ddbe16fb045b4e2a72c517ec752be917..c9dd565497b30a6880fcb5d5063ea938f550eecd 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitStatus/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/MonitStatus/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jBackup/config.xml index 0648e10231c1e5149393cf37165b50e1784f3954..63f498537c75f8c22452f9a26628413b186f2a42 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jBackup/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,25 +7,25 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-193695591871973</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -33,24 +33,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/Neo4jBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-193695594771667</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; @@ -59,12 +60,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4jBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/Neo4jBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -89,8 +91,8 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -99,7 +101,7 @@ return """<b>This parameter is not used</b>"&quo </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.9.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -119,4 +121,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jRestore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jRestore/config.xml index ea94929067178258f37aeefeca10e798ac236204..0b3beb196f425acee501fcd276988d79d8a49e17 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jRestore/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4jRestore/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/RedisBackup/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/RedisBackup/config.xml index 7bb0fedf92c981abc9c395d07117b2f46bde6b07..9de5c0d6c64aa9387794008371c5a84755db2a92 100644 --- a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/RedisBackup/config.xml +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/RedisBackup/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions/> <description></description> <keepDependencies>false</keepDependencies> @@ -7,25 +7,25 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-193697432119747</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -33,24 +33,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>RedisBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/RedisBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-193697441891806</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; @@ -59,12 +60,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>RedisBackup</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/RedisBackup</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -89,17 +91,17 @@ return """<b>This parameter is not used</b>"&quo </triggers> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + <url>https://github.com/MasterAlt/sunbird-learning-platform.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> - <name>${branch_or_tag}</name> + <name>release-2.9.0</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> @@ -119,4 +121,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/RedisRetore/config.xml b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/RedisRetore/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..42f6ca335ed5bb1177ed70472c96534ff5deed29 --- /dev/null +++ b/deploy/jenkins/jobs/OpsAdministration/jobs/dev/jobs/KnowledgePlatform/jobs/RedisRetore/config.xml @@ -0,0 +1,123 @@ +<?xml version='1.1' encoding='UTF-8'?> +<flow-definition plugin="workflow-job@2.36"> + <actions/> + <description></description> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <hudson.model.StringParameterDefinition> + <name>redis_restore_file_name</name> + <description><font color=teal size=2>give the backup name to be picked to restore</font></description> + <defaultValue></defaultValue> + <trim>false</trim> + </hudson.model.StringParameterDefinition> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>private_branch</name> + <description></description> + <randomName>choice-parameter-193693971284924</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RedisRetore</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/RedisRetore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <name>branch_or_tag</name> + <description></description> + <randomName>choice-parameter-193693974507874</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.66"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.66"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>RedisRetore</projectName> + <projectFullName>OpsAdministration/dev/KnowledgePlatform/RedisRetore</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters></referencedParameters> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit></paramsToUseForLimit> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference></reference> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/backup/redis-restore/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/config.xml b/deploy/jenkins/jobs/Provision/config.xml index 68477b8ac7421fc78d69182df3125c9ab3412fdf..92618cba962f72c6132bd317b68ff0d74bfe0605 100644 --- a/deploy/jenkins/jobs/Provision/config.xml +++ b/deploy/jenkins/jobs/Provision/config.xml @@ -1,12 +1,12 @@ <?xml version='1.1' encoding='UTF-8'?> -<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.7"> +<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder@6.12"> <actions/> <description></description> <properties> - <org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig plugin="pipeline-model-definition@1.3.4.1"> + <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> <dockerLabel></dockerLabel> - <registry plugin="docker-commons@1.13"/> - </org.jenkinsci.plugins.pipeline.modeldefinition.config.FolderConfig> + <registry plugin="docker-commons@1.16"/> + </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> </properties> <folderViews class="com.cloudbees.hudson.plugins.folder.views.DefaultFolderViewHolder"> <views> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Cassandra/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Cassandra/config.xml index 01cae685725f41ac1ad1dc79b27eda7aa1180a54..7670b1cf703b5a18598e600530612e307898591c 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Cassandra/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Cassandra/config.xml @@ -1,89 +1,91 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196486141556745</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Cassandra</projectName> + <projectFullName>Provision/dev/Core/Cassandra</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196486144020383</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Cassandra</projectName> + <projectFullName>Provision/dev/Core/Cassandra</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -101,7 +103,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/CassandraExporter/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/CassandraExporter/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..6343c9bd824186487007004bd44b8f2984ee59f6 --- /dev/null +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/CassandraExporter/config.xml @@ -0,0 +1,117 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-196486141556745</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraExporter</projectName> + <projectFullName>Provision/dev/Core/CassandraExporter</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-196486144020383</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>CassandraExporter</projectName> + <projectFullName>Provision/dev/Core/CassandraExporter</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/provision/cassandra/Jenkinsfile.exporter</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/JenkinsSlave/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/JenkinsSlave/config.xml index 3f3e9b8f3a511df5ca76a5dd43585429d857e03d..3245cd533c0a2141469864f3e438481259cb3725 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/JenkinsSlave/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/JenkinsSlave/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Kafka/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Kafka/config.xml index 9d6f8c1e8eb303c394fbb35742be86b3fe48eeca..f49831d4996a37bc4fe3c28cdf3492112d7c0fcd 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Kafka/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Kafka/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Keycloak/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Keycloak/config.xml index 8b32f3a2397b22507424d8008f5563afd300e2ba..67440d7eee1d4ec2446bbf0c3361e64200cfbe3f 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Keycloak/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Keycloak/config.xml @@ -1,15 +1,14 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -19,73 +18,74 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196487835595646</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Keycloak</projectName> <projectFullName>Provision/dev/Core/Keycloak</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196487838166797</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Keycloak</projectName> <projectFullName>Provision/dev/Core/Keycloak</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -103,7 +103,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>1</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/LogES/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/LogES/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..9e219ff211b9f8731c419bcb9e6b99dfd6016a6d --- /dev/null +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/LogES/config.xml @@ -0,0 +1,117 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-186487879604743</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="db_restore" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LogEsUpgrade6xx</projectName> + <projectFullName>Provision/dev/Core/LogEsUpgrade6xx</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-186487885338467</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>LogEsUpgrade6xx</projectName> + <projectFullName>Provision/dev/Core/LogEsUpgrade6xx</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>1</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/provision/log-es-upgrade/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Logstash/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Logstash/config.xml index 95778c7d7083b23acaf115fd22035b519b30ffc9..144b79650d7113a9946eaeb7cdb0367eb3db68bf 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Logstash/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Logstash/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/MongodbCluster/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/MongodbCluster/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..51b9561dc0f92ff37ff5df40dc93aec8df517935 --- /dev/null +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/MongodbCluster/config.xml @@ -0,0 +1,117 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.40"> + <actions/> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-196486141556745</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>MongodbCluster</projectName> + <projectFullName>Provision/staging/Core/MongodbCluster</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.5.1"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-196486144020383</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.75"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.75"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>MongodbCluster</projectName> + <projectFullName>Provision/staging/Core/MongodbCluster</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.3"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.87"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.5.0"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/provision/mongodb-cluster/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Postgres/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Postgres/config.xml index bf512172cbcc0efb06a1f3c710243e96fe10fc57..26c84258d19541d0ae1c30c21da346b68a9a5280 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Postgres/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Postgres/config.xml @@ -1,87 +1,91 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196489635829894</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Postgres</projectName> + <projectFullName>Provision/dev/Core/Postgres</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196489639391445</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Postgres</projectName> + <projectFullName>Provision/dev/Core/Postgres</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -99,7 +103,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -110,4 +114,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdate/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdate/config.xml index 5ca5d99adddb2d14bf2274f9b6216d532334795f..d8a68c1d3baf6ebc128e569ce6a1a7d3f205998a 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdate/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdate/config.xml @@ -1,89 +1,91 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions/> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196490490920280</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>PostgresDbUpdate</projectName> + <projectFullName>Provision/dev/Core/PostgresDbUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196490493760485</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-devops">project-sunbird/sunbird-devops</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>PostgresDbUpdate</projectName> + <projectFullName>Provision/dev/Core/PostgresDbUpdate</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -101,7 +103,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdateManaged/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdateManaged/config.xml index 504dfb72b34fccf5fcee16950c34d7d86bef07ac..64f2665366e2c513094f5adf077a4b5de7cc2350 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdateManaged/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/PostgresDbUpdateManaged/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Redis/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Redis/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..258e0b0af3d68addc3cd329edb5066ba26fe598e --- /dev/null +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Redis/config.xml @@ -0,0 +1,127 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-196505638775314</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Redis</projectName> + <projectFullName>Provision/dev/Core/Redis</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-196505642335779</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Redis</projectName> + <projectFullName>Provision/dev/Core/Redis</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-devops.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/provision/redis/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Registry/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Registry/config.xml index 7a4cd19552d607949604c71dd6cfefca1c9af2a3..f8ae5abed8a831c51d9da6a8dcb518f12ac48ef8 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Registry/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Registry/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Secor/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Secor/config.xml index 102641d9ff8d5c369c4082e8aaf732c35d5a0a8b..b262ce95143a25abd4a8013a7f4812ddfeace3ea 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Secor/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/Secor/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/keycloak-test/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/keycloak-test/config.xml index e335f972dc2ca51a509d1d86c542607f5ce772e9..19e29c89936bdc99c6949c06ce79d3b80e987065 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/keycloak-test/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/keycloak-test/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/user-keycloak/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/user-keycloak/config.xml index 8e96c2c6cac5594c0c5720f29808245247ccdc19..e48455cea15f225576a188b2d3c38540d4e6ee22 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/user-keycloak/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/Core/jobs/user-keycloak/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml index b09d36dcacfb52c5c261120cb9834de2f44ecdf0..2b36b0fa31ab05784df82547c4c4c56974b7f904 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsAPI/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -14,25 +14,25 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-196492871381509</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -40,24 +40,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsAPI</projectName> + <projectFullName>Provision/dev/DataPipeline/AnalyticsAPI</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-196492874659821</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; @@ -66,12 +67,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsAPI</projectName> + <projectFullName>Provision/dev/DataPipeline/AnalyticsAPI</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -89,8 +91,8 @@ return """<b>This parameter is not used</b>"&quo <paramsToUseForLimit></paramsToUseForLimit> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSecor/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSecor/config.xml index c20e767a03b52667be1d9d789775c50845f33c4c..e37a1573efa8e0958ef4c68c26d07eecbcbbc55d 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSecor/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSecor/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,86 +7,91 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196493724128621</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsSecor</projectName> + <projectFullName>Provision/dev/DataPipeline/AnalyticsSecor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196493728691761</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsSecor</projectName> + <projectFullName>Provision/dev/DataPipeline/AnalyticsSecor</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -105,7 +109,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -116,4 +120,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSpark/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSpark/config.xml index 3e78f2bae08ae94fbb1750b1cb50a111901a66b3..1d7be9b905976fadb9f485b8fa7036a42abeee14 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSpark/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/AnalyticsSpark/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,73 +25,74 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196494527011530</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsSpark</projectName> <projectFullName>Provision/dev/DataPipeline/AnalyticsSpark</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196494532752488</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>AnalyticsSpark</projectName> <projectFullName>Provision/dev/DataPipeline/AnalyticsSpark</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -110,7 +110,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Cassandra/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Cassandra/config.xml index 3ddc4899058fc6b171608db9c903b29c4d4b32fe..efabbd98e177cd67c2b364649be79fb953f71277 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Cassandra/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Cassandra/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Druid/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Druid/config.xml index 7d0c034d93e4bba5688e97dd840302f5f6bf3cf7..2f1626e388de8ba6db37685250f06454092fd152 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Druid/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Druid/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -24,18 +23,52 @@ <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.CascadeChoiceParameter plugin="uno-choice@2.2.2"> + <name>service</name> + <description><font color=green size=2><b>Choose the services to deploy. Multi-selection is available.</b></font></description> + <randomName>choice-parameter-160652271515504</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>return['java', +'graphite', +'coordinator', +'overlord', +'broker', +'historical', +'mm']</script> + <sandbox>true</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script/> + <sandbox>true</sandbox> + </secureFallbackScript> + </script> + <projectName>Druid</projectName> + <projectFullName>Provision/dev/DataPipeline/Druid</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>PT_MULTI_SELECT</choiceType> + <filterable>false</filterable> + <filterLength>1</filterLength> + </org.biouno.unochoice.CascadeChoiceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -53,7 +86,7 @@ <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/InfluxDB/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/InfluxDB/config.xml index e0d7d7981fe403bf7bf7f28995cbdcdd79b64d9d..ef82c11365213f9f4d847aaab8978b4479aa64d6 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/InfluxDB/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/InfluxDB/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kafka/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kafka/config.xml index fb292a975064a173ba4ae9259da311af8fbdb14c..27266ac9c47b2ece25722101a94f476e13129efc 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kafka/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kafka/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,95 +7,98 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196496946659342</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Kafka</projectName> + <projectFullName>Provision/dev/DataPipeline/Kafka</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196496948791638</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Kafka</projectName> + <projectFullName>Provision/dev/DataPipeline/Kafka</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> <hudson.model.StringParameterDefinition> <name>remote</name> - <description></description> + <description/> <defaultValue>processing-cluster-kafka</defaultValue> <trim>false</trim> </hudson.model.StringParameterDefinition> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -114,7 +116,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kibana/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kibana/config.xml index cac92eae5353a7db23be6cd06c2bbd197ef374ae..84cd1003da032b03605502b9ea0e232d3b5a0632 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kibana/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Kibana/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml index 86592f868a20b24fb1066062a19a908642911b1c..24b356730a3f3e370cd4d105fd8cea65a5113dee 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/MLWorkbench/config.xml @@ -7,9 +7,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/NodeJs/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/NodeJs/config.xml index 9fa3048882589d766ddf560fa04759124e71c63c..190be995c7c21aa84054873521e4819f4244dc11 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/NodeJs/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/NodeJs/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Postgres/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Postgres/config.xml index bfed6405d97e838c5d00f87067f15350169e8c71..0526f34d4abe9724c7ff4c50a9c9a2488b910fd5 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Postgres/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Postgres/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/RedisCluster/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/RedisCluster/config.xml index d65b185419f7c48aba4677aeeb0e2446974a914a..1b8a272eeb9dea7b61430e8f6ce2263e43015855 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/RedisCluster/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/RedisCluster/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/TelemetrySearch/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/TelemetrySearch/config.xml index d8fa81c34fd1e00103545f8b11a008a757243eed..9f8e179efbf508ae3d9f772689f097b8a21b9a53 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/TelemetrySearch/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/TelemetrySearch/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml index f1baf8e9db98743bbe90e20572a97d693fbac8a6..0f08793d1a3789a17173c251ec8f508b202bd7c5 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Yarn/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,77 +25,78 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196500122471866</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>true</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Yarn</projectName> <projectFullName>Provision/dev/DataPipeline/Yarn</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196500128714203</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>true</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>true</sandbox> </secureFallbackScript> </script> <projectName>Yarn</projectName> <projectFullName>Provision/dev/DataPipeline/Yarn</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-data-pipeline</url> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -110,7 +110,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Zookeeper/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Zookeeper/config.xml index 8e02e9159d93b7adff6ae0155f16374b5887a464..ed757f53845a55c02ef1daa1d877c56f0f317b49 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Zookeeper/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/Zookeeper/config.xml @@ -1,5 +1,5 @@ <?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<flow-definition plugin="workflow-job@2.36"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -14,24 +14,24 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>private_branch</name> <description></description> <randomName>choice-parameter-196500899115571</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_private_branch.equals("true")) { return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } @@ -39,24 +39,25 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Zookeeper</projectName> + <projectFullName>Provision/dev/DataPipeline/Zookeeper</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> <name>branch_or_tag</name> <description></description> <randomName>choice-parameter-196500913815161</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> + <secureScript plugin="script-security@1.66"> <script>if (override_public_branch.equals("true")) { return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; @@ -65,12 +66,13 @@ else return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> + <secureFallbackScript plugin="script-security@1.66"> <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Zookeeper</projectName> + <projectFullName>Provision/dev/DataPipeline/Zookeeper</projectFullName> <parameters class="linked-hash-map"/> <referencedParameters></referencedParameters> <choiceType>ET_FORMATTED_HTML</choiceType> @@ -94,8 +96,8 @@ return """<b>This parameter is not used</b>"&quo <paramsToUseForLimit></paramsToUseForLimit> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/postgres-managed/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/postgres-managed/config.xml index 1a2bcd6580130e32115373900aa9f03575bf9eaf..2b9c16fdad0e2bcc6592706b2033b01c6d39b852 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/postgres-managed/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/DataPipeline/jobs/postgres-managed/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> @@ -25,73 +24,74 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196498570819230</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>postgres-managed</projectName> <projectFullName>Provision/dev/DataPipeline/postgres-managed</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196498577913500</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-data-pipeline">project-sunbird/sunbird-data-pipeline</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>postgres-managed</projectName> <projectFullName>Provision/dev/DataPipeline/postgres-managed</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -109,7 +109,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Cassandra/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Cassandra/config.xml index dbf93f6595cda921d98f6691217ac4baff9d2529..51554020ddf1c2f93013d2b25f0f07315f138d1d 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Cassandra/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Cassandra/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/CompositeSearch/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/CompositeSearch/config.xml index a80bfacf8805fab92921aa5fbbdeeba89ce7b32d..c311af545b66c8f7c73eeba453f27611b756b958 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/CompositeSearch/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/CompositeSearch/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.34"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,74 +25,77 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196502397927441</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CompositeSearch</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/CompositeSearch</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196502408664232</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.62"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.62"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>CompositeSearch</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/CompositeSearch</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.73"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..52868463afa5085ebccc74a8730196cb8973b1d5 --- /dev/null +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Dial/config.xml @@ -0,0 +1,127 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> + <actions> + <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> + <jobPropertyDescriptors> + <string>hudson.model.ParametersDefinitionProperty</string> + <string>com.sonyericsson.rebuild.RebuildSettings</string> + </jobPropertyDescriptors> + </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> + </actions> + <description/> + <keepDependencies>false</keepDependencies> + <properties> + <jenkins.model.BuildDiscarderProperty> + <strategy class="hudson.tasks.LogRotator"> + <daysToKeep>-1</daysToKeep> + <numToKeep>10</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>2</artifactNumToKeep> + </strategy> + </jenkins.model.BuildDiscarderProperty> + <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> + <autoRebuild>false</autoRebuild> + <rebuildDisabled>false</rebuildDisabled> + </com.sonyericsson.rebuild.RebuildSettings> + <hudson.model.ParametersDefinitionProperty> + <parameterDefinitions> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>private_branch</name> + <description/> + <randomName>choice-parameter-196504004472286</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Dial</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Dial</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> + <name>branch_or_tag</name> + <description/> + <randomName>choice-parameter-196504007625526</randomName> + <visibleItemCount>1</visibleItemCount> + <script class="org.biouno.unochoice.model.GroovyScript"> + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + +} +else +return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureScript> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> + <sandbox>false</sandbox> + </secureFallbackScript> + </script> + <projectName>Dial</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Dial</projectFullName> + <parameters class="linked-hash-map"/> + <referencedParameters/> + <choiceType>ET_FORMATTED_HTML</choiceType> + <omitValueField>true</omitValueField> + </org.biouno.unochoice.DynamicReferenceParameter> + </parameterDefinitions> + </hudson.model.ParametersDefinitionProperty> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> + <categories class="java.util.concurrent.CopyOnWriteArrayList"/> + <throttleEnabled>false</throttleEnabled> + <throttleOption>project</throttleOption> + <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> + <paramsToUseForLimit/> + </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + <triggers/> + </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> + </properties> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${branch_or_tag}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <submoduleCfg class="list"/> + <extensions> + <hudson.plugins.git.extensions.impl.CloneOption> + <shallow>true</shallow> + <noTags>false</noTags> + <reference/> + <depth>0</depth> + <honorRefspec>false</honorRefspec> + </hudson.plugins.git.extensions.impl.CloneOption> + </extensions> + </scm> + <scriptPath>pipelines/provision/dial/Jenkinsfile</scriptPath> + <lightweight>false</lightweight> + </definition> + <triggers/> + <disabled>false</disabled> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Kafka/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Kafka/config.xml index c13f5f045ce389577883b1cea94dd88148db1402..c342840a3d25f2964934ca16f9a42dda933483ba 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Kafka/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Kafka/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,92 +7,95 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196503227911555</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Kafka</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Kafka</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196503234123956</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Kafka</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Kafka</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml index 9eb3a8c0b7f5203a3dc335e25ada8014fdce91dd..47979810f10d4d0f650a71416e62741ce202cbce 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Learning/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,92 +7,95 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196504004472286</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Learning</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Learning</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196504007625526</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Learning</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Learning</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -122,4 +124,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml index 5add9187cdaaa303a8be87605c7c2b2c52785b7f..2d490d85a15e75b10d0505936488f6d8995bdbb0 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Neo4j/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,92 +7,95 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196504831541165</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4j</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Neo4j</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196504838020082</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.58"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.58"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Neo4j</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Neo4j</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.67"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -111,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Redis/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Redis/config.xml index 8bb0df164dc978918d21fec0c449ea4d85fe6719..65cc73c373e53d504b241c894c247764d143e070 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Redis/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Redis/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.36"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,15 +7,15 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> @@ -26,80 +25,81 @@ </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196505638775314</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Redis</projectName> <projectFullName>Provision/dev/KnowledgePlatform/Redis</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196505642335779</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.66"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.66"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Redis</projectName> <projectFullName>Provision/dev/KnowledgePlatform/Redis</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> <maxConcurrentPerNode>0</maxConcurrentPerNode> <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.75"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> - <url>https://github.com/project-sunbird/sunbird-learning-platform.git</url> + <url>https://github.com/project-sunbird/sunbird-data-pipeline.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> @@ -113,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/RedisCluster/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/RedisCluster/config.xml index b9b5b38d14c45f7e74a2abf032dbb4b283c2897a..0e8913e0adc641981b93bf06b1742d06b8e7208e 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/RedisCluster/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/RedisCluster/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml index 1865d82b1ae54bba77e387de5b4c525f93238521..819d053a5d5ebc480b1d3d16e621b72a49b575f5 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Search/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml index acdf2ac7f12cbe7ed891459c0512be9478d3fd69..ac1c40a5a55d3928269756374927ba1144561a86 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Yarn/config.xml @@ -14,9 +14,9 @@ <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> diff --git a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Zookeeper/config.xml b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Zookeeper/config.xml index 740a853a858427ef80c13f811a56b0e1ba963bbe..545feab171ca2cbe2dd36ba3891a29b7f7540919 100644 --- a/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Zookeeper/config.xml +++ b/deploy/jenkins/jobs/Provision/jobs/dev/jobs/KnowledgePlatform/jobs/Zookeeper/config.xml @@ -1,5 +1,4 @@ -<?xml version='1.1' encoding='UTF-8'?> -<flow-definition plugin="workflow-job@2.32"> +<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition plugin="workflow-job@2.38"> <actions> <org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.21"> <jobPropertyDescriptors> @@ -8,90 +7,95 @@ </jobPropertyDescriptors> </org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> </actions> - <description></description> + <description/> <keepDependencies>false</keepDependencies> <properties> <jenkins.model.BuildDiscarderProperty> <strategy class="hudson.tasks.LogRotator"> <daysToKeep>-1</daysToKeep> - <numToKeep>-1</numToKeep> + <numToKeep>10</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> - <artifactNumToKeep>5</artifactNumToKeep> + <artifactNumToKeep>2</artifactNumToKeep> </strategy> </jenkins.model.BuildDiscarderProperty> <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> - <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.30"> + <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.31"> <autoRebuild>false</autoRebuild> <rebuildDisabled>false</rebuildDisabled> </com.sonyericsson.rebuild.RebuildSettings> <hudson.model.ParametersDefinitionProperty> <parameterDefinitions> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>private_branch</name> - <description></description> + <description/> <randomName>choice-parameter-196485017539792</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_private_branch.equals("true")) { -return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" + <secureScript plugin="script-security@1.71"> + <script>if (override_private_branch.equals("true")) { +return """<input name="value" value="${private_repo_branch}" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Change this value to checkout a different branch from private repository.</b></font>""" } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Zookeeper</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Zookeeper</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> - <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.1"> + <org.biouno.unochoice.DynamicReferenceParameter plugin="uno-choice@2.2.2"> <name>branch_or_tag</name> - <description></description> + <description/> <randomName>choice-parameter-196485022834542</randomName> <visibleItemCount>1</visibleItemCount> <script class="org.biouno.unochoice.model.GroovyScript"> - <secureScript plugin="script-security@1.57"> - <script>if (override_public_branch.equals("true")) { -return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; + <secureScript plugin="script-security@1.71"> + <script>if (override_public_branch.equals("true")) { +return """<input name="value" value="" class="setting-input" type="text"><br> <font color=dimgray size=2><b>Provide the tag or branch name to checkout the Jenkinsfile and codebase.<br>Note: The tag or branch name for this job should be taken from <a href="https://github.com/project-sunbird/sunbird-learning-platform">project-sunbird/sunbird-learning-platform</a></b></font></b></font>"""; } else -return """<b>This parameter is not used</b>"""</script> +return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureScript> - <secureFallbackScript plugin="script-security@1.57"> - <script>return """<b>This parameter is not used</b>"""</script> + <secureFallbackScript plugin="script-security@1.71"> + <script>return """<b>This parameter is not used</b>"""</script> <sandbox>false</sandbox> </secureFallbackScript> </script> <projectName>Zookeeper</projectName> + <projectFullName>Provision/dev/KnowledgePlatform/Zookeeper</projectFullName> <parameters class="linked-hash-map"/> - <referencedParameters></referencedParameters> + <referencedParameters/> <choiceType>ET_FORMATTED_HTML</choiceType> <omitValueField>true</omitValueField> </org.biouno.unochoice.DynamicReferenceParameter> </parameterDefinitions> </hudson.model.ParametersDefinitionProperty> - <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.1"> + <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@2.0.2"> + <maxConcurrentPerNode>0</maxConcurrentPerNode> + <maxConcurrentTotal>0</maxConcurrentTotal> <categories class="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> - <paramsToUseForLimit></paramsToUseForLimit> + <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> + <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> <triggers/> </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> </properties> - <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.66"> - <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> + <definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.80"> + <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> @@ -109,7 +113,7 @@ return """<b>This parameter is not used</b>"&quo <hudson.plugins.git.extensions.impl.CloneOption> <shallow>true</shallow> <noTags>false</noTags> - <reference></reference> + <reference/> <depth>0</depth> <honorRefspec>false</honorRefspec> </hudson.plugins.git.extensions.impl.CloneOption> @@ -120,4 +124,4 @@ return """<b>This parameter is not used</b>"&quo </definition> <triggers/> <disabled>false</disabled> -</flow-definition> +</flow-definition> \ No newline at end of file diff --git a/kubernetes/helm_charts/core/nodebb/templates/configmap.yaml b/kubernetes/helm_charts/core/nodebb/templates/configmap.yaml deleted file mode 100644 index 12aed75c1998763f105361dbaaffec516b71f09b..0000000000000000000000000000000000000000 --- a/kubernetes/helm_charts/core/nodebb/templates/configmap.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# This file will get replaced at runtime ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: nodebb-config-json -data: - config.json: |- - { - "url": "{{ .Values.nodebb_url }}", - "secret": "100101", - "database": "mongo", - "port": "4567", - "mongo": { - "host": "{{ .Values.mongo_nodebb_host }}", - "port": "27017", - "database": "nodebb" - } - } \ No newline at end of file diff --git a/kubernetes/helm_charts/core/nodebb/templates/deployment.yaml b/kubernetes/helm_charts/core/nodebb/templates/deployment.yaml index 3b70382da560210a0ae43d2f4052c1284b5b1275..11be8513144a46e3c7ec9f04146d934c6d208e2e 100644 --- a/kubernetes/helm_charts/core/nodebb/templates/deployment.yaml +++ b/kubernetes/helm_charts/core/nodebb/templates/deployment.yaml @@ -24,10 +24,6 @@ spec: imagePullSecrets: - name: {{ .Values.imagepullsecrets }} {{- end }} - volumes: - - name: nodebb-config-json - configMap: - name: nodebb-config-json containers: - name: {{ .Chart.Name }} image: "{{ .Values.dockerhub }}/{{ .Values.repository }}:{{ .Values.image_tag }}" @@ -35,10 +31,6 @@ spec: envFrom: - configMapRef: name: {{ .Chart.Name }}-config - volumeMounts: - - name: nodebb-config-json - mountPath: /usr/src/app/config.json - subPath: config.json resources: {{ toYaml .Values.resources | indent 10 }} ports: diff --git a/kubernetes/helm_charts/monitoring/dashboards/dashboards/host-details.json b/kubernetes/helm_charts/monitoring/dashboards/dashboards/host-details.json index bfdfa3109900f69740284def1b6c2a553f723821..9cc11131b3d671d624be3a7484e406945b02d913 100644 --- a/kubernetes/helm_charts/monitoring/dashboards/dashboards/host-details.json +++ b/kubernetes/helm_charts/monitoring/dashboards/dashboards/host-details.json @@ -16,8 +16,7 @@ "editable": true, "gnetId": 2666, "graphTooltip": 0, - "id": 111, - "iteration": 1587138485395, + "iteration": 1611320586220, "links": [], "panels": [ { @@ -33,6 +32,12 @@ "decimals": null, "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "none", "gauge": { "maxValue": 100, @@ -64,7 +69,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -117,6 +121,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "percentunit", "gauge": { "maxValue": 100, @@ -148,7 +158,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -166,7 +175,7 @@ "lineColor": "rgb(31, 120, 193)", "show": true }, - "tableColumn": "", + "tableColumn": "{instance=\"28.0.2.25:9100\", job=\"vm-node-exporter\"}", "targets": [ { "expr": "node_load1{instance='$server:9100'} / count by (cluster, job, instance)(count by(cluster, job, instance, cpu)(node_cpu_seconds_total{instance='$server:9100'}))", @@ -200,6 +209,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "percent", "gauge": { "maxValue": 100, @@ -232,7 +247,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -288,6 +302,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "bytes", "gauge": { "maxValue": 100, @@ -320,7 +340,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -338,7 +357,7 @@ "lineColor": "rgb(31, 120, 193)", "show": false }, - "tableColumn": "", + "tableColumn": "node_memory_MemAvailable_bytes{instance=\"28.0.2.25:9100\", job=\"vm-node-exporter\"}", "targets": [ { "expr": "node_memory_MemAvailable_bytes{instance=~\"$server:9100\"}", @@ -377,6 +396,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "none", "gauge": { "maxValue": 100, @@ -409,7 +434,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "pluginVersion": "6.5.2", "postfix": "", "postfixFontSize": "50%", @@ -428,7 +452,7 @@ "lineColor": "rgb(31, 120, 193)", "show": false }, - "tableColumn": "", + "tableColumn": "{instance=\"28.0.2.25:9100\", job=\"vm-node-exporter\"}", "targets": [ { "expr": "count without(cpu, mode) (node_cpu_seconds_total{mode=\"idle\", instance=\"$server:9100\"})", @@ -467,6 +491,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "bytes", "gauge": { "maxValue": 100, @@ -499,7 +529,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -556,6 +585,12 @@ "decimals": 1, "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "s", "gauge": { "maxValue": 100, @@ -587,7 +622,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -605,7 +639,7 @@ "lineColor": "rgb(31, 120, 193)", "show": false }, - "tableColumn": "", + "tableColumn": "{instance=\"28.0.2.25:9100\", job=\"vm-node-exporter\"}", "targets": [ { "expr": "time() - node_boot_time_seconds{instance=~\"$server:9100\"}", @@ -637,6 +671,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 3, "fillGradient": 0, "grid": {}, @@ -737,6 +777,12 @@ "decimals": 2, "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 4, "fillGradient": 0, "grid": {}, @@ -847,6 +893,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -982,6 +1034,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "percent", "gauge": { "maxValue": 100, @@ -1013,7 +1071,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -1031,7 +1088,7 @@ "lineColor": "rgb(31, 120, 193)", "show": false }, - "tableColumn": "", + "tableColumn": "{instance=\"28.0.2.25:9100\", job=\"vm-node-exporter\"}", "targets": [ { "expr": "(node_memory_MemAvailable_bytes{instance=~\"$server:9100\"} / node_memory_MemTotal_bytes{instance=~\"$server:9100\"}) * 100", @@ -1064,6 +1121,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -1199,6 +1262,12 @@ "decimals": 2, "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -1327,6 +1396,12 @@ "dashLength": 10, "dashes": false, "datasource": null, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -1423,6 +1498,12 @@ "datasource": "Prometheus", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "format": "percentunit", "gauge": { "maxValue": 1, @@ -1454,7 +1535,6 @@ "maxDataPoints": 100, "nullPointMode": "connected", "nullText": null, - "options": {}, "postfix": "", "postfixFontSize": "50%", "prefix": "", @@ -1504,6 +1584,12 @@ "dashes": false, "datasource": "Prometheus", "description": "", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "gridPos": { @@ -1597,24 +1683,33 @@ "dashes": false, "datasource": "PrometheusProcessExporter", "decimals": 2, - "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 6, - "w": 24, + "h": 8, + "w": 12, "x": 0, "y": 29 }, "hiddenSeries": false, - "id": 22, + "id": 23, + "isNew": true, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": true, "min": false, - "rightSide": true, + "rightSide": false, "show": true, "sideWidth": null, "sort": "max", @@ -1623,7 +1718,7 @@ "values": true }, "lines": true, - "linewidth": 1, + "linewidth": 2, "links": [], "nullPointMode": "null", "options": { @@ -1639,13 +1734,13 @@ "steppedLine": false, "targets": [ { - "expr": "sum(rate(namedprocess_namegroup_cpu_seconds_total{groupname=~\"$processes\", instance=\"$server:9256\"}[$interval])) by (groupname)", - "format": "time_series", + "expr": "sum(rate(namedprocess_namegroup_cpu_seconds_total{groupname=~\"$processes\", instance=~\"$server:9256\"}[$interval])) by (groupname,instance)", "interval": "", - "intervalFactor": 2, - "legendFormat": "{{groupname}}", + "intervalFactor": 1, + "legendFormat": "{{instance}} | {{groupname}}", + "metric": "process_namegroup_cpu_seconds_total", "refId": "A", - "step": 2 + "step": 10 } ], "thresholds": [], @@ -1654,9 +1749,10 @@ "timeShift": null, "title": "Process CPU Usage", "tooltip": { + "msResolution": false, "shared": true, "sort": 0, - "value_type": "individual" + "value_type": "cumulative" }, "type": "graph", "xaxis": { @@ -1668,16 +1764,16 @@ }, "yaxes": [ { - "decimals": 2, + "$$hashKey": "object:353", "format": "percentunit", "label": null, "logBase": 1, "max": null, - "min": null, + "min": 0, "show": true }, { - "decimals": null, + "$$hashKey": "object:354", "format": "short", "label": null, "logBase": 1, @@ -1698,33 +1794,39 @@ "dashes": false, "datasource": "PrometheusProcessExporter", "decimals": 2, - "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 35 + "h": 8, + "w": 12, + "x": 12, + "y": 29 }, "hiddenSeries": false, - "id": 23, + "id": 25, + "isNew": true, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": true, "min": false, - "rightSide": true, + "rightSide": false, "show": true, - "sideWidth": 750, - "sort": "max", - "sortDesc": true, "total": false, "values": true }, "lines": true, - "linewidth": 1, + "linewidth": 2, "links": [], "nullPointMode": "null", "options": { @@ -1740,13 +1842,13 @@ "steppedLine": false, "targets": [ { - "expr": "namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\", instance=\"$server:9256\"}", - "format": "time_series", + "expr": "namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\", instance=~\"$server:9256\"}", "interval": "", - "intervalFactor": 2, - "legendFormat": "{{groupname}}", + "intervalFactor": 1, + "legendFormat": "{{instance}} | {{groupname}}", + "metric": "namedprocess_namegroup_memory_bytes", "refId": "A", - "step": 2 + "step": 10 } ], "thresholds": [], @@ -1755,6 +1857,7 @@ "timeShift": null, "title": "Process Memory Usage", "tooltip": { + "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" @@ -1769,11 +1872,11 @@ }, "yaxes": [ { - "format": "decbytes", + "format": "bytes", "label": null, "logBase": 1, "max": null, - "min": null, + "min": 0, "show": true }, { @@ -1797,33 +1900,41 @@ "dashes": false, "datasource": "PrometheusProcessExporter", "decimals": 2, - "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 6, - "w": 24, + "h": 8, + "w": 12, "x": 0, - "y": 41 + "y": 37 }, "hiddenSeries": false, - "id": 24, + "id": 27, + "isNew": true, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": true, "min": false, - "rightSide": true, + "rightSide": false, "show": true, - "sideWidth": null, "sort": "max", "sortDesc": true, "total": false, "values": true }, "lines": true, - "linewidth": 1, + "linewidth": 2, "links": [], "nullPointMode": "null", "options": { @@ -1839,13 +1950,13 @@ "steppedLine": false, "targets": [ { - "expr": "namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"virtual\", instance=\"$server:9256\"}", - "format": "time_series", + "expr": "namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"virtual\", instance=~\"$server:9256\"}", "interval": "", - "intervalFactor": 2, - "legendFormat": "{{groupname}}", + "intervalFactor": 1, + "legendFormat": "{{instance}} | {{groupname}}", + "metric": "namedprocess_namegroup_memory_bytes", "refId": "A", - "step": 2 + "step": 10 } ], "thresholds": [], @@ -1854,6 +1965,7 @@ "timeShift": null, "title": "Process Page Memory Usage", "tooltip": { + "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" @@ -1868,15 +1980,14 @@ }, "yaxes": [ { - "format": "decbytes", + "format": "bytes", "label": null, "logBase": 1, "max": null, - "min": null, + "min": 0, "show": true }, { - "decimals": null, "format": "short", "label": null, "logBase": 1, @@ -1896,34 +2007,42 @@ "dashLength": 10, "dashes": false, "datasource": "PrometheusProcessExporter", - "decimals": 0, - "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, + "grid": {}, "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 47 + "h": 8, + "w": 12, + "x": 12, + "y": 37 }, "hiddenSeries": false, - "id": 25, + "id": 29, + "isNew": true, "legend": { "alignAsTable": true, - "avg": true, + "avg": false, "current": true, - "max": true, + "hideEmpty": false, + "hideZero": false, + "max": false, "min": false, - "rightSide": true, + "rightSide": false, "show": true, "sideWidth": null, - "sort": "max", - "sortDesc": true, "total": false, "values": true }, "lines": true, - "linewidth": 1, + "linewidth": 2, "links": [], "nullPointMode": "null", "options": { @@ -1939,13 +2058,13 @@ "steppedLine": false, "targets": [ { - "expr": "sum(namedprocess_namegroup_num_procs{groupname=~\"$processes\", instance=\"$server:9256\"}) by (groupname)", - "format": "time_series", + "expr": "sum(namedprocess_namegroup_num_procs{groupname=~\"$processes\", instance=~\"$server:9256\"}) by (groupname,instance)", "interval": "", - "intervalFactor": 2, - "legendFormat": "{{groupname}}", + "intervalFactor": 1, + "legendFormat": "{{instance}} | {{groupname}}", + "metric": "process_namegroup_num_procs", "refId": "A", - "step": 2 + "step": 10 } ], "thresholds": [], @@ -1954,6 +2073,7 @@ "timeShift": null, "title": "Number of Processes In Group", "tooltip": { + "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" @@ -1968,7 +2088,6 @@ }, "yaxes": [ { - "decimals": null, "format": "short", "label": null, "logBase": 1, @@ -1977,215 +2096,12 @@ "show": true }, { - "decimals": null, "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PrometheusProcessExporter", - "decimals": null, - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 53 - }, - "hiddenSeries": false, - "id": 26, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": null, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(namedprocess_namegroup_read_bytes_total{groupname=~\"$processes\", instance=\"$server:9256\"}[$interval])", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{groupname}}", - "refId": "A", - "step": 2 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Process Read Bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "KBs", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "decimals": null, - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "PrometheusProcessExporter", - "decimals": 0, - "description": "", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 59 - }, - "hiddenSeries": false, - "id": 27, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sideWidth": 750, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(namedprocess_namegroup_write_bytes_total{groupname=~\"$processes\", instance=\"$server:9256\"}[$interval])", - "format": "time_series", - "interval": "", - "intervalFactor": 2, - "legendFormat": "{{groupname}}", - "refId": "A", - "step": 2 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Process Write Bytes", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "KBs", "label": null, "logBase": 1, "max": null, "min": null, "show": true - }, - { - "decimals": null, - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true } ], "yaxis": { @@ -2195,7 +2111,7 @@ } ], "refresh": "1m", - "schemaVersion": 21, + "schemaVersion": 25, "style": "dark", "tags": [ "prometheus" @@ -2205,9 +2121,9 @@ { "allValue": null, "current": { - "tags": [], - "text": "28.0.2.13", - "value": "28.0.2.13" + "selected": false, + "text": "28.0.2.25", + "value": "28.0.2.25" }, "datasource": "Prometheus", "definition": "label_values(node_boot_time_seconds,instance)", @@ -2234,15 +2150,15 @@ "auto_min": "10s", "current": { "selected": false, - "text": "1m", - "value": "1m" + "text": "10m", + "value": "10m" }, "hide": 0, "label": null, "name": "interval", "options": [ { - "selected": true, + "selected": false, "text": "1m", "value": "1m" }, @@ -2252,7 +2168,7 @@ "value": "5m" }, { - "selected": false, + "selected": true, "text": "10m", "value": "10m" }, @@ -2298,6 +2214,7 @@ } ], "query": "1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", "refresh": 2, "skipUrlSync": false, "type": "interval" @@ -2305,14 +2222,17 @@ { "allValue": null, "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "tags": [], + "text": "/usr/share/filebeat/bin/filebeat | root", + "value": [ + "/usr/share/filebeat/bin/filebeat | root" + ] }, "datasource": "PrometheusProcessExporter", "definition": "label_values(namedprocess_namegroup_cpu_seconds_total{instance=\"$server:9256\"}, groupname)", "hide": 0, - "includeAll": true, + "includeAll": false, "label": null, "multi": true, "name": "processes", @@ -2336,7 +2256,6 @@ }, "timepicker": { "refresh_intervals": [ - "5s", "10s", "30s", "1m", @@ -2362,5 +2281,5 @@ "timezone": "browser", "title": "Host Details", "uid": "mrXQlqCZz", - "version": 40 -} + "version": 1 +} \ No newline at end of file diff --git a/kubernetes/helm_charts/monitoring/dashboards/dashboards/process-exporter.json b/kubernetes/helm_charts/monitoring/dashboards/dashboards/process-exporter.json index e3b144d6632499ebbad99fb546c91c4ec1bc5418..9f297fead6904a554dc3e0f0eb4bbde53cb1a790 100644 --- a/kubernetes/helm_charts/monitoring/dashboards/dashboards/process-exporter.json +++ b/kubernetes/helm_charts/monitoring/dashboards/dashboards/process-exporter.json @@ -16,8 +16,8 @@ "editable": true, "gnetId": 249, "graphTooltip": 1, - "id": 58, - "iteration": 1587139046794, + "id": 122, + "iteration": 1611314228618, "links": [ { "asDropdown": true, @@ -41,6 +41,12 @@ "decimals": 2, "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -143,6 +149,12 @@ "decimals": 2, "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -242,6 +254,12 @@ "decimals": 2, "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -342,6 +360,12 @@ "datasource": "PrometheusProcessExporter", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -443,6 +467,12 @@ "datasource": "PrometheusProcessExporter", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -541,6 +571,12 @@ "datasource": "PrometheusProcessExporter", "editable": true, "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, "fill": 1, "fillGradient": 0, "grid": {}, @@ -633,7 +669,7 @@ } ], "refresh": "1m", - "schemaVersion": 21, + "schemaVersion": 25, "style": "dark", "tags": [ "OS" @@ -720,15 +756,18 @@ { "allValue": null, "current": { - "text": "28.0.2.25:9256", - "value": "28.0.2.25:9256" + "selected": true, + "text": "28.0.2.8:9256", + "value": [ + "28.0.2.8:9256" + ] }, "datasource": "PrometheusProcessExporter", "definition": "label_values(namedprocess_namegroup_cpu_seconds_total{job=\"process-exporter\"},instance)", "hide": 0, "includeAll": false, "label": null, - "multi": false, + "multi": true, "name": "instance", "options": [], "query": "label_values(namedprocess_namegroup_cpu_seconds_total{job=\"process-exporter\"},instance)", @@ -776,7 +815,6 @@ }, "timepicker": { "refresh_intervals": [ - "5s", "10s", "30s", "1m", @@ -802,5 +840,5 @@ "timezone": "browser", "title": "Process Exporter", "uid": "z7D_C1CWz", - "version": 8 -} + "version": 1 +} \ No newline at end of file diff --git a/pipelines/build/nodebb/Dockerfile b/pipelines/build/nodebb/Dockerfile index e9c730d08fb973bb26544511ca089beed5ecebad..188d2c86609b94acf7b7a8033a463fef084a298a 100644 --- a/pipelines/build/nodebb/Dockerfile +++ b/pipelines/build/nodebb/Dockerfile @@ -11,11 +11,11 @@ RUN npm install --only=prod && \ npm cache clean --force -RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-oidc.git -RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-api.git -RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-telemetry.git -RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-azure-storage.git -RUN npm install https://github.com/NodeBB/nodebb-plugin-write-api.git +RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-oidc.git#7482a20a2c2670d4409ef936df35fd260293bcce +RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-api.git#105d83c0accf095115eced997aa7a756d9923a62 +RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-telemetry.git#f6ae10182c881b6d05b1d29208ac2d328d920f11 +RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-azure-storage.git#3469f7a2169ab08bdc1c7b9b756b1405d387e9c6 +RUN npm install https://github.com/NodeBB/nodebb-plugin-write-api.git#cc795803a1c61042fc6eebeaabc89e4d8c233362 diff --git a/pipelines/deploy/logger/Jenkinsfile b/pipelines/deploy/logger/Jenkinsfile index 8050acc8553bdc3ebe4466ede1309f3f693bf82e..e5b8d17efc82afe8d052726e7b9fca0cd26243d5 100644 --- a/pipelines/deploy/logger/Jenkinsfile +++ b/pipelines/deploy/logger/Jenkinsfile @@ -25,8 +25,8 @@ node() { module = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-2].trim() jobName = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-1].trim() ansiblePlaybook = "${currentWs}/ansible/logging.yml" - ansibleExtraArgs = "--tags ${params.tag} --vault-password-file /var/lib/jenkins/secrets/vault-pass -v" - values.put('currentWs', currentWs) + ansibleExtraArgs = "--tags ${params.tags} --extra-vars \"hosts=${params.hosts} tags=${params.tags}\" --vault-password-file /var/lib/jenkins/secrets/vault-pass --timeout 2" + values.put('currentWs', currentWs) values.put('env', envDir) values.put('module', module) values.put('jobName', jobName) diff --git a/pipelines/provision/log-es-upgrade/Jenkinsfile b/pipelines/provision/log-es-upgrade/Jenkinsfile index 8a7743d6a0cdba7e1d6b25bc177430bf32a85f9a..c5cba075dc78ce4ca961fae7e43a761d2b0108ea 100644 --- a/pipelines/provision/log-es-upgrade/Jenkinsfile +++ b/pipelines/provision/log-es-upgrade/Jenkinsfile @@ -24,7 +24,7 @@ node() { module = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-2].trim() jobName = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-1].trim() currentWs = sh(returnStdout: true, script: 'pwd').trim() - ansiblePlaybook = "${currentWs}/ansible/esupgrade.yml" + ansiblePlaybook = "${currentWs}/ansible/provision-log-es.yml" ansibleExtraArgs = "--vault-password-file /var/lib/jenkins/secrets/vault-pass" values.put('currentWs', currentWs) values.put('env', envDir) diff --git a/pipelines/provision/log-es-upgrade/Jenkinsfile.latest b/pipelines/provision/log-es-upgrade/Jenkinsfile.latest deleted file mode 100644 index 38d0bf410ec38590dacad541c2935249a122afc6..0000000000000000000000000000000000000000 --- a/pipelines/provision/log-es-upgrade/Jenkinsfile.latest +++ /dev/null @@ -1,51 +0,0 @@ -@Library('deploy-conf') _ -node() { - try { - String ANSI_GREEN = "\u001B[32m" - String ANSI_NORMAL = "\u001B[0m" - String ANSI_BOLD = "\u001B[1m" - String ANSI_RED = "\u001B[31m" - String ANSI_YELLOW = "\u001B[33m" - - stage('checkout public repo') { - folder = new File("$WORKSPACE/.git") - if (folder.exists()) - { - println "Found .git folder. Clearing it.." - sh'git clean -fxd' - } - checkout scm - } - - ansiColor('xterm') { - stage('deploy'){ - values = [:] - envDir = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-3].trim() - module = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-2].trim() - jobName = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-1].trim() - currentWs = sh(returnStdout: true, script: 'pwd').trim() - ansiblePlaybook = "${currentWs}/ansible/esupgradelatest.yml" - ansibleExtraArgs = "--vault-password-file /var/lib/jenkins/secrets/vault-pass" - values.put('currentWs', currentWs) - values.put('env', envDir) - values.put('module', module) - values.put('jobName', jobName) - values.put('ansiblePlaybook', ansiblePlaybook) - values.put('ansibleExtraArgs', ansibleExtraArgs) - println values - ansible_playbook_run(values) - currentBuild.result = 'SUCCESS' - currentBuild.description = "Private: ${params.private_branch}, Public: ${params.branch_or_tag}" - } - } - summary() - } - catch (err) { - currentBuild.result = 'FAILURE' - throw err - } - finally { - slack_notify(currentBuild.result) - email_notify() - } -} diff --git a/private_repo/ansible/inventory/dev/Core/common.yml b/private_repo/ansible/inventory/dev/Core/common.yml index 3bcd1282374a3a33657092f6d93f8c8cc74b32bf..d2ed77e872a0f5c4aea08287344fb201b836a5b5 100644 --- a/private_repo/ansible/inventory/dev/Core/common.yml +++ b/private_repo/ansible/inventory/dev/Core/common.yml @@ -7,60 +7,34 @@ proto: # Protocol # External service ips # should be accessible from core containers -learningservice_ip: # Load balancer IP for learning server -searchservice_ip: # search service Load balancer IP -analyticsapi_ip: # Analytics Service Load Balancer IP -keycloak_url: "" # Keycloak Load balancer IP; eg http://10.10.10.10 -sunbird_swarm_manager_lb_ip: # Swarm manager load balancer private IP. If you don't have a load swarm manager load balancer, you can use swarm manager private ip. +learningservice_ip: # Load balancer IP for learning server or vm ip if its a single vm for learning service +dialservice_ip: # dial service vm ip or Load balancer ip +keycloak_url: "" # Keycloak Load balancer IP; eg http://10.10.10.10 +# Ip Address of the keycloak without http +# eg: 11.2.1.10 +keycloak_lb_ip: # Sunbird Application name and framework name sunbird_default_channel: # Organization channel name which portal will connect to sunbird_app_name: # By default app name will be sunbird # Cloud Account details -sunbird_content_azure_storage_container: # Conatainer store assets/public -## Blob where data analytics pushing content -## Check same variable in DP common.yml -artifacts_container: '' # Azure blob container name to save built artifacts - -## Mail config -mail_server_host: -mail_server_username: "" -alerts_mailing_list : "" # Comma separated mail list for Alerts; eg: user1@mail.com, user2@mail.com -sunbird_mail_server_from_email: # Email ID that should be as from address in mails -sunbird_env_logo_url: # put public url for logo, this logo url will be used in email sending. -########################### Release-2.9.0 variables ####################################### -# public storage account with content conatiner. -sunbird_azure_public_storage_account_name: -sunbird_private_storage_account_name: - -# Used to store the private contents of the storage account. -sunbird_azure_private_storage_account_name: - -# used to store backups for or application DB's -sunbird_azure_management_storage_account_name: - -# This account need to be private to store jenkins build artifacts which will be used commonly between environments. -sunbird_azure_artifact_storage_account_name: - -# Certs related vars -certs_badge_name: "" # Course Completion Certificate Name e.g value is "Course Completion Certificate" -certs_badge_description: "" # Descripton of course Completion e.g value is "Successfully completed course on Sunbird" -certs_badge_image: "" # Image of the certs badge e.g value is "sunbird" -certs_badge_root_org_id: "" # Root org ID for which the certs will be created e.g value is "0124229474659643111" -certs_badge_issuer_name: "" # The issuer of the certs name e.g value is "Government of karnataka" -certs_badge_issuer_url: "" # Issuer organisation official URL e.g value is "https://testdomain.in" -cert_service_cloud_storage_type: azure +sunbird_azure_public_storage_account_name: # public storage account with content conatiner. +sunbird_content_azure_storage_container: # where cntent is stored, it has to be created in pubic storage account, its valuse should be same as azure_public_container variable in kp/common.yml +sunbird_private_storage_account_name: ## Used to store the private contents of the storage account. +sunbird_azure_private_storage_account_name: +sunbird_azure_management_storage_account_name: # used to store backups for or application DB's +sunbird_azure_artifact_storage_account_name: # This account need to be private to store jenkins build artifacts which will be used commonly between environments. +artifacts_container: '' # Azure blob container name to save built artifacts, default it can be artifacts #### Content-service #### environment_id: # value as to be as Knowledgeplatfom/common.yml environment_id -graph_passport_key: "{{core_vault_graph_passport_key}}" - +graph_passport_key: "{{core_vault_graph_passport_key}}" # Kubernetes variables -namespace: dev -imagepullsecrets: devregistrysecret +namespace: "{{ env }}" +imagepullsecrets: "{{ env }}registrysecret" # this willl be prepended to your image # for example, if you give # dockerhub: sunbird @@ -74,29 +48,50 @@ sunbird_portal_player_cdn_enabled: false # Ip of nginx private ingress # Give Ip Address with which the private ingress should be created # For safety reason, give ip address from bottom range of cidr -# for ex: if cidr is 11.2.1.0/24 -private_ingressgateway_ip: 11.2.1.220 +# for ex: if cidr is 11.2.1.0/24 +private_ingressgateway_ip: 11.2.1.220 storage_class_name: "" -# Ip Address of the keycloak without http -# eg: 11.2.1.10 -keycloak_lb_ip: +private_ingress_custom_annotations: true -# Enable following if you're using kubernetes - -## sunbird_lms_base_url: "http://{{private_ingressgateway_ip}}/api" ### keycloak env variable -## sunbird_user_service_base_url: "http://{{private_ingressgateway_ip}}/learner" #### keycloak env variable -## __lms_host__: "http://{{private_ingressgateway_ip}}/learner" ### yarn job -## sunbird_content_service_api_base_url: "http://{{private_ingressgateway_ip}}/content" -## sunbird_search_service_api_base_url: "http://{{private_ingressgateway_ip}}/search" -## sunbird_user_service_api_base_url: "http://{{private_ingressgateway_ip}}/learner" -## kibana_service: kibana.logging.svc.cluster.local:5601 +default_org_hash_id: "" +dataexhaust_super_admin_channel: sunbird +postgres: + db_url: "{{ groups['postgres'][0] }}" + db_username: analytics + db_name: analytics + db_password: "{{core_vault_dp_pgdb_password}}" + db_table_name: "{{env}}_consumer_channel_mapping" + db_port: 5432 + db_admin_user: postgres + db_admin_password: "{{core_vault_postgres_password}}" +sunbird_google_captcha_site_key: +google_captcha_private_key: +# Admin util keys +adminutil__access_keyprefix: "accessv1_key" +adminutil__access_keystart: 1 +adminutil__access_keycount: 10 +######################### Optional ################### +## Mail config +mail_server_host: +mail_server_username: "" +alerts_mailing_list : "" # Comma separated mail list for Alerts; eg: user1@mail.com, user2@mail.com +sunbird_mail_server_from_email: # Email ID that should be as from address in mails +sunbird_env_logo_url: # put public url for logo, this logo url will be used in email sending. +# Certs related vars +certs_badge_name: "" # Course Completion Certificate Name e.g value is "Course Completion Certificate" +certs_badge_description: "" # Descripton of course Completion e.g value is "Successfully completed course on Sunbird" +certs_badge_image: "" # Image of the certs badge e.g value is "sunbird" +certs_badge_root_org_id: "" # Root org ID for which the certs will be created e.g value is "0124229474659643111" +certs_badge_issuer_name: "" # The issuer of the certs name e.g value is "Government of karnataka" +certs_badge_issuer_url: "" # Issuer organisation official URL e.g value is "https://testdomain.in" +cert_service_cloud_storage_type: azure diff --git a/private_repo/ansible/inventory/dev/Core/hosts b/private_repo/ansible/inventory/dev/Core/hosts index 3fed5ea83ee936aa8492dbaab6509427d4d6c27c..cba74004b69c0c810409716ebda5c6b1dee42d55 100644 --- a/private_repo/ansible/inventory/dev/Core/hosts +++ b/private_repo/ansible/inventory/dev/Core/hosts @@ -1,15 +1,15 @@ # Alert manager nodes which should be clustered # This values should be one of any manager node, if you've multinode cluster [alert-manager:children] -# By default this value can be swarm-manager-1 or 2 or n; but for a single +# By default this value can be swarm-manager-1 or 2 or n; but for a single # cluster it should be one value. # If you have multiple cluster you can list all ips below one by one swarm-manager-1 -[swarm-manager-1] +[swarm-manager-1] 18.0.0.15 swarm_master=true -# This host will make sure prometheus for all stateful services +# This host will make sure prometheus for all stateful services # will run on a single node, as it has storage dependancy # By default this host is same as docker swarm prometheus [swarm-agent-for-prometheus-stateful:children] @@ -25,17 +25,26 @@ swarm-manager-1 swarm-node-1 [keycloak-1] -18.0.0.9 +18.3.1.6 [keycloak:children] keycloak-1 [log-es-2] -18.0.0.15 es_instance_name=log-es-2 node_name=log-es-2 es_etc_node_master=true es_etc_node_data=true +18.3.1.6 es_instance_name=log-es-2 node_name=log-es-2 es_etc_node_master=true es_etc_node_data=true [log-es:children] log-es-2 +[mongo_master] +11.2.3.75 mongodb_master=True + +[mongo_replicas] #add ip in case replicaSet + +[mongo:children] +mongo_master +mongo_replicas + [swarm-agent-for-prometheus-1] 18.0.0.15 @@ -64,7 +73,7 @@ swarm-agent-dashboard 18.0.0.15 [es-1] -18.0.0.9 es_instance_name=es-1 es_etc_node_master=true es_etc_node_data=true +18.3.0.4 es_instance_name=es-1 es_etc_node_master=true es_etc_node_data=true [es-backup:children] es-1 @@ -76,19 +85,22 @@ log-es-2 es-1 [cassandra-1] -18.0.0.9 +18.3.0.4 [cassandra:children] cassandra-1 [postgresql-master-1] -18.0.0.9 +18.3.0.4 [postgresql-master:children] postgresql-master-1 [postgresql-slave-1] -18.0.0.9 +18.3.0.4 + +[swarm-manager] +0.0.0.0 #### keep as it is [postgresql-slave:children] postgresql-slave-1 @@ -98,70 +110,69 @@ postgresql-slave postgresql-master [kafka-1] -18.0.0.13 kafka_id=1 +18.3.1.5 kafka_id=1 [processing-cluster-kafka] -18.0.0.13 +18.3.1.5 [kafka:children] kafka-1 [processing-cluster-zookeepers] -18.0.0.50 # Zookeeper IP of processing cluster in Data pipeline +18.3.1.5 # Zookeeper IP of processing cluster in Data pipeline + +[ingestion-cluster-kafka] +18.3.0.5 [zookeeper:children] processing-cluster-zookeepers [lp-redis] -18.0.0.51 # Redis master IP of Knowledge platform +18.3.1.5 # Redis master IP of Knowledge platform + +[dp-redis] +18.3.1.5 [lp-redis-ps:children] -lp-redis +lp-redis [redis-ps:children] -lp-redis-ps +lp-redis-ps [redis-exporter-targets:children] lp-redis [learning-neo4j-node1] -15.0.2.9 # Neo4j ip of Knowledge platform +18.3.0.4 # Neo4j ip of Knowledge platform [lp-cassandra] -18.0.0.9 # cassandra ip of Knowledge platform +18.3.0.4 # cassandra ip of Knowledge platform [dp-cassandra] -18.0.0.9 # cassandra ip of Datapipeline +18.3.0.4 # cassandra ip of Datapipeline [local] -localhost +localhost ansible_connection=local [raw-broker] #Druid Broker IP localhost -[swarm-agent-for-alertmanager:children] -swarm-agent-for-alertmanager-1 - [kong-api] localhost -[swarm-bootstrap-manager:children] -swarm-manager - -[swarm-nodes:children] -swarm-manager -swarm-bootstrap-manager -swarm-agent-for-prometheus -swarm-agent-for-alertmanager +[composite-search-cluster] +18.3.0.4 -[node-exporter:children] -swarm-manager +[yarn-master] +18.3.1.8 -[log-forwarder:children] -swarm-manager +[yarn-slave] +18.3.1.8 #yarn master +18.3.1.9 -[composite-search-cluster] -15.0.2.6 +[yarn:children] +yarn-master +yarn-slave [core:children] es @@ -169,23 +180,21 @@ log-es cassandra postgresql-master postgresql-slave -swarm-nodes -swarm-manager kafka keycloak -swarm-dashboard -swarm-agent-dashboard composite-search-cluster +processing-cluster-kafka +yarn [env:children] core local -[log-forwarder:children] -swarm-manager - [dp-druid-broker] -11.3.0.3 # Druid broker IP for druid proxy api +0.0.0.0 # Druid broker IP for druid proxy api + +[raw-coordinator] +0.0.0.0 [all:vars] # If you want to tag your prometheus data with unique cluster ids diff --git a/private_repo/ansible/inventory/dev/Core/secrets.yml b/private_repo/ansible/inventory/dev/Core/secrets.yml index 199c25f914d8b9627c961f9bff5a56570d9ecaf2..676db8a71ccb2c78714cb1c6af693a87cda68743 100644 --- a/private_repo/ansible/inventory/dev/Core/secrets.yml +++ b/private_repo/ansible/inventory/dev/Core/secrets.yml @@ -1,28 +1,29 @@ # !! Might deprecate -core_vault_sunbird_ekstep_api_key: +core_vault_sunbird_ekstep_api_key: #Take the jwt token api-admin from Jenkins job OnboardConsumers core_vault_sunbird_encryption_key: #Random hash to encrypt data -core_vault_kong__test_jwt: +core_vault_kong__test_jwt: #Take the jwt token api-admin from Jenkins job OnboardConsumers ############# Core ####################### ####### Secrets ####### core_vault_sunbird_trampoline_secret: # some 8 digit password for keycloak sso user -core_vault_postgres_password: +core_vault_postgres_password: #update same password in dp secrets dp_vault_pgdb_admin_password variable +core_vault_dp_pgdb_password: #update same password in dp secrets dp_vault_pgdb_password variable core_vault_sunbird_azure_storage_key : core_vault_docker_registry_url: "https://index.docker.io/v1" # use this value if using dockerhub core_vault_docker_registry_user: core_vault_docker_registry_password: + core_vault_proxy_site_key: |+ core_vault_proxy_site_crt: |+ core_vault_ansible_vault_password: crypto_encryption_key: # any crypto key of 32 bit length, used by portal to encrypt and decrypt the userDetails for forgot password flow - ################### DONT FILL THESE VARIABLES INITIALLY ################### core_vault_sunbird_sso_publickey: # Get After Keycloak Deployment -core_vault_sunbird_api_auth_token: #Take the jwt token api-management-test-user from Jenkins job OnboardConsumers and update core_vault_sunbird_api_auth_token if using KP and DP along with core +core_vault_sunbird_api_auth_token: #Take the jwt token api-admin from Jenkins job OnboardConsumers and update core_vault_sunbird_api_auth_token if using KP and DP along with core core_vault_sunbird_keycloak_user_federation_provider_id: # Get after keycloak deployment ##### Release-2.3.0 ################### @@ -33,11 +34,19 @@ core_vault_enc_master_pass: test # encryption password for the keys core_vault_graph_passport_key: #copy value from variable lp_vault_graph_passport_key from KnowledgePlatform/Secrets.yml ##### release-2.7 vars ##### +## How to generate sas token +# Run the below command in shell +# +# date +'%Y-%m-%dT%H:%m:%SZ' -d '+1 year' +# sas_token=?`az storage account generate-sas --account-name "{{ azure_plugin_storage_account_name }}" --account-key "{{ azure_plugin_storage_account_key }}" --expiry $sas_expire_time --https-only --permissions acdlpruw --resource-types sco --services bfqt | xargs` +# +## + # generate a sas for the blob for entire storage accout with write and read access artifact_azure_account_sas: # generate a sas for the blob for entire storage accout with write and read access. - -############################ +sunbird_public_storage_account_sas: # public storage account with content conatiner. sunbird_azure_public_storage_account_key: +sunbird_public_storage_account_key: # Used to store the private contents of the storage account. sunbird_azure_private_storage_account_key: @@ -52,35 +61,48 @@ sunbird_azure_artifact_storage_account_key: ### release-2.8.0 ##### core_vault_sunbird_sso_client_secret: #get the lms client secret from keycloak - - - - - - - - - - - - - - - - - - - - - - +# mongodb keyfile content generated using +# 'openssl rand -base64 741' +# eg: +# mongodb_keyfile_content: | +# dzKXABmKNvuhvsbQud1jn84BMrRJdJb92TQbDV+HVAQXt1ATBssnTIJp6DtL1c/H +# GHjoOQBuDv1MfymFWxE10dXBlx1IG/pQDeTtC+AOrgyYvIQZNfxHIEfyLao14ZLT +# 8sV6GAlQQzJFSHGqg174iniZpiibuj8Q7zqGlJgu/4MwcOBSflTlcCbYjkBErBff +# +XBi7hNNcPfIizB6XuYwsY59XCLH/g2S3g9aitbunyCAAQUpyFfnOvMezliFlDDh +# surRP/lpZ1ZzHtLni2Og8dbOj4J7TLauESd/8Bq+jLzhtBpVn0HoxxF5Se/++z+I +# ZfK4fSR2y2uyBSbQJmGZYnlRi4iTN/LGpSg2iZVzOQhUUBvBgYdWSkkYLbl2xTni +# d+BbwGnuvSs1gPXaokKqS6IF9zUGK9V2aW0a9qRHGjv3fJXQqB7zRvc1ciJjUwpI +# ISsbvlxmZLeDvnQJB3evf/7itSLqNwxMDybn28Ig0E5xBqGCcFbjNjvkkyZPf3YX +# +nI/gkSLYCPTFsnFaJSBrRxMn6c4iOwU1zc7GAg9KUuqF/ttLv8SZuooRsEZQsif +# zrxXgUHoqkx0WDZiwz91D3VD4hjwSWa3TLEFy8R9ZeSLv0sDihKlPYvW9HlQuUV8 +# O//HoEA0ajQxjRvJdTskYK6nESOrr+geM477D5Dp3ZKl01ak0HHseJGcoHoMdZOW +# dcvAhtKZogLstrT1+qftJcsTAOMWsF4EkpoyPelutEyLrLjfzzSUKlb06x2lKxBt +# NoOUHRhhEXe42QMSMYgtT8wE+/LfeB5IMOP1CiC1dGxBjZkZTtSYTSbcB+52H4xi +# LhTTEp59/yS6InuJUB6ZzgLGhJoCVg8ZSgSbnngy6Yc4lJpRONlzP7l6A/ins0aA +# 6PvGBWyEAP+P+6xNVpDkrUPKVIFZDfMMCLVm1sicOgtEBInEpeqhiOygnpO5u12P +# IeDCClMkUbhtwTpgVszUe4OA2EXo +mongodb_keyfile_content: | + +## Nodebb admin user password +# This is getting used in /discussions +# use below command to use a random password +# 'openssl rand -hex 10' +nodebb_admin_password: +adminutil_refresh_token_public_key_kid: "" #get after eycloak deployment using lms client + +# Steps to generating the Nodebb auth token +# 1. Login to Nodebb (https://<domain-name>/discussions/login) as a Admin. +# 2. go to admin panel. +# 3. click on Plugins => Write API +# 4. Under MASTER TOKENS section, click on create token button, It will generate a token. +discussionsmw_nodebb_authorization_token: ####################### END OF VARS ########################################## #NOT REQUIRED TO EDIT ############################## core_vault_badger_admin_password: "sunbird" -core_vault_badging_authorization_key: +core_vault_badging_authorization_key: core_vault_jenkins_admin_username: "" #### if it is not required will remove core_vault_jenkins_admin_password: "" #### if it is not required will remove core_vault_proxy_prometheus_admin_creds: "admin" @@ -91,7 +113,7 @@ core_vault_monitor_alerts_slack_url: "" ######################## Not mandatory ################################### core_vault_sunbird_fcm_account_key: "" -core_vault_sunbird_google_oauth_clientSecret: +core_vault_sunbird_google_oauth_clientSecret: core_vault_mail_server_password: '' core_vault_keycloak_api_management_user_password: admin core_vault_keystore_password: sunbird #Password to use for encrypting cassandra keystore. Use a strong password. @@ -105,21 +127,19 @@ core_vault_trampoline_secret: "deep-secret" ## any 8 character value core_vault_msg_91_auth_key: # Portal one google sso -core_vault_sunbird_google_oauth_clientId_portal: -core_vault_sunbird_google_oauth_clientSecret_portal: -core_vault_sunbird_google_captcha_site_key_portal: -core_vault_sunbird_google_keycloak_secret: +core_vault_sunbird_google_oauth_clientId_portal: +core_vault_sunbird_google_oauth_clientSecret_portal: +core_vault_sunbird_google_captcha_site_key_portal: +core_vault_sunbird_google_keycloak_secret: # Oauth for logger kibana -core_vault_kibana_google_client_id: -core_vault_kibana_google_client_secret: +core_vault_kibana_google_client_id: +core_vault_kibana_google_client_secret: core_vault_kibana_cookie_secret: kibanaoauth # Cookie secret for kibana Oauth # sunbird session secret key # Changing the secret value will invalidate all existing sessions. # In order to rotate the secret without invalidating sessions, provide an array of secrets, # with the new secret as first element of the array, and followed by previous secrets. -sunbird_portal_session_secret: +sunbird_portal_session_secret: # Any long alphanumeric string -# !!!!! DO NOT UPDATE VARS BELOW THIS !!! -# ***************************************************************************** # diff --git a/private_repo/ansible/inventory/dev/DataPipeline/common.yml b/private_repo/ansible/inventory/dev/DataPipeline/common.yml index 8d45b41bd957a7c1ef67844a8010bac463170c1d..49c7fbc623adda8b424162e3a3502a309db9d1f2 100644 --- a/private_repo/ansible/inventory/dev/DataPipeline/common.yml +++ b/private_repo/ansible/inventory/dev/DataPipeline/common.yml @@ -10,9 +10,10 @@ bootstrap_key_path: secor_azure_container_name: "" secor_alerts_slack_channel: "" -#dp_azure_account_name: # azure storage account name sunbird_private_storage_account_name: # Azure account name for analytics api contents sunbird_artifact_storage_account_name: # Azure stroage account name used for artifact upload +sunbird_public_storage_account_name: + default_org_hash_id: "" # channel id of the organization # Data products monitoring web hooks @@ -42,6 +43,30 @@ ingestion_kafka_topics: replication_factor: 1 # Geo location related var maxmind_db_license_key: -swarm_manager_lb_ip: # Update the swarm lb ip if you dont have lb then update the swarm server ip -#report_azure_account_name: # Update the azure account name -#report_azure_storage_secret: "{{ dp_vault_reports_azure_key }}" + +postgres: + db_url: "{{ groups['postgres'][0] }}" + db_username: analytics + db_name: analytics + db_password: "{{dp_vault_pgdb_password}}" + db_table_name: "{{env}}_consumer_channel_mapping" + db_port: 5432 + db_admin_user: postgres + db_admin_password: "{{dp_vault_pgdb_admin_password}}" + +sunbird_private_azure_report_container_name: 'reports' +sunbird_public_azure_report_container_name: 'public-reports' +sunbird_druid_storage_account_name: + +dialservice_ip: ### dial vm ip +dialcode_host: "http://{{dialservice_ip}}:9001" +dialcode_endpoint: "dialcode/v3/read/" + +# docker hub details +dockerhub: +docker_registry: ## user +imagepullsecrets: {{env}}-registry-secret + +kubeconfig_path: /var/lib/jenkins/secrets/k8s.yaml +private_ingressgateway_ip: + diff --git a/private_repo/ansible/inventory/dev/DataPipeline/hosts b/private_repo/ansible/inventory/dev/DataPipeline/hosts index ab44b9f41c7c40015f1255c1513a857b92482d13..3d26ac9a841a764f6f1c6cc9ce8c271401c4bd0f 100644 --- a/private_repo/ansible/inventory/dev/DataPipeline/hosts +++ b/private_repo/ansible/inventory/dev/DataPipeline/hosts @@ -1,56 +1,52 @@ ################ Core ######################### -[swarm-bootstrap-manager] -15.0.1.4 [core-cassandra] -15.0.0.7 +18.3.0.4 [core-es-1] -15.0.0.50 # This should be elasticsearch master IP of Core +18.3.0.4 # This should be elasticsearch master IP of Core [core-es:children] core-es-1 [log-es-1] -15.0.0.1 +18.3.16 [log-es:children] log-es-1 ################# LP ########################## -[search] -15.0.3.5 [learning] -15.0.3.11 +18.3.1.5 [composite-search-cluster] -15.0.2.6 +18.3.0.4 [lp-cassandra] -15.0.2.7 +18.3.0.4 [dp-cassandra] -15.0.2.7 +18.3.0.4 [lp-redis] -15.0.3.11 +18.3.1.5 ################# LPA ######################### [analytics-api] -15.0.3.6 +18.3.1.7 [secor] -15.0.3.15 +18.3.1.7 [spark] -15.0.3.12 +18.3.1.7 [cassandra] -15.0.2.7 +18.3.0.4 [postgres] -15.0.3.17 +18.3.0.4 [lpa:children] spark @@ -60,49 +56,73 @@ cassandra ########################### DP ############################# [kafka-indexer] -15.0.3.8 +18.3.1.7 [influxdb] -15.0.3.6 +18.3.0.4 [redis] -15.0.3.5 +18.3.1.5 [redisall:children] redis [processing-cluster-kafka] -15.0.3.8 -15.0.3.7 +18.3.1.5 [processing-cluster-zookeepers] -15.0.3.8 -15.0.3.7 +18.3.1.5 -[telemetry-search-cluster1] -15.0.2.6 - -[telemetry-search-cluster:children] -telemetry-search-cluster1 [zookeeper:children] processing-cluster-zookeepers -[telemetry-search-cluster-kibana-node:children] -telemetry-search-cluster1 - [yarn-master] -15.0.3.10 +18.3.1.8 [yarn-slave] -15.0.3.13 +18.3.1.9 [yarn:children] yarn-master yarn-slave [local] -localhost +localhost ansible_connection=local + +[druid-postgres] +18.3.1.10 + +[raw-coordinator] +18.3.1.10 + +[raw-overlord] +18.3.1.10 + +[raw-broker] +18.3.1.10 + +[raw-historical] +18.3.1.10 + +[raw-middlemanager] +18.3.1.10 + +[raw-graphite] +18.3.1.10 + +[raw-zookeeper] +18.3.1.10 + + +[druid-raw:children] +raw-coordinator +raw-overlord +raw-broker +raw-historical +raw-middlemanager +raw-graphite +raw-zookeeper [broker] 0.0.0.0 #### its required for data products deploy @@ -110,21 +130,23 @@ localhost [coordinator] 0.0.0.0 #### its required for analytics deploy +[telemetry-search-cluster-kibana-node] +0.0.0.0 + [dp:children] local processing-cluster-kafka processing-cluster-zookeepers zookeeper postgres -telemetry-search-cluster -telemetry-search-cluster-kibana-node yarn kafka-indexer influxdb lpa +druid-raw +druid-postgres [env:children] -swarm-bootstrap-manager dp [env:vars] @@ -132,34 +154,6 @@ ansible_ssh_user=deployer ansible_ssh_private_key_file=/var/lib/jenkins/secrets/deployer_ssh_key -########################### Monitoring ########################## -[yarn-ps] -15.0.3.10 -15.0.3.13 - -[logstash-ps] -15.0.3.8 - -[es-ps] -15.0.2.6 - -[process-exporter:children] -yarn-ps -logstash-ps -es-ps -secor-ps -analytics-ps -kafka-ps - -[secor-ps] -15.0.3.15 - -[analytics-ps] -15.0.3.6 - -[kafka-ps] -15.0.3.8 -15.0.3.7 [all:vars] ansible_ssh_user=deployer diff --git a/private_repo/ansible/inventory/dev/DataPipeline/secrets.yml b/private_repo/ansible/inventory/dev/DataPipeline/secrets.yml index 4df9e341f57d85765b60360a9a0d1c0125f64361..43e42ed4c890c20d7b6c0c666d69d3e6566ac02c 100644 --- a/private_repo/ansible/inventory/dev/DataPipeline/secrets.yml +++ b/private_repo/ansible/inventory/dev/DataPipeline/secrets.yml @@ -1,15 +1,24 @@ -############## Admin ###################### - ############## DP ###################### -dp_vault_artifacts_container: +dp_vault_artifacts_container: artifacts dp_search_service_authorization_token: dp_vault_pgdb_password: dp_vault_pgdb_admin_password: -dp_vault_data_exhaust_token: - +dp_vault_druid_postgress_pass: +dp_vault_data_exhaust_token: +dp_play_http_secret_key: "" ###random text # Storage Account credentials for Knowledge Platform sunbird_management_storage_account_key: -sunbird_artifact_storage_account_key: -sunbird_artifact_storage_account_sas: -sunbird_private_storage_account_key: +sunbird_artifact_storage_account_key: +sunbird_artifact_storage_account_sas: +sunbird_private_storage_account_key: +sunbird_public_storage_account_key: +sunbird_druid_storage_account_key: + +core_vault_docker_registry_url: +core_vault_docker_registry_user: +core_vault_docker_registry_password: + +dp_vault_dialcode_api_auth_key: ### copy value form cariable core_vault_sunbird_api_auth_token from core/secrets.yml +sunbird_api_auth_token: ### ### copy value form cariable core_vault_sunbird_api_auth_token from core/secrets.yml +core_vault_sunbird_encryption_key: ## copy from core secrets.yml diff --git a/private_repo/ansible/inventory/dev/KnowledgePlatform/common.yml b/private_repo/ansible/inventory/dev/KnowledgePlatform/common.yml index 7ad3131dedc09f5b848a5d36f200bb34cf60cd4d..294d5efc1e8cae7598df559232b1211f1cec2209 100644 --- a/private_repo/ansible/inventory/dev/KnowledgePlatform/common.yml +++ b/private_repo/ansible/inventory/dev/KnowledgePlatform/common.yml @@ -30,20 +30,29 @@ sunbird_artifact_storage_account_name: ########################################################## -swarm_manager_lb_ip: # Enter the LB IP in case you are using a swarm manager load balancer OR Swarm manager's IP if not using a load balancer - # Enable following if you're using kubernetes # Ip of nginx private ingress # Give Ip Address with which the private ingress should be created # For safety reason, give ip address from bottom range of cidr # for ex: if cidr is 11.2.1.0/24 -## private_ingressgateway_ip: 11.2.1.220 +private_ingressgateway_ip: 11.2.1.220 # -## learner_service_base_url: "http://{{private_ingressgateway_ip}}/learner" ## lp samza jobs -## cert_service_base_url: "http://{{private_ingressgateway_ip}}/cert" ### lp samza jobs -## kp_content_service_base_url: "http://{{private_ingressgateway_ip}}/content" -## cert_reg_service_base_url: "http://{{private_ingressgateway_ip}}/certreg" -## kp_search_service_base_url: "http://{{private_ingressgateway_ip}}/search" -## kp_print_service_base_url: "http://{{private_ingressgateway_ip}}/print" -## lms_service_base_url: "http://{{private_ingressgateway_ip}}/lms" +learner_service_base_url: "http://{{private_ingressgateway_ip}}/learner" ## lp samza jobs +cert_service_base_url: "http://{{private_ingressgateway_ip}}/cert" ### lp samza jobs +kp_content_service_base_url: "http://{{private_ingressgateway_ip}}/content" +cert_reg_service_base_url: "http://{{private_ingressgateway_ip}}/certreg" +kp_search_service_base_url: "http://{{private_ingressgateway_ip}}/search" +kp_print_service_base_url: "http://{{private_ingressgateway_ip}}/print" +lms_service_base_url: "http://{{private_ingressgateway_ip}}/lms" + + +kubeconfig_path: /var/lib/jenkins/secrets/k8s.yaml +dockerhub: +docker_registry: #### docker hub user +sunbird_private_storage_account_name: + +learningservice_ip: ### learning vm or load balancer ip +dialservice_ip: ## dial service vm or loadbalancer ip +dial_service_search_url: "http://{{dialservice_ip}}:9001/dialcode/v3/search" +dial_service_generate_url: "http://{{dialservice_ip}}:9001/dialcode/v3/generate" diff --git a/private_repo/ansible/inventory/dev/KnowledgePlatform/hosts b/private_repo/ansible/inventory/dev/KnowledgePlatform/hosts index 0fc235f90c80e5bcdb246779c26f7a744b0944f1..b1c6a8e94cf5d73a32ddc2c5dd4db1d0ab99a470 100644 --- a/private_repo/ansible/inventory/dev/KnowledgePlatform/hosts +++ b/private_repo/ansible/inventory/dev/KnowledgePlatform/hosts @@ -1,28 +1,31 @@ ######################## LP ######################## [learning1] -15.0.3.11 - -[swarm-bootstrap-manager] -15.0.1.4 +18.3.1.5 [learningall:children] learning1 -[search1] -15.0.3.5 - -[searchall:children] -search1 - [redis1] -15.0.3.11 +18.3.1.5 [redisall:children] redis1 +[dial1] +18.3.1.5 + +[dial:children] +dial1 + +[dp-redis] +18.3.1.5 + +[lms-redis] +18.3.1.5 + [learning-neo4j-node1] -15.0.2.9 +18.3.0.4 # Enable following host, if you're have neo4j cluster and an arbiter for election # [arbiter] @@ -32,42 +35,42 @@ redis1 learning-neo4j-node1 [cassandra-node-1] # The old cassandra group has been renamed to cassandra-node-* to accomadate for clusters -15.0.2.7 +18.3.0.4 [cassandra:children] cassandra-node-1 [dp-cassandra] -15.0.2.7 +18.3.0.4 [core-cassandra] -15.0.2.5 +18.3.0.4 [core-es-1] -18.0.0.9 # This should be elasticsearch master IP of Core +18.3.0.4 # This should be elasticsearch master IP of Core [core-es:children] core-es-1 [composite-search-cluster] -15.0.2.6 +18.3.0.4 [yarn-master] -15.0.3.10 +18.3.1.8 [yarn-slave] -15.0.3.10 #yarn master -15.0.3.13 +18.3.1.8 #yarn master +18.3.1.9 [yarn:children] yarn-master yarn-slave [processing-cluster-kafka] -15.0.3.14 +18.3.1.5 [processing-cluster-zookeepers] -15.0.3.14 +18.3.1.5 [zookeeper:children] processing-cluster-zookeepers @@ -77,7 +80,6 @@ localhost ansible_connection=local [lp:children] learningall -searchall learning-neo4j-cluster cassandra redisall @@ -89,22 +91,28 @@ local [env:children] lp -swarm-bootstrap-manager [env:vars] ansible_ssh_user=deployer ansible_ssh_private_key_file=/var/lib/jenkins/secrets/deployer_ssh_key +[es7] +0.0.0.0 + +[mlworkbench] +0.0.0.0 + + ####################### Monitoring ######################## [logstash-ps] -15.0.3.11 +18.3.1.5 [process-exporter:children] logstash-ps cassandra-ps [cassandra-ps] -15.0.2.7 +18.3.0.4 [process-exporter:vars] ansible_ssh_user=deployer diff --git a/private_repo/ansible/inventory/dev/KnowledgePlatform/secrets.yml b/private_repo/ansible/inventory/dev/KnowledgePlatform/secrets.yml index b92f6640bd0d9c77de33052675be694661237041..ea2dcac91d874a1a99e70652d212153aca4cb70e 100644 --- a/private_repo/ansible/inventory/dev/KnowledgePlatform/secrets.yml +++ b/private_repo/ansible/inventory/dev/KnowledgePlatform/secrets.yml @@ -5,7 +5,12 @@ lp_vault_youtube_api_key: lp_vault_dial_service_authorization: # Storage Account credentials for Knowledge Platform +sunbird_private_storage_account_key: sunbird_public_storage_account_key: sunbird_management_storage_account_key: sunbird_artifact_storage_account_key: sunbird_artifact_storage_account_sas: + +core_vault_docker_registry_url: +core_vault_docker_registry_user: +core_vault_docker_registry_password: diff --git a/private_repo/ansible/inventory/dev/Kubernetes/common.yml b/private_repo/ansible/inventory/dev/Kubernetes/common.yml new file mode 120000 index 0000000000000000000000000000000000000000..1465b46671ab977527688348fdc312c5c39ea0b6 --- /dev/null +++ b/private_repo/ansible/inventory/dev/Kubernetes/common.yml @@ -0,0 +1 @@ +../Core/common.yml \ No newline at end of file diff --git a/private_repo/ansible/inventory/dev/Kubernetes/hosts b/private_repo/ansible/inventory/dev/Kubernetes/hosts new file mode 120000 index 0000000000000000000000000000000000000000..fb74d690d40c5d83d18bdbca2a42eb8a44bd8f84 --- /dev/null +++ b/private_repo/ansible/inventory/dev/Kubernetes/hosts @@ -0,0 +1 @@ +../Core/hosts \ No newline at end of file diff --git a/private_repo/ansible/inventory/dev/Kubernetes/secrets.yml b/private_repo/ansible/inventory/dev/Kubernetes/secrets.yml new file mode 120000 index 0000000000000000000000000000000000000000..6bbc077aabb783bd0f645dbd93ab00aa44e1362c --- /dev/null +++ b/private_repo/ansible/inventory/dev/Kubernetes/secrets.yml @@ -0,0 +1 @@ +../Core/secrets.yml \ No newline at end of file