move save_logs to ci_cleanup

Change-Id: Ibfaea6c3016a189855db981f55060afff8a6db87
Ok thanks, I committed the change.
Only run if exit_doc != 0

Regards,

From: Ananth Suryanarayana <notifications@github.com<mailto:notifications@github.com>>
Reply-To: Juniper/contrail-infra-config <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Friday, August 22, 2014 at 5:20 PM
To: Juniper/contrail-infra-config <contrail-infra-config@noreply.github.com<mailto:contrail-infra-config@noreply.github.com>>
Cc: Kamlesh Parmar <kparmar@juniper.net<mailto:kparmar@juniper.net>>
Subject: Re: [contrail-infra-config] move save_logs to ci_cleanup (#30)


In modules/jenkins/files/slave_scripts/ci-infra/util.rb:

>      def self.ci_cleanup
> +        build_id = 1
> +        build_id = ENV['BUILD_NUMBER'].to_i unless ENV['BUILD_NUMBER'].nil?
> +        save_logs(build_id)


We only need to save_logs during test failures, not for all cases.

-
Reply to this email directly or view it on GitHub<https://github.com/Juniper/contrail-infra-config/pull/30/files#r16627077>.