Skip to content

Commit

Permalink
setup cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
mandeepdhiman123 committed Sep 8, 2020
1 parent abb4eae commit 07b75b4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@
file:
path: "{{ testrig_dir }}"
state: absent
when: check_for_rebuild.user_input | bool
when: check_for_rebuild == 'yes'

- name: Downloading upgraded build version
unarchive:
src: "https://github.com/mosip/mosip-functional-tests/archive/{{ testrig_version }}.zip"
dest: "{{ tools_dir }}"
remote_src: yes
when: check_for_rebuild.user_input | bool
when: check_for_rebuild == 'yes'

- name: Bulding upgraded partner demo service for dependency
shell: "cd {{ testrig_dir }}/authentication-partnerdemo-service/ && mvn clean install"
when: check_for_rebuild.user_input | bool
when: check_for_rebuild == 'yes'

- name: Bulding upgraded test-rig
shell: "cd {{ testrig_dir }}/automationtests && mvn clean install"
when: check_for_rebuild.user_input | bool
when: check_for_rebuild == 'yes'

- name: Copy jar file to test testrig directory
shell: "mv {{ testrig_dir }}/automationtests/target/*dependencies.jar {{ testrig_dir }}/automationtests/target/automationtests.jar"
when: check_for_rebuild.user_input | bool
when: check_for_rebuild == 'yes'

- name: Sceduling upgraded Cronjob for test-rig
cron:
name: "functional-test"
minute: "00"
hour: "02"
job: "cd {{ testrig_dir }}/automationtests/target/ && java -jar -Dmodules=all -Denv.user=qa -Denv.endpoint=https://qa.mosip.net -Denv.testLevel=smokeAndRegression automationtests.jar"
when: check_for_rebuild.user_input | bool
when: check_for_rebuild == 'yes'

- name: Download new version of Functional Test
unarchive:
Expand Down

0 comments on commit 07b75b4

Please sign in to comment.