Question: I changed a job by changing the job name and adding some batch file commands(only some copy paste and db connections:none messing up with jenkins). It displays no build at first go which is expected, but now when i trigger a build, after getting finished it disappears.

Checked with the files and job builds in jenkins war location but can find all the builds there. But none is displayed in Jenkins UI.

Any specific reason?

Would add snapshots if required (Hope i am clear with my ques)

Answer: 
I am looking for something similar. I found some code doing this (see patch #3 <https://drupal.org/node/1813350>), but it did not help with our implementation of the Shortcode contrib module. Hopefully it works for you or help you in the right direction.

This is our attempt derived from the patch:

```
$custom_theme_bu = drupal_static('menu_get_custom_theme');
$custom_theme = &drupal_static('menu_get_custom_theme');

$custom_theme = variable_get('theme_default', 'bartik');
unset($GLOBALS['theme']);
drupal_theme_initialize();

$embed_view = views_embed_view('YOUR_VIEW_ID', 'YOUR_VIEW_DISPLAY_ID');

$custom_theme = $custom_theme_bu;
unset($GLOBALS['theme']);
drupal_theme_initialize();

```
Here is some self-documenting code based on the [answer by lmeurs](https://stackoverflow.com/a/20476484/836995):

```
/**
 * Switch to or from an alternative theme in the middle of a request.
 *
 * This is useful if you need to render something (like a node) in a different
 * theme without changing the theme of the entire page. An example use case is
 * when you need to render something for a front end user from an admin page.
 *
 * Usage example:
 *     my_module_switch_theme('bartik');
 *     $node = node_load(1);
 *     $renderable = node_view($node);
 *     $rendered = render($renderable);
 *     my_module_switch_theme();
 *
 * @param string|null $to
 *   The name of the theme to switch to. If NULL, it switches back to the
 *   original theme.
 */
function my_module_switch_theme(string $to = NULL) {
  // Backup the original theme.
  static $original_theme;
  if (empty($original_theme)) {
    $original_theme = drupal_static('menu_get_custom_theme');
  }

  // Get a reference to the current theme value.
  $custom_theme = &drupal_static('menu_get_custom_theme');

  // Perform the switch.
  $custom_theme = $to ?? $original_theme;
  unset($GLOBALS['theme']);
  drupal_theme_initialize();
}

```