Re: Jenkinsfile integration with Azure AKS

2020-04-01 Thread Gianluca
It's difficult to answer your question because it's too much broad and generic. What you asked is: "Can we basically integrate on prem Jenkins with Azure aks " ... and even I've never used Azure AKS, I'm 100% sure that the answer is Yes ... but I'm also 100% sure that's not what you are asking

Re: Jenkinsfile integration with Azure AKS

2020-04-01 Thread Sunny Prakash
Any suggestions will be highly appreciated On Thu, 2 Apr, 2020, 12:06 am Prakasun, wrote: > Team, > > We have to write a jenkinsfile in which we want to integrate Continous > deployment part with Azure AKS. Our on prem data center Jenkins will > automatically deploy app into Azure AKS. No docume

Re: Maveen issue

2020-04-01 Thread Tejkumar Kempaiah
Hi Jeevan, Add Junit dependency to your pom.xml file and try to package then. Regards, Tejkumar On Thu, Apr 2, 2020 at 7:50 AM Jan Monterrubio wrote: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-war-plugin:2.2:war > (default-war) on project mailcasting: Error assembling W

Re: Maveen issue

2020-04-01 Thread Jan Monterrubio
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project mailcasting: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1] I think that’s your error. On Wed, Apr 1, 2020 at 20:

Re: Maveen issue

2020-04-01 Thread Jan Monterrubio
Is this a Jenkins issue? Does it work outside of Jenkins? What Jenkins version and plugins are you using? On Wed, Apr 1, 2020 at 20:29 Jeevan Podduturi wrote: > Hi All, > > I can compile successfully but i cannot package, please help\guide me on > the same > > [root@maveen mailcasting]# mvn pack

Maveen issue

2020-04-01 Thread Jeevan Podduturi
Hi All, I can compile successfully but i cannot package, please help\guide me on the same [root@maveen mailcasting]# mvn package [INFO] Scanning for projects... [INFO] [INFO] --< mailcasting:mailcasting >--- [INFO] Building mailcasting 0.0.1-SNAPSHOT [INFO]

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Richard Bywater
Yes there is - use "includes" parameter which is an Ant compatible pattern that specifies what files in the report directory to archive. It defaults to archiving all files in the given report directory. Richard. On Thu, 2 Apr 2020 at 08:41, Filip Kosik wrote: > Thanks Gianluca for your explana

Re: Make vSphere plugin work

