need the pipline script

已查看 85 次
跳至第一个未读帖子

Robert Rajendra

未读,
2018年10月1日 07:44:212018/10/1
收件人 jenkins...@googlegroups.com
HI 

need pipleine script to get code from git and deploy to the ssh and 
how to store ssh keys and location in jenkins pipeline  project 


Regards 

Robert Rajendra

Associate Network/Server Support Engineer

IT Hands

P: +91 863.087.3094

W: www.ITHands.com

RAJENDRA PRASAD

未读,
2018年10月1日 08:10:122018/10/1
收件人 jenkins...@googlegroups.com
Install following plugins
Git plugin,
Pipeline plugin,
Credentials plugin
Credentials binding plugin

After this use snippet generator to compose pipeline step like 'gitcheckout'

I hope you can do after this hint.
Let me know if you need further help?

Thanks,
Rajendra

--
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/CABbC_KHUSjnPbgK%2BgEaFUnfDxUPB0D9w%2BxO_spWUEHVk47JppQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Robert Rajendra

未读,
2018年10月1日 08:47:562018/10/1
收件人 jenkins...@googlegroups.com
getting this error while deploying from publissh via ssh 

Started by user IT HANDS
Building in workspace /var/lib/jenkins/workspace/cheyney-ezradigital-wc
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url gi...@git.ithands.com:ITHands/cheyney-ezradigital-wc.git # timeout=10
Fetching upstream changes from gi...@git.ithands.com:ITHands/cheyney-ezradigital-wc.git
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress gi...@git.ithands.com:ITHands/cheyney-ezradigital-wc.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/staging^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/staging^{commit} # timeout=10
Checking out Revision 30671e24c4f82b1deebe58b4be538305f7920eb1 (refs/remotes/origin/staging)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 30671e24c4f82b1deebe58b4be538305f7920eb1
Commit message: "resolve conflict"
 > git rev-list --no-walk 30671e24c4f82b1deebe58b4be538305f7920eb1 # timeout=10
Sending e-mails to: samuel...@ithands.biz george...@ithands.biz joel....@ithands.net
SSH: Connecting from host [ip-172-31-31-34]
SSH: Connecting with configuration [Lightsail-cheneystage] ...
SSH: Disconnecting configuration [Lightsail-cheneystage] ...
ERROR: Exception when publishing, exception message [Permission denied]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE



what could be the cause of this 

Robert Rajendra

Associate Network/Server Support Engineer

IT Hands

P: +91 863.087.3094

W: www.ITHands.com


panneerrselvam natarajan

未读,
2018年10月1日 09:30:412018/10/1
收件人 Jenkins Users
Hi Rajendra,

Thanks for your response.

I installed  everything and got credential also. The sample pipeline scripts are working fine.

I have lot of API Test case... Let me know the procedure to send request and get response (HTTPS) for simple url ( i can use my company url).

Thanks in advance
Panneer

RAJENDRA PRASAD

未读,
2018年10月1日 10:31:092018/10/1
收件人 jenkins...@googlegroups.com

Hi panneerrselvam,

You want to automate web services using Jenkins? or you want to trigger Jenkins via API(Rest Call)?
i think , you want to  trigger automated test suite for web service from Jenkins ?
If that s correct then which or framework you people used create automated web service test suite?
normally people write ant script to trigger test suite.
 

Thanks and Regards,
Rajendra Prasad Reddy Penumalli
Sr. Engineer in Testing.
Mobile:9008566233


panneerrselvam natarajan

未读,
2018年10月1日 11:36:232018/10/1
收件人 Jenkins Users
Hi Rajendra,

Thanks for your immediate response.
Yes.. I want to automate web services using Jenkins pipeline
I think i can call using curl function.. current me if am wrong.

Regards
Panneer

RAJENDRA PRASAD

未读,
2018年10月1日 11:47:282018/10/1
收件人 jenkins...@googlegroups.com
Using curl you can automate but we use readyAPI(paid version o SOAPUI).
Curl can be used for light weight automation and it is tedious to use large scale web service automation.
you can also use soapui open source or even jmeter.

these tools you can install on the same machine and use cli mode to launch tests from shell prompt in build section.

thanks,
Rajendra


Thanks and Regards,
Rajendra Prasad Reddy Penumalli
Sr. Engineer in Testing.
Mobile:9008566233

panneerrselvam natarajan

未读,
2018年10月1日 13:36:572018/10/1
收件人 Jenkins Users
Thanks Rajendra

Regards
Panneer

panneerrselvam natarajan

未读,
2018年10月4日 14:31:172018/10/4
收件人 Jenkins Users
Hi Rajendra,

I am getting the below error message..
groovy.lang.MissingPropertyException: No such property: AfirstDT for class: groovy.lang.Binding
	at groovy.lang.Binding.getVariable(Binding.java:63)

Please suggest me.


Regards
Panneer

panneerrselvam natarajan

未读,
2018年10月4日 14:31:172018/10/4
收件人 Jenkins Users
Hi Rajendra,

I am getting the below error message when i run my scripts using jenkins.

Ji.. I need your technical support

for few minutes

I am getting the below error message while executing the pipeline

groovy.lang.MissingPropertyException: No such property: A99versionCount1 for class: groovy.lang.Binding
  at groovy.lang.Binding.getVariable(Binding.java:63)


Can you help me on this.


Regards

Panneer


RAJENDRA PRASAD

未读,
2018年10月4日 20:54:312018/10/4
收件人 jenkins...@googlegroups.com
Hi ,
Tomorrow I can help you, can you mail me personally, what you are actually doing there ?
I mean what are the steps you have in pipeline script,when you are encountering this issue.

Thanks,

Rehan Baig

未读,
2018年10月5日 09:46:222018/10/5
收件人 jenkins...@googlegroups.com
Please share here so newbie like me can get benefit from it too 

Thanks 😀

panneerrselvam natarajan

未读,
2018年10月6日 13:23:322018/10/6
收件人 Jenkins Users
sure.

I variable declaration was missing...I did.

Regards
Panneer
Hi,

Variable declaration was missing.. I did.

Regards
Panneer
回复全部
回复作者
转发
0 个新帖子