Giter Site home page Giter Site logo

azure / jenkins Goto Github PK

View Code? Open in Web Editor NEW
48.0 15.0 52.0 252 KB

Templates and scripts to help you run Jenkins on Azure

License: Creative Commons Attribution 4.0 International

PowerShell 8.55% HTML 2.22% CSS 3.11% JavaScript 1.26% Shell 84.86%

jenkins's Introduction

Jenkins on Azure

This repository contains Jenkins related resources in Azure.

Contents

Questions/Comments?

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Legal Notices

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

jenkins's People

Contributors

allxiao avatar anwather avatar gavinfish avatar lgdoor avatar lokulin avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar xuzhang3 avatar zackliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jenkins's Issues

Port 8080

The NSG created by this script opened only port 80 (without a redirect). Amending manually to port 8080 resolved it and I could access Jenkins.

Vanilla deployment of ARM template from Azure Marketplace fails

The deployment fails with following error:

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "Conflict",
      "message": "{\r\n  \"status\": \"Failed\",\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n    \"details\": [\r\n      {\r\n        \"code\": \"VMExtensionProvisioningError\",\r\n        \"message\": \"VM has reported a failure when processing extension 'Init'. Error message: \\\"Enable failed: failed to execute command: command terminated with exit status=1\\n[stdout]\\nnal disk space will be used.\\nGet:2 http://azure.archive.ubuntu.com/ubuntu xenial/universe amd64 daemon amd64 0.6.4-1 [98.2 kB]\\nGet:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.222.1 [65.2 MB]\\nFetched 65.3 MB in 4s (14.9 MB/s)\\nSelecting previously unselected package daemon.\\r\\n(Reading database ... \\r(Reading database ... 5%\\r(Reading database ... 10%\\r(Reading database ... 15%\\r(Reading database ... 20%\\r(Reading database ... 25%\\r(Reading database ... 30%\\r(Reading database ... 35%\\r(Reading database ... 40%\\r(Reading database ... 45%\\r(Reading database ... 50%\\r(Reading database ... 55%\\r(Reading database ... 60%\\r(Reading database ... 65%\\r(Reading database ... 70%\\r(Reading database ... 75%\\r(Reading database ... 80%\\r(Reading database ... 85%\\r(Reading database ... 90%\\r(Reading database ... 95%\\r(Reading database ... 100%\\r(Reading database ... 55029 files and directories currently installed.)\\r\\nPreparing to unpack .../daemon_0.6.4-1_amd64.deb ...\\r\\nUnpacking daemon (0.6.4-1) ...\\r\\nSelecting previously unselected package jenkins.\\r\\nPreparing to unpack .../jenkins_2.222.1_all.deb ...\\r\\nUnpacking jenkins (2.222.1) ...\\r\\nProcessing triggers for man-db (2.7.5-1) ...\\r\\nProcessing triggers for ureadahead (0.100.0-19.1) ...\\r\\nProcessing triggers for systemd (229-4ubuntu21.27) ...\\r\\nSetting up daemon (0.6.4-1) ...\\r\\nSetting up jenkins (2.222.1) ...\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nProcessing triggers for ureadahead (0.100.0-19.1) ...\\r\\nProcessing triggers for systemd (229-4ubuntu21.27) ...\\r\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\njenkins is already the newest version (2.222.1).\\nThe following package was automatically installed and is no longer required:\\n  grub-pc-bin\\nUse 'sudo apt autoremove' to remove it.\\n0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.\\n2.222.1\\nInstalling azure-vm-agents from update center\\nInstalling windows-azure-storage from update center\\nInstalling matrix-auth from update center\\nInstalling workflow-aggregator from update center\\nInstalling azure-app-service from update center\\nInstalling tfs from update center\\nInstalling azure-acs from update center\\nInstalling azure-container-agents from update center\\nInstalling azure-function from update center\\nInstalling azure-ad from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling service-fabric from update center\\nInstalling kubernetes-cd from update center\\nInstalling azure-container-registry-tasks from update center\\nInstalling azure-artifact-manager from update center\\n\\n[stderr]\\nFilter(BasicHeaderProcessor.java:82)\\n\\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\\n\\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\\n\\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\\n\\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\\n\\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\\n\\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\\n\\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)\\n\\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)\\n\\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)\\n\\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)\\n\\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)\\n\\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)\\n\\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\\n\\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\\n\\tat org.eclipse.jetty.server.Server.handle(Server.java:500)\\n\\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)\\n\\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)\\n\\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)\\n\\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)\\n\\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)\\n\\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\\n\\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)\\n\\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)\\n\\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)\\n\\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)\\n\\tat java.lang.Thread.run(Thread.java:748)\\nFailed while executing script 'scripts/run-cli-command.sh' with parameters '-c create-credentials-by-xml system::system::jenkins _ -cif storage_cred.xml'.\\n\\\"\\r\\n\\r\\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot \"\r\n      }\r\n    ]\r\n  }\r\n}"
    }
  ]
}

