From b9396ba76b1e1dfa6af21f98d99440cf5cc5f6b5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 08:22:44 +0200 Subject: [PATCH 1/2] Bump github.com/docker/docker (#2289) --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index d5ffd4b06..d92f1c651 100644 --- a/go.mod +++ b/go.mod @@ -45,7 +45,7 @@ require ( github.com/cyphar/filepath-securejoin v0.2.4 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/docker/distribution v2.8.2+incompatible // indirect - github.com/docker/docker v24.0.6+incompatible // indirect + github.com/docker/docker v24.0.7+incompatible // indirect github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect diff --git a/go.sum b/go.sum index 7ab99a298..5375917a4 100644 --- a/go.sum +++ b/go.sum @@ -116,8 +116,8 @@ github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+ github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v24.0.6+incompatible h1:hceabKCtUgDqPu+qm0NgsaXf28Ljf4/pWFL7xjWWDgE= -github.com/docker/docker v24.0.6+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v24.0.7+incompatible h1:Wo6l37AuwP3JaMnZa226lzVXGA3F9Ig1seQen0cKYlM= +github.com/docker/docker v24.0.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= From a5e2d330ca5a0f1f0e2a8410fffdc1f6be1f984e Mon Sep 17 00:00:00 2001 From: Yahav Itzhak Date: Thu, 9 Nov 2023 10:46:00 +0200 Subject: [PATCH 2/2] Release script - install npm earlier (#2298) --- Jenkinsfile | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index aed8e48b1..df9c92979 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,13 +21,14 @@ node("docker") { cliExecutableName = 'jf' identifier = 'v2-jf' + nodeVersion = 'v8.17.0' repo = 'jfrog-cli' sh 'rm -rf temp' sh 'mkdir temp' def goRoot = tool 'go-1.20.10' env.GOROOT="$goRoot" - env.PATH+=":${goRoot}/bin" + env.PATH+=":${goRoot}/bin:/tmp/node-${nodeVersion}-linux-x64/bin" env.GO111MODULE="on" env.CI=true env.JFROG_CLI_LOG_LEVEL="DEBUG" @@ -45,6 +46,10 @@ node("docker") { } } + stage('install npm') { + installNpm(nodeVersion) + } + stage('jf release phase') { runRelease(architectures) } @@ -395,19 +400,9 @@ def distributeToReleases(stage, version, rbcSpecName) { } def publishNpmPackage(jfrogCliRepoDir) { - dir('/tmp') { - sh '''#!/bin/bash - apt update - apt install wget -y - echo "Downloading npm..." - wget https://nodejs.org/dist/v8.17.0/node-v8.17.0-linux-x64.tar.xz - tar -xvf node-v8.17.0-linux-x64.tar.xz - ''' - } dir(jfrogCliRepoDir+"build/npm/$identifier") { withCredentials([string(credentialsId: 'npm-authorization', variable: 'NPM_AUTH_TOKEN')]) { sh '''#!/bin/bash - export PATH=/tmp/node-v8.17.0-linux-x64/bin:$PATH echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > .npmrc echo "registry=https://registry.npmjs.org" >> .npmrc npm publish @@ -416,6 +411,18 @@ def publishNpmPackage(jfrogCliRepoDir) { } } +def installNpm(nodeVersion) { + dir('/tmp') { + sh """#!/bin/bash + apt update + apt install wget -y + echo "Downloading npm..." + wget https://nodejs.org/dist/${nodeVersion}/node-${nodeVersion}-linux-x64.tar.xz + tar -xf node-${nodeVersion}-linux-x64.tar.xz + """ + } +} + def publishChocoPackageWithRetries(version, jfrogCliRepoDir, architectures) { def maxAttempts = 10 def currentAttempt = 1