-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins is on Red Hat Enterprise Linux Server 7.5 (Maipo) and agents are windows agents Server 2012 R2.
Active Directory plugin
2.8
AnsiColor
0.5.2
Ant Plugin
1.8
Apache HttpComponents Client 4.x API Plugin
4.5.5-3.0
Artifactory Plugin
2.16.2
Audit Trail
2.3
Authentication Tokens API Plugin
1.3
Autofavorite for Blue Ocean
1.2.2
Bitbucket Branch Source Plugin
2.2.12
Bitbucket Pipeline for Blue Ocean
1.6.2
Bitbucket Plugin
1.1.8
Blue Ocean
1.6.2
Blue Ocean Core JS
1.6.2
Blue Ocean Pipeline Editor
1.6.2
bouncycastle API Plugin
2.17
Branch API Plugin
2.0.20
Build Monitor View
1.12+build.201809061734
Build Timeout
1.19
build-name-setter
1.6.9
built-on-column
1.1
change-assembly-version-plugin
1.10
Checkstyle Plug-in
3.50
Command Agent Launcher Plugin
1.2
Common API for Blue Ocean
1.6.2
Compact Columns
1.10
Conditional BuildStep
1.3.6
Config API for Blue Ocean
1.6.2
Config File Provider
3.2
Console Column Plugin
1.5
Console Tail Plugin
1.1
Copy Artifact
1.39.1
Copy project link plugin
1.5
Credentials Binding Plugin
1.16
Credentials Plugin
2.1.18
Dashboard for Blue Ocean
1.6.2
Dashboard View
2.9.11
Deploy to container Plugin
1.13
Design Language
1.6.2
Display URL API
2.2.0
Display URL for Blue Ocean
2.2.0
Docker Commons Plugin
1.13
Docker Pipeline
1.17
Drop Down ViewsTabBar Plugin
1.7
Durable Task Plugin
1.26
Email Extension Plugin
2.63
embeddable-build-status
1.9
EnvInject API Plugin
1.5
Environment Injector Plugin
2.1.6
Escaped Markup Plugin
0.1
Events API for Blue Ocean
1.6.2
Extended Choice Parameter Plug-In
0.76
External Monitor Job Type Plugin
1.7
Extra Columns Plugin
1.20
Favorite
2.3.2
Flyway Runner
1.9
Folders
6.5.1
Git client plugin
2.7.3
Git Parameter
0.9.5
Git Pipeline for Blue Ocean
1.6.2
Git plugin
3.9.1
GIT server Plugin
1.7
GitHub API Plugin
1.92
GitHub Branch Source Plugin
2.4.0
GitHub Pipeline for Blue Ocean
1.6.2
GitHub plugin
1.29.3
Gradle Plugin
1.29
Handy Uri Templates 2.x API Plugin
2.1.6-1.0
HPE Security Fortify Jenkins Plugin
17.20.0183
HTML Publisher plugin
1.17
i18n for Blue Ocean
1.6.2
Icon Shim Plugin
2.0.3
Infrastructure plugin for Publish Over X
0.22
Ivy Plugin
1.28
Jackson 2 API Plugin
2.8.11.3
Javadoc Plugin
1.4
JavaScript GUI Lib: ACE Editor bundle plugin
1.1
JavaScript GUI Lib: Handlebars bundle plugin
1.1.1
JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin
1.2.1
JavaScript GUI Lib: Moment.js bundle plugin
1.1.1
JDK Tool
1.0
JIRA Integration for Blue Ocean
1.6.2
JIRA plugin
3.0.2
Job Configuration History Plugin
2.18.2
Job Import Plugin
3.0
jQuery plugin
1.12.4-0
JSch dependency plugin
0.1.54.2
JUnit Plugin
1.26.1
JWT for Blue Ocean
1.6.2
LDAP Plugin
1.20
Mailer Plugin
1.21
MapDB API Plugin
1.0.9.0
Mask Passwords Plugin
2.12.0
Matrix Authorization Strategy Plugin
2.3
Matrix Project Plugin
1.13
Maven Integration plugin
3.1.2
Mercurial plugin
2.4
Metrics Plugin
4.0.2.2
Modern Status
1.2
MSBuild Plugin
1.29
MSTest plugin
0.23
MSTestRunner plugin
1.3.0
Multiple SCMs plugin
0.6
Nested View Plugin
1.14
New Relic Deployment Notifier
1.3
Next Build Number Plugin
1.5
Nuget Plugin
0.7
NUnit plugin
0.23
OWASP Markup Formatter Plugin
1.5
PAM Authentication plugin
1.4
Parameterized Trigger plugin
2.35.2
PegDown Formatter Plugin
1.3
Personalization for Blue Ocean
1.6.2
Pipeline
2.5
Pipeline Graph Analysis Plugin
1.7
Pipeline implementation for Blue Ocean
1.6.2
Pipeline SCM API for Blue Ocean
1.6.2
Pipeline: API
2.27
Pipeline: Basic Steps
2.8.2
Pipeline: Build Step
2.7
Pipeline: Declarative
1.3.2
Pipeline: Declarative Agent API
1.1.1
Pipeline: Declarative Extension Points API
1.3.2
Pipeline: GitHub Groovy Libraries
1.0
Pipeline: Groovy
2.57
Pipeline: Input Step
2.8
Pipeline: Job
2.25
Pipeline: Milestone Step
1.3.1
Pipeline: Model API
1.3.2
Pipeline: Multibranch
2.20
Pipeline: Nodes and Processes
2.22
Pipeline: REST API Plugin
2.10
Pipeline: SCM Step
2.7
Pipeline: Shared Groovy Libraries
2.12
Pipeline: Stage Step
2.3
Pipeline: Stage Tags Metadata
1.3.2
Pipeline: Stage View Plugin
2.10
Pipeline: Step API
2.16
Pipeline: Supporting APIs
2.20
Plain Credentials Plugin
1.4
PostBuildScript Plugin
2.8.1
Progress Bar Column Plugin
1.0
promoted builds plugin
3.2
Pub-Sub "light" Bus
1.12
Publish Over CIFS
0.11
Quality Gates Plugin
2.5
Resource Disposer Plugin
0.12
REST API for Blue Ocean
1.6.2
REST Implementation for Blue Ocean
1.6.2
Run Condition Plugin
1.2
Safe Restart Plugin
0.3
SCM API Plugin
2.2.8
Script Security Plugin
1.46
Self-Organizing Swarm Plug-in Modules
3.14
Server Sent Events (SSE) Gateway Plugin
1.16
Sonar Quality Gates Plugin
1.3.1
SonarQube Scanner for Jenkins
2.8.1
SSH Agent Plugin
1.17
SSH Credentials Plugin
1.14
SSH plugin
2.6.1
SSH Slaves plugin
1.28.1
Stash Notifier
1.14
Stash Pullrequest Builder Plugin
1.7.0
Static Analysis Utilities
1.95
Structs Plugin
1.17
Subversion Plug-in
2.12.1
Timestamper
1.8.10
Token Macro Plugin
2.5
Validating String Parameter Plugin
2.4
Variant Plugin
1.1
Violations plugin
0.7.11
Web for Blue Ocean
1.6.2
Windows Slaves Plugin
1.3.1
Workspace Cleanup
0.34Jenkins is on Red Hat Enterprise Linux Server 7.5 (Maipo) and agents are windows agents Server 2012 R2. Active Directory plugin 2.8 AnsiColor 0.5.2 Ant Plugin 1.8 Apache HttpComponents Client 4.x API Plugin 4.5.5-3.0 Artifactory Plugin 2.16.2 Audit Trail 2.3 Authentication Tokens API Plugin 1.3 Autofavorite for Blue Ocean 1.2.2 Bitbucket Branch Source Plugin 2.2.12 Bitbucket Pipeline for Blue Ocean 1.6.2 Bitbucket Plugin 1.1.8 Blue Ocean 1.6.2 Blue Ocean Core JS 1.6.2 Blue Ocean Pipeline Editor 1.6.2 bouncycastle API Plugin 2.17 Branch API Plugin 2.0.20 Build Monitor View 1.12+build.201809061734 Build Timeout 1.19 build-name-setter 1.6.9 built-on-column 1.1 change-assembly-version-plugin 1.10 Checkstyle Plug-in 3.50 Command Agent Launcher Plugin 1.2 Common API for Blue Ocean 1.6.2 Compact Columns 1.10 Conditional BuildStep 1.3.6 Config API for Blue Ocean 1.6.2 Config File Provider 3.2 Console Column Plugin 1.5 Console Tail Plugin 1.1 Copy Artifact 1.39.1 Copy project link plugin 1.5 Credentials Binding Plugin 1.16 Credentials Plugin 2.1.18 Dashboard for Blue Ocean 1.6.2 Dashboard View 2.9.11 Deploy to container Plugin 1.13 Design Language 1.6.2 Display URL API 2.2.0 Display URL for Blue Ocean 2.2.0 Docker Commons Plugin 1.13 Docker Pipeline 1.17 Drop Down ViewsTabBar Plugin 1.7 Durable Task Plugin 1.26 Email Extension Plugin 2.63 embeddable-build-status 1.9 EnvInject API Plugin 1.5 Environment Injector Plugin 2.1.6 Escaped Markup Plugin 0.1 Events API for Blue Ocean 1.6.2 Extended Choice Parameter Plug-In 0.76 External Monitor Job Type Plugin 1.7 Extra Columns Plugin 1.20 Favorite 2.3.2 Flyway Runner 1.9 Folders 6.5.1 Git client plugin 2.7.3 Git Parameter 0.9.5 Git Pipeline for Blue Ocean 1.6.2 Git plugin 3.9.1 GIT server Plugin 1.7 GitHub API Plugin 1.92 GitHub Branch Source Plugin 2.4.0 GitHub Pipeline for Blue Ocean 1.6.2 GitHub plugin 1.29.3 Gradle Plugin 1.29 Handy Uri Templates 2.x API Plugin 2.1.6-1.0 HPE Security Fortify Jenkins Plugin 17.20.0183 HTML Publisher plugin 1.17 i18n for Blue Ocean 1.6.2 Icon Shim Plugin 2.0.3 Infrastructure plugin for Publish Over X 0.22 Ivy Plugin 1.28 Jackson 2 API Plugin 2.8.11.3 Javadoc Plugin 1.4 JavaScript GUI Lib: ACE Editor bundle plugin 1.1 JavaScript GUI Lib: Handlebars bundle plugin 1.1.1 JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin 1.2.1 JavaScript GUI Lib: Moment.js bundle plugin 1.1.1 JDK Tool 1.0 JIRA Integration for Blue Ocean 1.6.2 JIRA plugin 3.0.2 Job Configuration History Plugin 2.18.2 Job Import Plugin 3.0 jQuery plugin 1.12.4-0 JSch dependency plugin 0.1.54.2 JUnit Plugin 1.26.1 JWT for Blue Ocean 1.6.2 LDAP Plugin 1.20 Mailer Plugin 1.21 MapDB API Plugin 1.0.9.0 Mask Passwords Plugin 2.12.0 Matrix Authorization Strategy Plugin 2.3 Matrix Project Plugin 1.13 Maven Integration plugin 3.1.2 Mercurial plugin 2.4 Metrics Plugin 4.0.2.2 Modern Status 1.2 MSBuild Plugin 1.29 MSTest plugin 0.23 MSTestRunner plugin 1.3.0 Multiple SCMs plugin 0.6 Nested View Plugin 1.14 New Relic Deployment Notifier 1.3 Next Build Number Plugin 1.5 Nuget Plugin 0.7 NUnit plugin 0.23 OWASP Markup Formatter Plugin 1.5 PAM Authentication plugin 1.4 Parameterized Trigger plugin 2.35.2 PegDown Formatter Plugin 1.3 Personalization for Blue Ocean 1.6.2 Pipeline 2.5 Pipeline Graph Analysis Plugin 1.7 Pipeline implementation for Blue Ocean 1.6.2 Pipeline SCM API for Blue Ocean 1.6.2 Pipeline: API 2.27 Pipeline: Basic Steps 2.8.2 Pipeline: Build Step 2.7 Pipeline: Declarative 1.3.2 Pipeline: Declarative Agent API 1.1.1 Pipeline: Declarative Extension Points API 1.3.2 Pipeline: GitHub Groovy Libraries 1.0 Pipeline: Groovy 2.57 Pipeline: Input Step 2.8 Pipeline: Job 2.25 Pipeline: Milestone Step 1.3.1 Pipeline: Model API 1.3.2 Pipeline: Multibranch 2.20 Pipeline: Nodes and Processes 2.22 Pipeline: REST API Plugin 2.10 Pipeline: SCM Step 2.7 Pipeline: Shared Groovy Libraries 2.12 Pipeline: Stage Step 2.3 Pipeline: Stage Tags Metadata 1.3.2 Pipeline: Stage View Plugin 2.10 Pipeline: Step API 2.16 Pipeline: Supporting APIs 2.20 Plain Credentials Plugin 1.4 PostBuildScript Plugin 2.8.1 Progress Bar Column Plugin 1.0 promoted builds plugin 3.2 Pub-Sub "light" Bus 1.12 Publish Over CIFS 0.11 Quality Gates Plugin 2.5 Resource Disposer Plugin 0.12 REST API for Blue Ocean 1.6.2 REST Implementation for Blue Ocean 1.6.2 Run Condition Plugin 1.2 Safe Restart Plugin 0.3 SCM API Plugin 2.2.8 Script Security Plugin 1.46 Self-Organizing Swarm Plug-in Modules 3.14 Server Sent Events (SSE) Gateway Plugin 1.16 Sonar Quality Gates Plugin 1.3.1 SonarQube Scanner for Jenkins 2.8.1 SSH Agent Plugin 1.17 SSH Credentials Plugin 1.14 SSH plugin 2.6.1 SSH Slaves plugin 1.28.1 Stash Notifier 1.14 Stash Pullrequest Builder Plugin 1.7.0 Static Analysis Utilities 1.95 Structs Plugin 1.17 Subversion Plug-in 2.12.1 Timestamper 1.8.10 Token Macro Plugin 2.5 Validating String Parameter Plugin 2.4 Variant Plugin 1.1 Violations plugin 0.7.11 Web for Blue Ocean 1.6.2 Windows Slaves Plugin 1.3.1 Workspace Cleanup 0.34
We have a Jenkins Pipeline job setup to use MSDeploy to deploy to our dev environment. We have a groovy file checked into source control that runs the deployment of several different applications. Each application then downloads and calls this file. When MSDeploy encounters an error such as Error Code: ERROR_USER_NOT_ADMIN, the job fails as expected. If someone fat fingers the "IIS Web Application Name" in the SetParameters.xml file, you can see the error in the Jenkins Logs
15:55:36 Error Code: ERROR_SITE_DOES_NOT_EXIST
15:55:36 More Information: Site 'dev.mysite.com1' does not exist. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST.
15:55:36 Error count: 1.
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
but the job still exists as successful.
Excerpt from Pipeline Job Groovy:
Stages = load "DeployTo_Test.Groovy"
Stages.Deploy(DROP_FOLDER, PROJECT_NAME, VER_DEPLOY_TO)
Excerpt from DeployTo_Test.Groovy
def Deploy(DROP_FOLDER, PROJECT_NAME, VER_DEPLOYMENT_LOCATION) {
...SetSomeValues
bat "pushd ${COMMAND_LOC_TO_RUN} && ${PROJECT_NAME}.deploy.cmd /Y /M:${deploymentMachines[i]} /U:%DeployUsername% /P:%DeployPassword% -setParamFile:%workspace%
${SetParamFile}"
}
Logs from a different MSDeploy error that fails the job
16:16:48 Error Code: ERROR_USER_NOT_ADMIN
16:16:48 More Information: Connected to 'myMachine.com' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administrator on 'myMachine.com'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN.
16:16:48 Error: The remote server returned an error: (401) Unauthorized.
16:16:48 Error count: 1.
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code -1
Finished: FAILURE