Any ideas?

acrQuickTask snippet generator fails when using autogenerated service principal

  1. Select autogenerated service principal
  2. Deploy latest Azure Jenkins LTS (Zulu) and login to it.
  3. navigate to localhost:8080/pipeline-syntax and click on Snippet Generator
  4. Choose acrQuickTask
  5. Select autogenerated service principal
  6. Observe error messages.
java.lang.UnsupportedOperationException: Unknown data type: 2
	at com.microsoft.jenkins.azurecommons.core.AzureClientFactory.getClient(AzureClientFactory.java:97)
	at com.microsoft.jenkins.acr.service.AzureHelper.auth(AzureHelper.java:33)
	at com.microsoft.jenkins.acr.service.AzureHelper.auth(AzureHelper.java:54)
	at com.microsoft.jenkins.acr.QuickTaskBuilder$DescriptorImpl.checkPrerequisites(QuickTaskBuilder.java:382)
	at com.microsoft.jenkins.acr.QuickTaskBuilder$DescriptorImpl.doFillResourceGroupNameItems(QuickTaskBuilder.java:263)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
Caused: javax.servlet.ServletException
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:797)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
	at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:153)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
	at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:500)
	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
	at java.lang.Thread.run(Thread.java:748)

Jenkins Debian Packages have new gpg key

"WARNING: The gpg key use to sign our packages has been updated on 16th of April 2020, therefore you need to reimport it if you imported before this date."

root@vm-jenkins-main:~# apt-get update
Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                                    
Hit:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                                  
Ign:4 https://pkg.jenkins.io/debian binary/ InRelease                                                                                                                    
Get:5 https://pkg.jenkins.io/debian binary/ Release [2044 B]                                                                                                             
Get:6 https://pkg.jenkins.io/debian binary/ Release.gpg [833 B]                                                                                                          
Hit:7 https://packages.microsoft.com/repos/azure-cli bionic InRelease                                                                                      
Hit:8 http://repos.azul.com/azure-only/zulu/apt stable InRelease                                                             
Hit:9 http://security.ubuntu.com/ubuntu bionic-security InRelease                                      
Ign:6 https://pkg.jenkins.io/debian binary/ Release.gpg
Reading package lists... Done 
W: GPG error: https://pkg.jenkins.io/debian binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FCEF32E745F2
C3D5
E: The repository 'https://pkg.jenkins.io/debian binary/ Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@vm-jenkins-main:~# wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
OK
root@vm-jenkins-main:~# apt-get update
Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease                                         
Hit:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease                                       
Ign:4 https://pkg.jenkins.io/debian binary/ InRelease                                                                                                         
Get:5 https://pkg.jenkins.io/debian binary/ Release [2044 B]                                                                                                  
Get:6 https://pkg.jenkins.io/debian binary/ Release.gpg [833 B]                                                                                                
Hit:7 http://repos.azul.com/azure-only/zulu/apt stable InRelease                                                                
Hit:8 https://packages.microsoft.com/repos/azure-cli bionic InRelease                          
Hit:9 http://security.ubuntu.com/ubuntu bionic-security InRelease        
Get:10 https://pkg.jenkins.io/debian binary/ Packages [32.9 kB]
Fetched 35.8 kB in 1s (34.0 kB/s)                             
Reading package lists... Done
root@vm-jenkins-main:~# 

Fixed in #42

Jenkins with private IP only

Is it possible to deploy Jenkins with no public IP?
How will JNLP ACI slave connect with Jenkins Master?
Perhaps we will have to use Jenkins to connect with ACI slaves with SSH.

