Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37326

build in java spawn powsershell(x86) in 64bit OS

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • powershell-plugin
    • None
    • windows installer running on Win 10

    Attachments

      Issue Links

        Activity

          natestovall Nate Stovall added a comment -

          I also ran into this issue. I'm running Windows 2012 R2, w/ all latest M$ patches as of 3/1/2017. I need to run builds that use 64bit modules. Note that the $env:psmodulepath doesn't incluse 64 bit module locations. I ran the following commands in a Jenkins build, and here is the output:

          $PSHome
          C:\Windows\SysWOW64\WindowsPowerShell\v1.0

          $PsVersionTable.PSVersion
          Major Minor Build Revision
          ----- ----- ----- --------
          4 0 -1 -1

          $env:PSModulePath -Split(';')
          WindowsPowerShell\Modules
          C:\Program Files (x86)\WindowsPowerShell\Modules
          C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
          C:\Program Files (x86)\WindowsPowerShell\Modules\
          C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules

          When I run the same commands in a 64bit PoSH session from the Windows server, Here is what I get:

          $PSHome*
          C:\Windows\System32\WindowsPowerShell\v1.0

          $PsVersionTable.PSVersion
          Major Minor Build Revision
          ----- ----- ----- --------
          4 0 -1 -1

          $env:PSModulePath -Split(';')
          C:\Users\stona001\Documents\WindowsPowerShell\Modules
          C:\Program Files\WindowsPowerShell\Modules
          C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
          C:\Program Files (x86)\WindowsPowerShell\Modules\
          C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules

          natestovall Nate Stovall added a comment - I also ran into this issue. I'm running Windows 2012 R2, w/ all latest M$ patches as of 3/1/2017. I need to run builds that use 64bit modules. Note that the $env:psmodulepath doesn't incluse 64 bit module locations. I ran the following commands in a Jenkins build, and here is the output: $PSHome C:\Windows\SysWOW64\WindowsPowerShell\v1.0 $PsVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 4 0 -1 -1 $env:PSModulePath -Split(';') WindowsPowerShell\Modules C:\Program Files (x86)\WindowsPowerShell\Modules C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ C:\Program Files (x86)\WindowsPowerShell\Modules\ C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules When I run the same commands in a 64bit PoSH session from the Windows server, Here is what I get: $PSHome* C:\Windows\System32\WindowsPowerShell\v1.0 $PsVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 4 0 -1 -1 $env:PSModulePath -Split(';') C:\Users\stona001\Documents\WindowsPowerShell\Modules C:\Program Files\WindowsPowerShell\Modules C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ C:\Program Files (x86)\WindowsPowerShell\Modules\ C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules
          gamentek Rob Brunelle added a comment -

          Supposedly, Jenkins needs to run 64bit for it to run 64bit powershell.  I haven't been able to get it to work yet as I can no longer access Jenkins after I restart it.  And I don't get any errors in the logs.  I'm currently trying Java 1.8.0_171, but I might try a few other versions.

          StackOverflow-Jenkins powershell need 64bit

          gamentek Rob Brunelle added a comment - Supposedly, Jenkins needs to run 64bit for it to run 64bit powershell.  I haven't been able to get it to work yet as I can no longer access Jenkins after I restart it.  And I don't get any errors in the logs.  I'm currently trying Java 1.8.0_171, but I might try a few other versions. StackOverflow-Jenkins powershell need 64bit

          People

            Unassigned Unassigned
            bill2004158 Bill Wang
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: