-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
-
Jenkins: 2.492.2
OS: Windows Server 2022 - 10.0
Java: 21.0.6 - Microsoft (OpenJDK 64-Bit Server VM)
---
antisamy-markup-formatter:173.v680e3a_b_69ff3
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
apache-httpcomponents-client-5-api:5.4-136.v5a_21779c63f8
asm-api:9.7.1-97.v4cc844130d97
bootstrap5-api:5.3.3-2
bouncycastle-api:2.30.1.80-256.vf98926042a_9b_
branch-api:2.1214.v3f652804588d
build-timeout:1.36
caffeine-api:3.2.0-161.v691ef352cee1
checks-api:367.v18b_7f530e54a_
cloudbees-folder:6.985.va_f1635030cc5
commons-lang3-api:3.17.0-84.vb_b_938040b_078
commons-text-api:1.13.0-153.v91dcd89e2a_22
credentials:1408.va_622a_b_f5b_1b_1
credentials-binding:687.v619cb_15e923f
dark-theme:524.vd675b_22b_30cb_
display-url-api:2.209.v582ed814ff2f
durable-task:587.v84b_877235b_45
echarts-api:5.6.0-2
eddsa-api:0.3.0-13.v7cb_69ed68f00
email-ext:1876.v28d8d38315b_d
font-awesome-api:6.7.2-1
git:5.7.0
git-client:6.1.2
github:1.42.0
github-api:1.321-478.vc9ce627ce001
github-branch-source:1810.v913311241fa_9
gradle:2.14.1
gson-api:2.12.1-113.v347686d6729f
instance-identity:203.v15e81a_1b_7a_38
ionicons-api:82.v0597178874e1
jackson2-api:2.18.3-399.v74c9ce452ea_8
jakarta-activation-api:2.1.3-2
jakarta-mail-api:2.1.3-2
javax-activation-api:1.2.0-8
javax-mail-api:1.6.2-11
jaxb:2.3.9-133.vb_ec76a_73f706
jjwt-api:0.11.5-120.v0268cf544b_89
joda-time-api:2.13.1-115.va_6b_5f8efb_1d8
jquery3-api:3.7.1-3
json-api:20250107-125.v28b_a_ffa_eb_f01
json-path-api:2.9.0-148.v22a_7ffe323ce
junit:1317.v5b_35d792b_06a_
ldap:776.vddf3e325103b_
mailer:489.vd4b_25144138f
matrix-auth:3.2.4
matrix-project:845.vffd7fa_f27555
metrics:4.2.21-464.vc9fa_a_0d6265d
mina-sshd-api-common:2.14.0-143.v2b_362fc39576
mina-sshd-api-core:2.14.0-143.v2b_362fc39576
okhttp-api:4.11.0-183.va_87fc7a_89810
pam-auth:1.12
pipeline-build-step:557.v95d96f77b_2b_8
pipeline-github-lib:65.v203688e7727e
pipeline-graph-analysis:231.v56354571a_da_0
pipeline-graph-view:423.v765c49ca_da_3f
pipeline-groovy-lib:752.vdddedf804e72
pipeline-input-step:517.vf8e782ee645c
pipeline-milestone-step:127.vb_52887ca_3b_6d
pipeline-model-api:2.2247.va_423189a_7dff
pipeline-model-definition:2.2247.va_423189a_7dff
pipeline-model-extensions:2.2247.va_423189a_7dff
pipeline-stage-step:322.vecffa_99f371c
pipeline-stage-tags-metadata:2.2247.va_423189a_7dff
plain-credentials:183.va_de8f1dd5a_2b_
plugin-util-api:6.0.0
powershell:2.3
resource-disposer:0.25
saml:4.525.v4f6a_7209447e
scm-api:704.v3ce5c542825a_
script-security:1373.vb_b_4a_a_c26fa_00
snakeyaml-api:2.3-123.v13484c65210a_
ssh-credentials:355.v9b_e5b_cde5003
ssh-slaves:3.1031.v72c6b_883b_869
sshd:3.353.v2b_d33c46e970
structs:343.vdcf37b_a_c81d5
theme-manager:278.v2e3c063e42cc
thycotic-secret-server:1.1.1
timestamper:1.28
token-macro:444.v52de7e9c573d
trilead-api:2.192.vc50a_d147e369
variant:70.va_d9f17f859e0
workflow-aggregator:600.vb_57cdd26fdd7
workflow-api:1363.v03f731255494
workflow-basic-steps:1079.vce64b_a_929c5a_
workflow-cps:4043.va_fb_de6a_a_8b_f5
workflow-durable-task-step:1405.v1fcd4a_d00096
workflow-job:1505.vea_4b_20a_4a_495
workflow-multibranch:803.v08103b_87c280
workflow-scm-step:437.v05a_f66b_e5ef8
workflow-step-api:700.v6e45cb_a_5a_a_21
workflow-support:961.v51869f7b_d409
ws-cleanup:0.48Jenkins: 2.492.2 OS: Windows Server 2022 - 10.0 Java: 21.0.6 - Microsoft (OpenJDK 64-Bit Server VM) --- antisamy-markup-formatter:173.v680e3a_b_69ff3 apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83 apache-httpcomponents-client-5-api:5.4-136.v5a_21779c63f8 asm-api:9.7.1-97.v4cc844130d97 bootstrap5-api:5.3.3-2 bouncycastle-api:2.30.1.80-256.vf98926042a_9b_ branch-api:2.1214.v3f652804588d build-timeout:1.36 caffeine-api:3.2.0-161.v691ef352cee1 checks-api:367.v18b_7f530e54a_ cloudbees-folder:6.985.va_f1635030cc5 commons-lang3-api:3.17.0-84.vb_b_938040b_078 commons-text-api:1.13.0-153.v91dcd89e2a_22 credentials:1408.va_622a_b_f5b_1b_1 credentials-binding:687.v619cb_15e923f dark-theme:524.vd675b_22b_30cb_ display-url-api:2.209.v582ed814ff2f durable-task:587.v84b_877235b_45 echarts-api:5.6.0-2 eddsa-api:0.3.0-13.v7cb_69ed68f00 email-ext:1876.v28d8d38315b_d font-awesome-api:6.7.2-1 git:5.7.0 git-client:6.1.2 github:1.42.0 github-api:1.321-478.vc9ce627ce001 github-branch-source:1810.v913311241fa_9 gradle:2.14.1 gson-api:2.12.1-113.v347686d6729f instance-identity:203.v15e81a_1b_7a_38 ionicons-api:82.v0597178874e1 jackson2-api:2.18.3-399.v74c9ce452ea_8 jakarta-activation-api:2.1.3-2 jakarta-mail-api:2.1.3-2 javax-activation-api:1.2.0-8 javax-mail-api:1.6.2-11 jaxb:2.3.9-133.vb_ec76a_73f706 jjwt-api:0.11.5-120.v0268cf544b_89 joda-time-api:2.13.1-115.va_6b_5f8efb_1d8 jquery3-api:3.7.1-3 json-api:20250107-125.v28b_a_ffa_eb_f01 json-path-api:2.9.0-148.v22a_7ffe323ce junit:1317.v5b_35d792b_06a_ ldap:776.vddf3e325103b_ mailer:489.vd4b_25144138f matrix-auth:3.2.4 matrix-project:845.vffd7fa_f27555 metrics:4.2.21-464.vc9fa_a_0d6265d mina-sshd-api-common:2.14.0-143.v2b_362fc39576 mina-sshd-api-core:2.14.0-143.v2b_362fc39576 okhttp-api:4.11.0-183.va_87fc7a_89810 pam-auth:1.12 pipeline-build-step:557.v95d96f77b_2b_8 pipeline-github-lib:65.v203688e7727e pipeline-graph-analysis:231.v56354571a_da_0 pipeline-graph-view:423.v765c49ca_da_3f pipeline-groovy-lib:752.vdddedf804e72 pipeline-input-step:517.vf8e782ee645c pipeline-milestone-step:127.vb_52887ca_3b_6d pipeline-model-api:2.2247.va_423189a_7dff pipeline-model-definition:2.2247.va_423189a_7dff pipeline-model-extensions:2.2247.va_423189a_7dff pipeline-stage-step:322.vecffa_99f371c pipeline-stage-tags-metadata:2.2247.va_423189a_7dff plain-credentials:183.va_de8f1dd5a_2b_ plugin-util-api:6.0.0 powershell:2.3 resource-disposer:0.25 saml:4.525.v4f6a_7209447e scm-api:704.v3ce5c542825a_ script-security:1373.vb_b_4a_a_c26fa_00 snakeyaml-api:2.3-123.v13484c65210a_ ssh-credentials:355.v9b_e5b_cde5003 ssh-slaves:3.1031.v72c6b_883b_869 sshd:3.353.v2b_d33c46e970 structs:343.vdcf37b_a_c81d5 theme-manager:278.v2e3c063e42cc thycotic-secret-server:1.1.1 timestamper:1.28 token-macro:444.v52de7e9c573d trilead-api:2.192.vc50a_d147e369 variant:70.va_d9f17f859e0 workflow-aggregator:600.vb_57cdd26fdd7 workflow-api:1363.v03f731255494 workflow-basic-steps:1079.vce64b_a_929c5a_ workflow-cps:4043.va_fb_de6a_a_8b_f5 workflow-durable-task-step:1405.v1fcd4a_d00096 workflow-job:1505.vea_4b_20a_4a_495 workflow-multibranch:803.v08103b_87c280 workflow-scm-step:437.v05a_f66b_e5ef8 workflow-step-api:700.v6e45cb_a_5a_a_21 workflow-support:961.v51869f7b_d409 ws-cleanup:0.48
I don't understand all of the details of JENKINS-70787 so the issue below may be related to it.
From https://community.jenkins.io/t/passing-credential-into-powershell-interpolation-challenges/28111:
In my use, Thycotic-based passwords are not being set correctly in the variable.
I am using this demo pipeline:
pipeline { agent any stages { stage('Cred Test') { steps { withCredentials([usernamePassword(credentialsId: 'NON-SS-CREDTEST', passwordVariable: 'impersonation_userpw', usernameVariable: 'impersonation_username')]) { // withCredentials([usernamePassword(credentialsId: 'SS-CREDTEST', passwordVariable: 'impersonation_userpw', usernameVariable: 'impersonation_username')]) { print 'impersonation_userpw.collect { it }=' + impersonation_userpw.collect { it } powershell(returnStdout: true, script: ''' #. $PROFILE Write-Host "Run-ScriptBlockImpersonated -Username $env:impersonation_username -Password `"$env:impersonation_userpw`" -LogonType 4" Write-Host $(Get-ChildItem Env: | %{ $len = [Math]::Min(50,$_.Value.Length) "{0}`t{1}....`r`n" -f $_.Name,$_.Value.substring(0,$len)} ) ''' ) } } } } }
Normal/Jenkins-stored username+password:
Password's first few characters revealed if I print the variables:
HUDSON_URL http://loc....
impersonation_username netspar....
impersonation_userpw S%0E-fM....
Thycotic plugin password:
The string ` "*** Not Valid For Display ***"` is in the password variable.
[Pipeline] echo
impersonation_userpw.collect { it }=[*, *, *, , N, o, t, , V, a, l, i, d, , F, o, r, , D, i, s, p, l, a, y, , *, *, *]
[Pipeline] powershell
HUDSON_URL http://loc....
impersonation_username svc-sec....
impersonation_userpw *** Not Va....