.Net Project Automated Build and Deployment Setup

2017-03-25 Thread Lokesh Swamy
Hi,

Can anybody please help me out in performing deployment to a WebServer with 
telnet ? 

I am currently using telnet login to connect to my Validation servers where 
the code is actually deployed.

I have written the script(or commands) for doing a build and publish a 
package in my Dev environment. 

I am planning to do an automated build with deployment to my server.

I am using MSBuild and TFS plugin already, is there any plugin for 
overriding telnet ?


Regards,
Lokesh

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5cf9a675-c075-4286-8491-130f947f9444%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


p4 unshelve fails in a pipeline job

2017-03-25 Thread Ravi Kondamuru
Hi,

I have a pipeline based job where I do an unshelve, if user provides it as 
input. However, I see that it always indicates "no such files". If i run 
the command on a regular system it succeeds. I am not able to figure out 
what this error indicates. 

Any help will be appreciated.

thanks,
Ravi.



Console log:

[vpx] P4 Task: unshelve review: 582305
[vpx] (p4):cmd:... p4 unshelve -f -s582305 -cdefault
[vpx] p4 unshelve -f -s582305 -cdefault
[vpx] 
[vpx]  - no such file(s).
[vpx] 
[vpx] (p4):stop:6
[vpx] ... duration: (7ms)



Jenkinsfile:


checkout([$class: 'PerforceScm', 
credential:'42c7583c-d502-41d9-abac-d9ab9a9ea574', ...)

if (Shelved_Changelist_No != "") {

p4unshelve resolve: 'am', shelf:"${Shelved_Changelist_No}", 
credential:'42c7583c-d502-41d9-abac-d9ab9a9ea574'

}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2862b9ad-e873-4d6c-90ca-cfa7a4503ef1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-25 Thread Idan Adar
At last, resolved using parameters, when and expression blocks.
See 
here: 
http://stackoverflow.com/questions/43016942/can-a-jenkins-job-be-aborted-with-success-result

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fe5bcea7-305e-45b2-b9e1-750bc243574b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-25 Thread Idan Adar
I am now attempting to solve this use the environment, when and expression 
blocks.
Could some please take a 
look? 
http://stackoverflow.com/questions/43016942/can-a-jenkins-job-be-aborted-with-success-result

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3c884828-05c1-4038-8864-e0e5fae9e727%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Chef plugin in jenkin

2017-03-25 Thread Krishna
Hi Experts, 

I am new bee to jenkin, just wanted to know is chef plugin supported in 
jenkin, If yes, can someone share me the link for the same. 

Thank you in advance. 

Thanks
Krishna

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/65382cdb-b1aa-4b80-ac93-864805beefcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: platformlabeler removed from update center?

2017-03-25 Thread Daniel Beck

> On 25.03.2017, at 12:05, Mark Waite  wrote:
> 
> http://updates.jenkins-ci.org/download/plugins/ no longer includes the 
> platformlabeler plugin.  I've found that to plugin to be a nice convenience 
> to automatically label my agents based on the operating system which they are 
> running.
> 
> Was it removed for a specific reason?
> 

Probably a bug introduced with my recent changes to the update center 
generator. I'm tracking this as INFRA-1113.

In the mean time, you can download it from 
https://repo.jenkins-ci.org/javanet2-cache/org/jvnet/hudson/plugins/platformlabeler/

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D6A90CA1-662C-4EB3-84DA-A67D279135F6%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


platformlabeler removed from update center?

2017-03-25 Thread Mark Waite
http://updates.jenkins-ci.org/download/plugins/ no longer includes the
platformlabeler plugin.  I've found that to plugin to be a nice convenience
to automatically label my agents based on the operating system which they
are running.

Was it removed for a specific reason?

Is there a better alternative to label agents based on the capabilities of
those agents?

Thanks,
Mark Waite

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtF%2BWyr5GA84oBLdr_8ddfhy7ZiXHHkHuGZWuMGtw17H%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-25 Thread Idan Adar
Thus far I have tried:

* success ("...") -- build stops with "failed" status
* sh "exit 0" -- build doesn't stop (continues to the next stage in the 
pipeline)

I think "exit 0" is the way to go, but didn't yet figure out exactly how... 

