Jenkins doesn't run things in an interactive TTY, so specifying -it would not work. It should work if you just remove the "-it" option.
Thanks, Gary From: Bellini, Leonardo Achille [mailto:[email protected]] Sent: Monday, March 26, 2018 9:04 AM To: [email protected] Cc: PUZHAVAKATH NARAYANAN, SHANKARANARAYANAN <[email protected]>; KATPADI HAFEEZ KHAN, AMJATH KHAN <[email protected]>; Gary Wu <[email protected]> Subject: CSIT question Hi, During CSIT test execution I'm trying to dump info from docker containers. Unluckily I get issues. Can you help me understanding why the following commands and not working ? Also, if I get the issue during setup.sh phase, tests are anyway progressing 15:18:38 +++ docker exec -it music-db /usr/bin/nodetool status 15:18:38 the input device is not a TTY 15:18:38 +++ docker exec -it music-db /usr/bin/cqlsh -unelson24 -pwinman123 -e 'SELECT * FROM system_schema.keyspaces' 15:18:38 the input device is not a TTY 15:18:38 +++ docker exec -it music-db /usr/bin/cqlsh -unelson24 -pwinman123 -e 'SELECT * FROM admin.keyspace_master' 15:18:38 the input device is not a TTY While if I get the issue during Teardown.sh phase, the Jenkins job is failing and test is marked as Failure 15:19:54 +++ docker exec -it music-db /usr/bin/cqlsh -unelson24 -pwinman123 -e 'SELECT * FROM system_schema.keyspaces' 15:19:54 the input device is not a TTY 15:19:54 Build step 'Execute shell' marked build as failure 15:19:54 $ ssh-agent -k 15:19:54 unset SSH_AUTH_SOCK; 15:19:54 unset SSH_AGENT_PID; 15:19:54 echo Agent pid 2295 killed; 15:19:54 [ssh-agent] Stopped. Here is full log, you can see all test cases are passed, but Jenkins marks it as Failed !!! https://jenkins.onap.org/view/optf/job/optf-has-master-verify-csit-has/11/consoleFull Thanks Leonardo ------------------------------------------------------------------ Leonardo Bellini email: [email protected]<mailto:[email protected]> mobile: +39.334 6714792 AT&T Rieti (Italy)
_______________________________________________ onap-discuss mailing list [email protected] https://lists.onap.org/mailman/listinfo/onap-discuss
