jenkinsci / docker-ssh-agent

Docker image for Jenkins agents connected over SSH
https://hub.docker.com/repository/docker/jenkins/ssh-agent
MIT License
179 stars 175 forks source link

chore: improve env var scopes and retrieve `VERSION` in build.ps1 #424

Closed lemeurherve closed 2 months ago

lemeurherve commented 3 months ago

This PR improves environment variable scopes, allows retrieving VERSION from env var in build.ps1 so it can benefits the new scoping, and shortens agentSelector comments in the Jenkinsfile.

By doing so, it removes any interpolation in the last sh and powershell code blocks.

Fixes:

Extracted from:

Testing done

CI

Submitter checklist

lemeurherve commented 3 months ago

So sorry @timja just noticed your new review after repushing to remove the dangling -VersionTag in the last buid.ps1 call 😓