Downloads:

287,877

Downloads of v 3.4.3:

64

Last Update:

29 Jul 2022

Package Maintainer(s):

Software Author(s):

  • James Strachan

Tags:

jenkins-x jenkins jenkins-ci kubernetes

Jenkins X

  • 1
  • 2
  • 3

3.4.3 | Updated: 29 Jul 2022

Downloads:

287,877

Downloads of v 3.4.3:

64

Maintainer(s):

Software Author(s):

  • James Strachan

  • 1
  • 2
  • 3
Jenkins X 3.4.3

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Jenkins X, run the following command from the command line or from PowerShell:

>

To upgrade Jenkins X, run the following command from the command line or from PowerShell:

>

To uninstall Jenkins X, run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade jenkins-x -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade jenkins-x -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install jenkins-x
  win_chocolatey:
    name: jenkins-x
    version: '3.4.3'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'jenkins-x' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '3.4.3'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller jenkins-x
{
    Name     = "jenkins-x"
    Version  = "3.4.3"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'jenkins-x':
  ensure   => '3.4.3',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

There are versions of this package awaiting moderation . See the Version History section below.

This package was approved as a trusted package on 29 Jul 2022.

Description

Jenkins X is a CI/CD solution for modern cloud applications on Kubernetes


tools\chocolateybeforemodify.ps1
$ErrorActionPreference = "Stop"
write-host "Attempting to stop any running jx processes, to allow upgrade"
try
{
  $running = get-process jx
}
catch
{
  write-host "No running jx processes to stop"
  $running = @()
}
 
if ($running)
{
  write-host "Stopping jx processes"
  foreach($p in $running)
  {
    stop-process $p
    write-verbose "Stopped $($p.ProcessName) $($p.Id)"
  }
}
tools\chocolateyInstall.ps1
$packageName = 'jenkins-x'
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
$nuspecPath = Resolve-Path -Path $toolsPath+'\..'
[xml]$nuspecContent = Get-Content $nuspecPath\jenkins-x.nuspec
$version = $nuspecContent.package.metadata.version
$fileZip = "jx-windows-amd64.zip"
$fileChecksums = "jx-checksums.txt"
$url = "https://github.com/jenkins-x/jx/releases/download/v$version/$fileZip"
$urlSHA = "https://github.com/jenkins-x/jx/releases/download/v$version/$fileChecksums"
$fileSHA = "$toolsPath\$fileChecksums"
Get-WebFile -Url $urlSHA -FileName $fileSHA
$matchChecksum = Select-String -Path $fileSHA -Pattern $fileZip -SimpleMatch
$checksum = $matchChecksum.Line.Split(" ")[0]
$checksumtype = "sha256" 

if (Test-Path "$toolsPath\jx.exe") {
  Remove-Item "$toolsPath\jx.exe"
  Uninstall-BinFile -Name "jx" -Path "$toolsPath"
}
$packageArgs = @{
  packageName    = $packageName
  url            = $url
  unzipLocation  = $toolsPath
  checksum       = $checksum
  checksumtype   = $checksumtype
}
Install-ChocolateyZipPackage @packageArgs
Remove-Item "$toolsPath\jx-windows*.zip"
Install-BinFile -Name "jx" -Path "$toolsPath"
tools\chocolateyUninstall.ps1
$packageName = 'jenkins-x'
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition

Uninstall-BinFile -Name "jx" -Path "$toolsPath"

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Jenkins X 3.4.5 7 Wednesday, August 3, 2022
Waiting for Maintainer
Jenkins X 3.4.2 8 Friday, July 29, 2022
Waiting for Maintainer
Jenkins X 3.4.1 9 Thursday, July 28, 2022
Waiting for Maintainer
Jenkins X 3.4.0 9 Thursday, July 28, 2022
Waiting for Maintainer
Jenkins X 3.3.4 33 Tuesday, July 26, 2022 Approved
Jenkins X 3.3.2 56 Friday, July 8, 2022 Approved
Jenkins X 3.3.1 18 Friday, July 8, 2022 Approved
Jenkins X 3.3.0 14 Friday, July 8, 2022 Approved
Jenkins X 3.2.406 31 Wednesday, July 6, 2022 Approved