On Saturday, March 25, 2017 at 1:01:15 PM UTC+3, Stephen Connolly wrote:
>
> Skipping polling from the git plugin is not an option for branch sources
>
> The branch source tracks last revision built for each branch and fires a 
> build of the current revision is not equal to the last.
>
> What you want is a build step that stops the build with an "ignore" status 
> of some sort.
>
> On Sat 25 Mar 2017 at 09:52, Idan Adar  
> wrote:
>
>> As Mark mentioned, the alternative is to trigger an exception... (which 
>> will in turn show the row in red color).
>> I do it as follows. After checking out, if a git commit includes "[ci 
>> skip]" I use a "success" keyword (this keyword does not exit) hence the 
>> build stops.
>>
>> I would love for this keyword to exist, so that the job will stop with a 
>> green row instead of a red row... Is this possible?
>>
>> stage ("Checkout SCM") {
>> steps {
>> script {
>>STAGE_NAME = "Checkout SCM"
>>
>>checkout scm
>>result = sh (script: "git log -1 | grep '.*\\[ci skip\\].*'", 
>> returnStatus: true) 
>>if (result == 0) {
>>   echo ("'ci skip' spotted in git commit. Aborting.")
>>   success ("'ci skip' spotted in git commit. Aborting.")
>>}
>> }
>> }
>> }
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/cd25bb36-d893-4281-a04e-d5a6bb54f6b8%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Sent from my phone
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/720a5799-1150-462a-afe8-55d3e01636ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-25 Thread Stephen Connolly
Skipping polling from the git plugin is not an option for branch sources

The branch source tracks last revision built for each branch and fires a
build of the current revision is not equal to the last.

What you want is a build step that stops the build with an "ignore" status
of some sort.

On Sat 25 Mar 2017 at 09:52, Idan Adar  wrote:

> As Mark mentioned, the alternative is to trigger an exception... (which
> will in turn show the row in red color).
> I do it as follows. After checking out, if a git commit includes "[ci
> skip]" I use a "success" keyword (this keyword does not exit) hence the
> build stops.
>
> I would love for this keyword to exist, so that the job will stop with a
> green row instead of a red row... Is this possible?
>
> stage ("Checkout SCM") {
> steps {
> script {
>STAGE_NAME = "Checkout SCM"
>
>checkout scm
>result = sh (script: "git log -1 | grep '.*\\[ci skip\\].*'",
> returnStatus: true)
>if (result == 0) {
>   echo ("'ci skip' spotted in git commit. Aborting.")
>   success ("'ci skip' spotted in git commit. Aborting.")
>}
> }
> }
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/cd25bb36-d893-4281-a04e-d5a6bb54f6b8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my phone

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMymwUSu6%2BDiUQpgwZdVwZ4t%3DQP81DggRo6iwMX%3Dr_CWSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-25 Thread Idan Adar
As Mark mentioned, the alternative is to trigger an exception... (which 
will in turn show the row in red color).
I do it as follows. After checking out, if a git commit includes "[ci 
skip]" I use a "success" keyword (this keyword does not exit) hence the 
build stops.

I would love for this keyword to exist, so that the job will stop with a 
green row instead of a red row... Is this possible?

stage ("Checkout SCM") {
steps {
script {
   STAGE_NAME = "Checkout SCM"
   
   checkout scm
   result = sh (script: "git log -1 | grep '.*\\[ci skip\\].*'", 
returnStatus: true) 
   if (result == 0) {
  echo ("'ci skip' spotted in git commit. Aborting.")
  success ("'ci skip' spotted in git commit. Aborting.")
   }
}
}
}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cd25bb36-d893-4281-a04e-d5a6bb54f6b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-25 Thread Idan Adar
This answer is promising: http://stackoverflow.com/a/41164841/1530814

The problem is that when using Branch Source as Git (so that these options 
are available in the Jenkins UI, $CHANGE_ID is not available... (my code 
depends on it).
When using Branch Source as GitHub, these options are not available...

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5ee93b0d-3dfe-4cdf-9b5b-c52bdb1568a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-25 Thread Idan Adar
The above is not the solution. It simply makes the job not run...

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a05675f3-4374-4207-8db6-f9874ad2428c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to git push from a Jenkinsfile?

2017-03-25 Thread Idan Adar
Okay, solved at last.

In addition to the below stage, for your reference, I had to also add the 
id_rsa and id_rsa.pub files to ~/.ssh. Then I had to do a git push manually 
from the command line which then instructed me to trust the ssh key. 
Following this, the script from the stage then worked.

The problem I am facing now is that it seems the "ci skip" plug-in is not 
working. Despite the presence of "[ci skip]" in the commit message, the job 
is being triggered in a loop (because the job makes a push to the master 
branch, meaning a push webhook again triggers it...

stage ("Publish to npm") {
 steps {
script {
   STAGE_NAME = "Publish to npm"
 
   if (BRANCH_NAME == "master") {
  // Publish to npm and bump the version number for the 
next release
  sh "npm publish"
  deleteDir()
  sshagent (credentials: [
'e276113e-0ec9-4eaa-88f9-a7db5c9635b6']) {
 sh '''
git clone git@.git
cd 
npm --no-git-tag-version version minor
git config --global user.name ""
git config --global user.email 
git commit -am 'Bumped version number [ci skip]'
git push origin master
 '''
  }
  
  slackSend (
 color: '#199515',
 message: "$JOB_NAME: Build #$BUILD_NUMBER passed 
successfully."
  )
   }
   else {
  echo "Not in 'master' branch. Don't attempt publishing."
   }
}
 }
  }
   }

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5e4cd359-b0c1-4507-ab45-0a6df1ac5b66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.