2020-04-01 Thread Gianluca
We had these issue in the past ... and this is what we discovered: 1) VSphereNotFoundException is raised also in the case the user don't have permission to see it. So, considering you are 100% sure the name is correct, I can tell you that it's a permission error. 2) I know it may seems strange .

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Filip Kosik
Thanks Gianluca for your explanation. This is exactly my problem. So, there is no way *how I can publish only specific files without archiving all files in directory*? The reason for the build number in my filenames is generating all HTML files to the shared directory (it is not inside build dir

Re: Make vSphere plugin work

2020-04-01 Thread 'Christoph Fetzer' via Jenkins Users
Hi Gianluca, OK, the log was a good idea, thank you very much! There I found: Started provisioning VC9BuildSlave97yt3vpya79krvglcpcgevei4 from vSphereCloud with 1 executors. Remaining excess workload: 0 Apr 01, 2020 5:13:01 PM WARNING org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode$1 cal

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Gianluca
Hi, I think you misunderstood the meaning of reportDir: "/${reportDir}", The publishHTML publishes the directory ... not the file. The reportFiles is the "index" that is loaded as beginning but it's the reportDir with whole is content that is published by the plugin. So, you can't have a report

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Filip Kosik
Hi Gianluca, thank you for your answer. Here is an example of my problem: When I run pipeline code: def fileName = "index_${reportBuildNo}.html"; … // HTML is generated here publishHTML (target: [ allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir:

Re: 'ansible-playbook: command not found' error when running from execute shell

2020-04-01 Thread Jagjeet Singh
@Vani Paridhyani - Can you help me how did you fix the issue. I am getting below error on running below command: *Exec:* ansible-playbook -i hosts simple-devops-image.yml; *Error: *bash: line 1: ansible-playbook: command not found On Tuesday, September 22, 2015 at 12:36:48 PM UTC+5:30, Vani Par

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Gianluca
Hi, I have this in my pipeline publishHTML target: [ allowMissing: true, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'out/python3-cov', reportFiles: '*/index.html', reportName: 'Python 3 Coverage' ] And I don't have old reports in builds. Each build has it ow

Jenkinsfile integration with Azure AKS

2020-04-01 Thread Prakasun
Team, We have to write a jenkinsfile in which we want to integrate Continous deployment part with Azure AKS. Our on prem data center Jenkins will automatically deploy app into Azure AKS. No documents available for this kind requirements. All the documents suggest Jenkins bootstrap through Azure

Jenkins HTML publishing on build level without copies

2020-04-01 Thread Filip Kosik
Hi, I am trying to *publish HTML reports for each build*. I tried plugin HtmlPublisher (1.22) but when it publishes my reports on their build page (using keepAll=true), it creates copies of reports from all previous builds in each build directory.

Re: CI with Git in Jenkins

2020-04-01 Thread Mark Waite
I has assumed that was what you meant. I assumed the question was, "Should I specify a (possibly empty) polling interval in the Jenkinsfile on the branches of my multibranch pipeline?" My answer is, no, use web hooks as the better solution. On Wed, Apr 1, 2020 at 9:04 AM Roland Asmann wrote: >

Re: Make vSphere plugin work

2020-04-01 Thread Gianluca
Hi, we use vSphere cloud plugin and some hints to help you debug: 1) go to the Jenkins log and check any error there Some errors we had in the past: - typo in the node label and the clone never started - clone started but it was failing due to permission errors in vSphere (the user is not able to

Make vSphere plugin work

2020-04-01 Thread 'Christoph Fetzer' via Jenkins Users
Hi, I have access to an Esxi-Server used by a vSphere instance. I set up a vsphere cloud in my Jenkins installation properly ("Test connection" works). I set up a template VM (Windows 10) with a Snapshot, Autologon and Autostart according to https://github.com/jenkinsci/vsphere-cloud-plugin/blo

Re: CI with Git in Jenkins

2020-04-01 Thread Roland Asmann
I'm sorry, I guess I wasn't quite clear on what I meant with this last question. What I want to know is if the consensus is to put the *empty* definition of the polling in the Jenkinfile (so that configuring a single pipeline works) even when using multibranch pipelines? On 30.03.2020 18:55

Re: Conditional pipeline not working

2020-04-01 Thread Ramadoni
Hi, Really thanks for your explanation, i just configure using multibranch project, and i have new problem that github webhook not running in multibranch project... Anyway thanks so much. Regards, Kurusetra On Tue, Mar 31, 2020 at 9:47 PM Gianluca wrote: > Hi, > environment variables like "env

Re: Command line acccess to build actions in muti branch pipeline

2020-04-01 Thread Gianluca
Hi, I'm not sure I'm following you ... or maybe we are using different ways to write our pipeline. So, to be more explicit ... this is what we have in our pipeline: pipeline { triggers { // runs every two hours cron('H H/2 * * *') } That is a Multibranch project (to be precise we use GitHub, not

RE: Command line acccess to build actions in muti branch pipeline

2020-04-01 Thread BCT Roel de Wildt
Hi, I have looked at it but it seems only possible if I change our Jenkinsfile within each project stored in svn within the branches of it. And I can’t see where to put the cron entry in the multi branch pipeline. I have only the following options (… 12 hours, 1 day, 2 days, etc… ) in “Periodic

Re: Command line acccess to build actions in muti branch pipeline

2020-04-01 Thread Gianluca
Hi, we have a similar issue and we use a combination of trigger cron command with "H" (if instead of * into cron syntax, you put "H" then Jenkins treats it special) >From documentation https://jenkins.io/doc/book/pipeline/syntax/ "The H symbol can be thought of as a random value over a range, but

Command line acccess to build actions in muti branch pipeline

2020-04-01 Thread BCT Roel de Wildt
Hello, In previous versions of Jenkins LTS there was a jenkins-cli.jar which I used to trigger a build job. Now with the latest (2.222.1) I can't find how to do the build jobs on a scheduled base. Where one is shedules at 19:00, the other on 20:30, etc... They can't run at same time due resourc