It will be great to publish guidance to deploy Jenkins in private subnet and still leverage ACI slaves.

Thanks

Jenkins Resource Deployment Failed

I'm following instructions in:
https://docs.microsoft.com/en-us/azure/developer/jenkins/configure-on-linux-vm?source=docs

Resource creation is failing with error:

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "Conflict",
      "message": "{\r\n  \"status\": \"Failed\",\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n    \"details\": [\r\n      {\r\n        \"code\": \"VMExtensionProvisioningError\",\r\n        \"message\": \"VM has reported a failure when processing extension 'Init'. Error message: \\\"Enable failed: failed to execute command: command terminated with exit status=1\\n[stdout]\\n (javac) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/javah to provide /usr/bin/javah (javah) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode\\r\\nupdate-alternatives: using /usr/lib/jvm/zulu-8-azure-amd64/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode\\r\\nProcessing triggers for ureadahead (0.100.0-19.1) ...\\r\\nProcessing triggers for systemd (229-4ubuntu21.28) ...\\r\\nProcessing triggers for libc-bin (2.23-0ubuntu11.2) ...\\r\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following package was automatically installed and is no longer required:\\n  grub-pc-bin\\nUse 'sudo apt autoremove' to remove it.\\nThe following additional packages will be installed:\\n  daemon\\nThe following NEW packages will be installed:\\n  daemon jenkins\\n0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.\\nNeed to get 65.1 MB of archives.\\nAfter this operation, 66.8 MB of additional disk space will be used.\\nWARNING: The following packages cannot be authenticated!\\n  jenkins\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following package was automatically installed and is no longer required:\\n  grub-pc-bin\\nUse 'sudo apt autoremove' to remove it.\\nThe following additional packages will be installed:\\n  daemon\\nThe following NEW packages will be installed:\\n  daemon jenkins\\n0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.\\nNeed to get 65.1 MB of archives.\\nAfter this operation, 66.8 MB of additional disk space will be used.\\nWARNING: The following packages cannot be authenticated!\\n  jenkins\\n\\n[stderr]\\ngpg: requesting key 219BD9C9 from hkp server keyserver.ubuntu.com\\ngpg: key 219BD9C9: public key \\\"Azul Systems, Inc. (Package signing key.) <[email protected]>\\\" imported\\ngpg: Total number processed: 1\\ngpg:               imported: 1  (RSA: 1)\\nW: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FCEF32E745F2C3D5\\nW: The repository 'http://pkg.jenkins.io/debian-stable binary/ Release' is not signed.\\ndebconf: unable to initialize frontend: Dialog\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\ndebconf: falling back to frontend: Readline\\ndebconf: unable to initialize frontend: Readline\\ndebconf: (This frontend requires a controlling tty.)\\ndebconf: falling back to frontend: Teletype\\ndpkg-preconfigure: unable to re-open stdin: \\nE: There were unauthenticated packages and -y was used without --allow-unauthenticated\\nE: There were unauthenticated packages and -y was used without --allow-unauthenticated\\n\\\"\\r\\n\\r\\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot \"\r\n      }\r\n    ]\r\n  }\r\n}"
    }
  ]
}

I re-tried a couple of times and tried creating the server with password instead of SSH key. Same result.

2.73.3 latest verified version?

Hello. I noticed that the latest version that is installed under the "Azure Verified" release type is still 2.73.3.

Is there a reason this hasn't been updated to a later version?

On a fresh install of 2.73.3, Jenkins gives me these warnings:

Warnings have been published for the following currently installed components:
Jenkins 2.73.3 core and libraries:
Multiple security vulnerabilities in Jenkins 2.120 and earlier, and LTS 2.107.2 and earlier
Multiple security vulnerabilities in Jenkins 2.106 and earlier, and LTS 2.89.3 and earlier
Multiple security vulnerabilities in Jenkins 2.94 and earlier, and LTS 2.89.1 and earlier
Multiple security vulnerabilities in Jenkins 2.115 and earlier, and LTS 2.107.1 and earlier

Seems like it might be important to update to 2.121.1?

Is there a reason this hasn't been updated, other than it seems to be a manual process in this repo? It seems like I am able to install and use 2.121.1 on Azure, but are there checks I'm missing to ensure it is working correctly?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.