RE: MissingMethodException while using shared libraries

2019-03-01 Thread Reinhold Füreder


 validateCall(this, message, displayName)



bitbucketUtilities.notifyBuildSuccess(message, displayName)

}



@NonCPS

def notifyBuildFail(String message, String displayName) {



//Remove

println "bitbucketUtilities global vars, env: "+env



validateCall(this, message, displayName)



bitbucketUtilities.notifyBuildFail(message, displayName)

}



@NonCPS

private void validateCall(def script, String message, String displayName) {



if(message == null || message.isEmpty()) {

script.error("[ERROR][${script.STEP_NAME}] Build message not provided")

}



if(displayName == null || displayName.isEmpty()){

script.error("[ERROR][${script.STEP_NAME}] displayName not provided!")

}



}

setupSharedUtils.groovy

import groovy.transform.Field

import com.jenkins.utilities.ServiceLocator



void call(Map parameters = [:]) {

if (parameters?.callingScript == null) {

step.error(

"[ERROR][setupSharedUtils] No reference to surrounding script " +

"provided with key 'callingScript', e.g. 'callingScript: this'.")

} else {

parameters.callingScript.serviceLocator = ServiceLocator.getInstance()

}

}



src packages containing classes like BitbucketBuildOperationsHandler

class BitbucketBuildOperationsHandler implements  Serializable {



private def script

private def env

//TODO: Think if this should be an enum but iterating it will be an overhead

private static final String [] bitbucketBuildStatuses = ["INPROGRESS", 
"SUCCESSFUL", "FAILED"]



BitbucketBuildOperationsHandler(def script, def env) {

//Remove

script.println "In constructor of BitbucketBuildOperationsHandler, env: 
{$env}, script: {$script}"

this.script = script

this.env = env

}



def notifyBuildStart(String message, String displayName) {

script.println "${displayName} Notify commit: ${env.GIT_COMMIT} build 
start: ${message}"

postBuildStatus(script,"INPROGRESS", displayName, env.BUILD_URL, 
env.GIT_COMMIT, message)

}



def notifyBuildSuccess(String message, String displayName) {

script.println "${displayName} Notify commit: ${env.GIT_COMMIT} build 
success: ${message}"

postBuildStatus(script,'SUCCESSFUL', displayName, env.BUILD_URL, 
env.GIT_COMMIT, message)

}



def notifyBuildFail(String message, String displayName) {

script.println "${displayName} Notify commit: ${env.GIT_COMMIT} build 
fail: ${message}"

postBuildStatus(script,'FAILED', displayName, env.BUILD_URL, 
env.GIT_COMMIT, message)

}



.

.

.

}

*Error*

While the library jenkins-shared-utilities seems to be available to Alfaclient, 
somehow, in the global vars bitbucketUtilities.groovy, the variable 
'bitbucketUtilities' (@Field final BitbucketBuildOperationsHandler 
bitbucketUtilities) isn't identified. Note that the @NonCPS annotation is 
immaterial - the Exception persists with/without it, also, note the println in 
bitbucketUtilities global vars and in the constructor of Groovy class viz. 
BitbucketBuildOperationsHandler

In constructor of BitbucketBuildOperationsHandler, env: 
{org.jenkinsci.plugins.workflow.cps.EnvActionImpl@75f03f42}<mailto:%7borg.jenkinsci.plugins.workflow.cps.EnvActionImpl@75f03f42%7d>,
 script: {bitbucketUtilities@3e86aed8}

[Pipeline] echo

bitbucketUtilities global vars, env: 
org.jenkinsci.plugins.workflow.cps.EnvActionImpl@75f03f42<mailto:org.jenkinsci.plugins.workflow.cps.EnvActionImpl@75f03f42>

[Pipeline] }

[Pipeline] // stage

[Pipeline] echo

bitbucketUtilities global vars, env: 
org.jenkinsci.plugins.workflow.cps.EnvActionImpl@75f03f42<mailto:org.jenkinsci.plugins.workflow.cps.EnvActionImpl@75f03f42>

[Pipeline] }

[Pipeline] // node

[Pipeline] End of Pipeline

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No 
signature of method: java.lang.Class.notifyBuildFail() is applicable for 
argument types: (java.lang.String, java.lang.String) values: [Exception No 
signature of method: java.lang.Class.notifyBuildStart() is applicable for 
argument types: (java.lang.String, java.lang.String) values: [Build 44 started 
at 20190301-0810, Component Pipeline] in build 44, ...]

at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:153)

at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155)

at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159)

at org.kohsuke.groovy.sandbox.impl.Checker$checkedCall.callStatic(Unknown 
Source)

at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)

at 
org.codehaus.groovy.runtime.callsite.AbstractCall

Re: MissingMethodException while using shared libraries

2019-03-01 Thread Kaliyug Antagonist
AGE} failed in build ${env.BUILD_ID} 
> with exit code ${exit_code}"
>
> bitbucketUtilities.notifyBuildFail(build_status, PIPELINE_NAME)
>
>  
>
> }   
>
>  
>
> }
>
>  
>
> Now comes the main library viz. *jenkins-shared-utilities*. It has the 
> following structure: 
>
>  
>
> *vars* containing scripts that would act as global variables for 
> components like *Alfaclient*.
>
> bitbucketUtilities.groovy
>
> import groovy.transform.Field
>
> import com.jenkins.utilities.bitbucket.*
>
> import com.cloudbees.groovy.cps.NonCPS
>
>  
>
> @Field final String STEP_NAME = getClass().getName()
>
> @Field final BitbucketBuildOperationsHandler bitbucketUtilities = new 
> BitbucketBuildOperationsHandler(this,env)
>
>  
>
> @NonCPS
>
> def notifyBuildStart(String message, String displayName) {
>
>  
>
> //Remove
>
> println "bitbucketUtilities global vars, env: "+env
>
> validateCall(this, message, displayName)
>
>  
>
> bitbucketUtilities.notifyBuildStart(message, displayName)
>
> }
>
>  
>
> @NonCPS
>
> def notifyBuildSuccess(String message, String displayName) {
>
>  
>
> //Remove
>
> println "bitbucketUtilities global vars, env: "+env
>
>  
>
>  validateCall(this, message, displayName)
>
>  
>
> bitbucketUtilities.notifyBuildSuccess(message, displayName)
>
> }
>
>  
>
> @NonCPS
>
> def notifyBuildFail(String message, String displayName) {
>
>  
>
> //Remove
>
> println "bitbucketUtilities global vars, env: "+env
>
>  
>
> validateCall(this, message, displayName)
>
>  
>
> bitbucketUtilities.notifyBuildFail(message, displayName)
>
> }
>
>  
>
> @NonCPS
>
> private void validateCall(def script, String message, String displayName) {
>
>  
>
> if(message == null || message.isEmpty()) {
>
> script.error("[ERROR][${script.STEP_NAME}] Build message not 
> provided")
>
> }
>
>  
>
> if(displayName == null || displayName.isEmpty()){
>
> script.error("[ERROR][${script.STEP_NAME}] displayName not provided!")
>
> }
>
>  
>
> }
>
> setupSharedUtils.groovy
>
> import groovy.transform.Field
>
> import com.jenkins.utilities.ServiceLocator
>
>  
>
> void call(Map parameters = [:]) {
>
> if (parameters?.callingScript == null) {
>
> step.error(
>
> "[ERROR][setupSharedUtils] No reference to surrounding script " +
>
> "provided with key 'callingScript', e.g. 'callingScript: this'.")
>
> } else {
>
> parameters.callingScript.serviceLocator = ServiceLocator.getInstance()
>
> }
>
> }
>
>  
>
> *src* packages containing classes like BitbucketBuildOperationsHandler
>
> class BitbucketBuildOperationsHandler implements  Serializable {
>
>  
>
> private def script
>
> private def env
>
> //TODO: Think if this should be an enum but iterating it will be an 
> overhead
>
> private static final String [] bitbucketBuildStatuses = ["INPROGRESS", 
> "SUCCESSFUL", "FAILED"]
>
>  
>
> BitbucketBuildOperationsHandler(def script, def env) {
>
> //Remove
>
> script.println "In constructor of BitbucketBuildOperationsHandler, 
> env: {$env}, script: {$script}"
>
> this.script = script
>
> this.env = env
>
> }
>
>  
>
> def notifyBuildStart(String message, String displayName) {
>
> script.println "${displayName} Notify commit: ${env.GIT_COMMIT} build 
> start: ${message}"
>
> postBuildStatus(script,"INPROGRESS", displayName, env.BUILD_URL, 
> env.GIT_COMMIT, message)
>
> }
>
>  
>
> def notifyBuildSuccess(String message, String displayName) {
>
> script.println "${displayName} Notify commit: ${env.GIT_COMMIT} build 
> success: ${message}"
>
> postBuildStatus(script,'SUCCESSFUL', displayName, env.BUILD_URL, 
> env.GIT_COMMIT, message)
>
> }
>
>  
>
> def notifyBuildFail(String message, String displayName) {
>
> script.println "${displayName} Notify commit: ${env.GIT_COMMIT} build 
> fail: ${message}"
>
> postBuildStatus(script,'FAILED', displayName, env.BUILD_URL, 
> env.GIT_COMMIT, message)
>
> }
>
>  
>
> 

Run button on Blue Ocean for Multibranch pipeline

2019-03-01 Thread Thiago Carvalho D Avila
Hi, 

I am using Jenkins 2.150.3 with Blue Ocean 1.11.1. When a create a Pipeline 
there is a Run button, but when I create Multibranch Pipelines, the button does 
not appear. 

How do I Run on Blue Ocean a Multibranch Pipeline? 

Best regards, 

Thiago 

-


"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa 
pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada 
exclusivamente a seu destinatário e pode conter informações confidenciais, 
protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e 
sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, 
por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a 
government company established under Brazilian law (5.615/70) -- is directed 
exclusively to its addressee and may contain confidential data, protected under 
professional secrecy rules. Its unauthorized use is illegal and may subject the 
transgressor to the law's penalties. If you're not the addressee, please send 
it back, elucidating the failure."

-- 
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/432144080.1881743.1551440066635.JavaMail.zimbra%40serpro.gov.br.
For more options, visit https://groups.google.com/d/optout.


Call for Presenters - Embedded Grand Rapids MeetUp group: Topic Build tools for embedded software

2019-03-01 Thread embeddedsystemsdesignusa
I am an organizer for the Embedded Grand Rapids MeetUp group.

On the evening of Tuesday, March 26th we are having a meeting on the topic 
of tools to build, release, and/or deploy embedded software.

Would anyone be able to supply or recommend a presenter on this topic? (We 
typically have 2-4 presenters for a total of 2 hours.)

Thank you very much,
Paul Newton.
Grand Rapids, MI

-- 
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/59706199-1f1f-4d3e-adf9-ff766ac042e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How should I update Java code for add one slave node?

2019-03-01 Thread 田欧
I'm using `ssh-slaves-plugin` and write some codes, like the below:

@RequestMapping(value = "/test", method = RequestMethod.GET)
public Map test() {
Map result = new HashMap<>();

// username is my jenkins user

// password is my jenkins password

UsernamePasswordCredentialsImpl credentials = new 
UsernamePasswordCredentialsImpl(CredentialsScope.SYSTEM, "dummyCredentialId", 
"perf", "myname", "mysceret");

SystemCredentialsProvider.getInstance().getDomainCredentialsMap().put(Domain.global(),
Collections.singletonList(
credentials
)
);

// ip is my slave ip
SSHLauncher launcher = new SSHLauncher("10.10.10.10", 22, 
"dummyCredentialId", null, null, null,
null, 3, 1, 1, new KnownHostsFileKeyVerificationStrategy());

DumbSlave dumb = null;
try {
dumb = new DumbSlave("slave-test", "", launcher);
dumb.setNodeDescription("dummy-description");
dumb.setNumExecutors(1);
dumb.setMode(Node.Mode.NORMAL);
dumb.setRetentionStrategy(RetentionStrategy.NOOP);
} catch (IOException e) {
e.printStackTrace();
} catch (Descriptor.FormException e) {
e.printStackTrace();
}


// I see 
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/test/java/hudson/plugins/sshslaves/SSHLauncherTest.java#L181

// use JenkinsRule, so I use Jenkins.getInstanceOrNull
try {
Jenkins.getInstanceOrNull().addNode(dumb);
} catch (IOException e) {
e.printStackTrace();
}
result.put("success", true);
return result;
}


when I run it, return error, stack:

java.lang.NullPointerException: null
at jenkins.security.ConfidentialStore.get(ConfidentialStore.java:68) 
~[jenkins-core-2.166.jar!/:na]
at jenkins.security.ConfidentialKey.load(ConfidentialKey.java:47) 
~[jenkins-core-2.166.jar!/:na]
at 
jenkins.security.CryptoConfidentialKey.getKey(CryptoConfidentialKey.java:41) 
~[jenkins-core-2.166.jar!/:na]
at 
jenkins.security.CryptoConfidentialKey.decrypt(CryptoConfidentialKey.java:134) 
~[jenkins-core-2.166.jar!/:na]
at hudson.util.HistoricalSecrets.decrypt(HistoricalSecrets.java:55) 
~[jenkins-core-2.166.jar!/:na]
at hudson.util.Secret.decrypt(Secret.java:212) 
~[jenkins-core-2.166.jar!/:na]
at hudson.util.Secret.fromString(Secret.java:254) 
~[jenkins-core-2.166.jar!/:na]
at 
com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl.(UsernamePasswordCredentialsImpl.java:72)
 
~[credentials-2.1.18.jar!/:2.1.18]
at com.kk.perf.controller.SlaveController.test(SlaveController.java:48) 
~[classes!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_102]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_102]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
~[na:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_102]
at 
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189)
 
~[spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
 
~[spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) 
~[tomcat-embed-core-9.0.16.jar!/:9.0.16]
at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
 
~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) 
~[tomcat-embed-core-9.0.16.jar!/:9.

Unable to update or install plugins

2019-03-01 Thread LP


We cannot upload ANY plugin to Jenkins after Jenkins was updated. I tried 
NodesJS, GitHub, JIRA.

My netops open the firewall to test but I got the same errors, so it is not 
a firewall.  Did anybody had the same issue with plugins? Were yo able to 
resolve it? Thanks!

Here is the errors:

Failure -java.io.FileNotFoundException: 
http://updates.jenkins-ci.org/download/plugins/nodejs/1.2.7/nodejs.hpi at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) 
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
Source) at 
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) 
at java.net.URLConnection.getHeaderFieldLong(Unknown Source) at 
java.net.URLConnection.getContentLengthLong(Unknown Source) at 
java.net.URLConnection.getContentLength(Unknown Source) at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1125)
 
Caused: java.io.FileNotFoundException: 
http://updates.jenkins-ci.org/download/plugins/nodejs/1.2.7/nodejs.hpi at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
at java.lang.reflect.Constructor.newInstance(Unknown Source) at 
sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) at 
sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) at 
java.security.AccessController.doPrivileged(Native Method) at 
sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown 
Source) at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) 
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
Source) at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1141)
 
Caused: java.io.IOException: Failed to load 
http://updates.jenkins-ci.org/download/plugins/nodejs/1.2.7/nodejs.hpi to 
C:\Program Files (x86)\Jenkins\plugins\nodejs.jpi.tmp at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1148)
 
Caused: java.io.IOException: Failed to download from 
http://updates.jenkins-ci.org/download/plugins/nodejs/1.2.7/nodejs.hpi at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1182)
 
at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1719) at 
hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1982) at 
hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1693) at 
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at 
java.util.concurrent.FutureTask.run(Unknown Source) at 
hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112)
 
at java.lang.Thread.run(Unknown Source)

-- 
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/82cafdae-35a3-4e3f-a9a7-4f04cfada86f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


i need to connect git on jenkins but im getiing error 128

2019-03-01 Thread mohammad sayekooie
*Failed to connect to repository : Command "git ls-remote -h 
http://a.a.a.a:8081/master/project Name.git HEAD" returned status code 128:*
stdout: 
stderr: error: The requested URL returned error: 401 Unauthorized while 
accessing http://*a.a.a.a:8081/master/project Name.git*/info/refs

fatal: HTTP request failed

-- 
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/afaaf96d-0c35-4e92-b49c-19f564ffacea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: i need to connect git on jenkins but im getiing error 128

2019-03-01 Thread Dirk Heinrichs
Am Freitag, den 01.03.2019, 04:56 -0800 schrieb mohammad sayekooie:

401 Unauthorized

And that doesn't ring a bell? Seems you need to provide credentials.

HTH...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
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/afe0e3a098ae4d86e08e3a65cce1d3c13376ba56.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.


Re: i need to connect git on jenkins but im getiing error 128

2019-03-01 Thread Mark Waite
It is generally a bad practice to embed a space character in the name of
the git repository.  If the example you provided accurately describes what
you're trying to do, then you'll probably need to rename the repository
from 'project Name' to something that does not include space characters.

Other things to consider:

   - Have you defined a Jenkins credential with the username and password
   that is used to access that repository?
   - Are you using that Jenkins credential in the job definition?
   - Are you able to clone from that repository using command line git with
   the username and password from the Jenkins credential?
   - Can you clone public repositories (for example,
   https://github.com/jenkinsci/git-client-plugin)?
   - Can you clone other private repositories?
   - Have you tried adding JGit from the "Manage Jenkins" -> "Global Tool
   Configuration" -> "Git installations" section, then adjust your job to use
   JGit instead of command line git?
   - Is this a Freestyle job, a Pipeline job, a Multibranch Pipeline job,
   or something else?
   - What version of command line git is running on the agent where the
   command fails?
   - What operating system are you using?


On Fri, Mar 1, 2019 at 6:19 AM mohammad sayekooie 
wrote:

> *Failed to connect to repository : Command "git ls-remote -h
> http://a.a.a.a:8081/master/project 
> Name.git HEAD" returned status code 128:*
> stdout:
> stderr: error: The requested URL returned error: 401 Unauthorized while
> accessing http://*a.a.a.a:8081/master/project Name.git*/info/refs
>
> fatal: HTTP request failed
>
> --
> 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/afaaf96d-0c35-4e92-b49c-19f564ffacea%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


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


Re: How should I update Java code for add one slave node?

2019-03-01 Thread Mark Waite
The ssh agents use secure shell to connect.  The secure shell uses private
key / public key pairs to perform the connection.  Your example is trying
to use a username / password credential when it needs to use a private key
credential.

We use a technique like below from a system groovy script to add a Jenkins
agent at startup:

import jenkins.model.*
import hudson.model.*
import hudson.slaves.*
import hudson.plugins.sshslaves.*
import hudson.slaves.EnvironmentVariablesNodeProperty.Entry
import hudson.plugins.sshslaves.verifiers.*

import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*

// SET THE INITIAL SSH CREDENTIALS
global_domain = Domain.global()

credentials_store = Jenkins.instance.getExtensionList(
  'com.cloudbees.plugins.credentials.SystemCredentialsProvider'
)[0].getStore()

credentials = new BasicSSHUserPrivateKey(
  CredentialsScope.SYSTEM,
  "ssh-agent-key",
  "jenkins",
  new BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource(
'/home/butler/.ssh/id_rsa'
  ),
  '',
  "SSH Key for the Agent"
)

credentials_store.addCredentials(global_domain, credentials)

SshHostKeyVerificationStrategy doNotVerifyHostKey = new
NonVerifyingKeyVerificationStrategy()

// CREATE THE JDK8 AGENT
SSHLauncher jdk8Launcher = new SSHLauncher("jdk8-ssh-agent", 22,
"ssh-agent-key", "", "", "", "", 33, 2, 5, doNotVerifyHostKey)
Slave jdk8SSHAgent = new DumbSlave("jdk8-node", "/home/jenkins",
jdk8Launcher)
jdk8SSHAgent.setLabelString("docker maven jdk8 jdk-8 java8 java-8
maven-jdk8 java")
jdk8SSHAgent.setNodeDescription("Agent node for JDK8")
jdk8SSHAgent.setNumExecutors(2)

List jdk8SSHAgentEnv = new ArrayList();
jdk8SSHAgentEnv.add(new Entry("JAVA_HOME","/usr/lib/jvm/java-1.8-openjdk"))
EnvironmentVariablesNodeProperty jdk8SSHAgentEnvPro = new
EnvironmentVariablesNodeProperty(jdk8SSHAgentEnv);
jdk8SSHAgent.getNodeProperties().add(jdk8SSHAgentEnvPro)

Jenkins.instance.addNode(jdk8SSHAgent)


You can find this script in the Jenkins server that is provided as part of
the lab environment for the free Jenkins Pipeline Fundamentals course from
https://standard.cbu.cloudbees.com/cloudbees-university-jenkins-pipeline-fundamentals
.  Other free courses are available from https://standard.cbu.cloudbees.com/
.  The script is not part of the course, but it is used in the lab
environment to configure the agents that are used in the labs.

The 'doNotVerifyHostKey' is a risky setting that works in the lab
environment because the lab environment is "disposable".  In your
environment you will probably want to use a different setting that assures
the connecting agent has the correct host key.  You don't want to risk
connecting to the wrong agent.

Mark Waite

On Fri, Mar 1, 2019 at 5:46 AM 田欧  wrote:

> I'm using `ssh-slaves-plugin` and write some codes, like the below:
>
> @RequestMapping(value = "/test", method = RequestMethod.GET)
> public Map test() {
> Map result = new HashMap<>();
>
> // username is my jenkins user
>
> // password is my jenkins password
>
> UsernamePasswordCredentialsImpl credentials = new 
> UsernamePasswordCredentialsImpl(CredentialsScope.SYSTEM, "dummyCredentialId", 
> "perf", "myname", "mysceret");
> 
> SystemCredentialsProvider.getInstance().getDomainCredentialsMap().put(Domain.global(),
> Collections.singletonList(
> credentials
> )
> );
>
> // ip is my slave ip
> SSHLauncher launcher = new SSHLauncher("10.10.10.10", 22, 
> "dummyCredentialId", null, null, null,
> null, 3, 1, 1, new KnownHostsFileKeyVerificationStrategy());
>
> DumbSlave dumb = null;
> try {
> dumb = new DumbSlave("slave-test", "", launcher);
> dumb.setNodeDescription("dummy-description");
> dumb.setNumExecutors(1);
> dumb.setMode(Node.Mode.NORMAL);
> dumb.setRetentionStrategy(RetentionStrategy.NOOP);
> } catch (IOException e) {
> e.printStackTrace();
> } catch (Descriptor.FormException e) {
> e.printStackTrace();
> }
>
>
> // I see 
> https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/test/java/hudson/plugins/sshslaves/SSHLauncherTest.java#L181
>
> // use JenkinsRule, so I use Jenkins.getInstanceOrNull
> try {
> Jenkins.getInstanceOrNull().addNode(dumb);
> } catch (IOException e) {
> e.printStackTrace();
> }
> result.put("success", true);
> return result;
> }
>
>
> when I run it, return error, stack:
>
> java.lang.NullPointerException: null
> at jenkins.security.ConfidentialStore.get(ConfidentialStore.java:68)
> ~[jenkins-core-2.166.jar!/:na]
> at jenkins.security.ConfidentialKey.load(ConfidentialKey.java:47)
> ~[jenkins-core-2.166.jar!/:na]
> at
> jenkins.security.CryptoConfidentialKey.getKey(CryptoConfidentialKey.java:41)
> ~[jenkins-core-2.166.jar!/:na]
> at
> jenkins.secur

Re: Run button on Blue Ocean for Multibranch pipeline

2019-03-01 Thread Mark Waite
The "Branches" section or tab includes a "Run" button when you hover over
the row that represents the specific branch.

On Fri, Mar 1, 2019 at 4:35 AM Thiago Carvalho D Avila <
thiago.dav...@serpro.gov.br> wrote:

> Hi,
>
> I am using Jenkins 2.150.3 with Blue Ocean 1.11.1. When a create a
> Pipeline there is a Run button, but when I create Multibranch Pipelines,
> the button does not appear.
>
> How do I Run on Blue Ocean a Multibranch Pipeline?
>
> Best regards,
>
> Thiago
> -
>
>
> "Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO),
> empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é
> enviada exclusivamente a seu destinatário e pode conter informações
> confidenciais, protegidas por sigilo profissional. Sua utilização
> desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a
> recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente,
> esclarecendo o equívoco."
>
> "This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a
> government company established under Brazilian law (5.615/70) -- is
> directed exclusively to its addressee and may contain confidential data,
> protected under professional secrecy rules. Its unauthorized use is illegal
> and may subject the transgressor to the law's penalties. If you're not the
> addressee, please send it back, elucidating the failure."
>
> --
> 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/432144080.1881743.1551440066635.JavaMail.zimbra%40serpro.gov.br
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
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/CAO49JtGEqVD1c2m5iniFhuUdVXFd8zDFOcC%3D-6rboUp1v815Eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to integrate an angular project's Jenkinsfile with Sonarqube

2019-03-01 Thread Priyal George
I have posted the same in Stackoverflow - 
https://stackoverflow.com/questions/54946420/how-to-integrate-an-angular-projects-jenkinsfile-with-sonarqube

I have an angularjs project. the project has a Jenkinsfile(declarative 
pipeline) which can build the jenkinsjob when a push is done. I'm trying to 
include a sonarqube action here for static scan. Searched a lot for angular 
projects with my scenario. but most of the examples i checked have pom.xml 
file(cause they were either java related projects). 

I have written a *sonar-projects.properties* in root and added all 
necessary item: 

sonar.projectKey=apols:webproject
sonar.projectName=webproject
sonar.projectVersion=1.0.0
sonar.projectDescription=Static analysis for the AppName
sonar.sources=www

sonar.exclusions=**/node_modules/**,**/*.spec.ts,**/dist/**,**/docs/**,**/*.js,**/coverage/**
sonar.tests=www 
sonar.test.inclusions=**/*.spec.ts
sonar.ts.tslint.configPath=tslint.json
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.ts.coverage.lcovReportPath=coverage/lcov.info

 

My *Jenkinsfile's sonar scan* portion - 

stage('Sonarqube') {
steps {
container('maven') {
script {
   withSonarQubeEnv('SonarQube') {
  sh 'mvn clean package sonar:sonar'
   }
   timeout(time: 10, unit: 'MINUTES') {
waitForQualityGate abortPipeline: true
   }
}
}
}
}

As you can see i'm using the maven container in jenkins. 

When the jenkins job runs, when it executes this line in Jenkinsfile - `sh 
'mvn clean package sonar:sonar'`  , it checks for the *pom.xml* file and 
fails. So how can i point this to my *sonar-projects.properties* . 
Please help

-- 
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/13011d7d-ad45-4bb0-8d1d-f8f0ea1d7c8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Warnings Next Generation Plugin with CodeWarrior

2019-03-01 Thread 'Gavin Nottage' via Jenkins Users
I'm trying to get the number of warnings in my CodeWarrior build using the 
Warnings Next Generation Plugin. Whatever I try I always get 0 warnings, 
when the project has many.

The setup is Jenkins on a Linux host with a Windows slave node that has 
CodeWarrior 10.2 installed to build a Freescale Kinetis K20 project. The 
code is checked out fine and builds using a Windows batch command:

"C:\Freescale\CW MCU v10.2\eclipse\ecd.exe" -build -project 
C:\jenkins\workspace\PointColourWindowsBuild\project -config 
BuildConfiguration -cleanBuild

Examples of warnings in the code are:

C:/Freescale/CW MCU 
v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
(C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxUsbDescriptor.c|432|19|1|16759|1)
= uint_32 handle,   
>variable / argument 'handle' is not used in function
C:/Freescale/CW MCU 
v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
(C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxI2C.c|163|15|1|4665|1)
=  return(error);  
>implicit arithmetic conversion from 'unsigned long' to 'unsigned char'
C:/Freescale/CW MCU 
v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
(C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxI2C.c|176|15|1|4977|1)
=  return(error);  
>implicit arithmetic conversion from 'unsigned long' to 'unsigned char'


The output from the Warnings Next Generation Plugin in the log is as 
follows:

[CodeWarrior] Sleeping for 5 seconds due to JENKINS-32191...
[CodeWarrior] Parsing console log (workspace: 
'C:\jenkins\workspace\PointColourWindowsBuild')
[CodeWarrior] Attaching ResultAction with ID 'metrowerks' to run 
'PointColourWindowsBuild #15'.
[CodeWarrior] Using reference build 'PointColourWindowsBuild #14' to compute 
new, fixed, and outstanding issues
[CodeWarrior] Issues delta (vs. reference build): outstanding: 0, new: 0, 
fixed: 0
[CodeWarrior] No quality gates have been set - skipping
[CodeWarrior] Health report is disabled - skipping
[CodeWarrior] Created analysis result for 0 issues (found 0 new issues, fixed 0 
issues)


My Warnings Next Generation Plugin configuration is:
Tool: MetroWerks CodeWarrior
Report File Pattern: 
Report Encoding: 
Custom ID: 
Custom Name: CodeWarrior

What am I doing wrong such that the warnings are not found? Is it possible 
to run just the Warnings Next Generation Plugin without needing to build 
the project every time? 

Thanks

-- 
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/6ed091c5-294d-4390-b3b6-d563915991df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: sending email for unstable builds

2019-03-01 Thread Simon Bayer
Vers Nice, appreciate your feedback. Glad that We could help you :)


 Ursprüngliche Nachricht 
Von: Faad Sayaou 
Datum: 01.03.19 08:34 (GMT+01:00)
An: jenkinsci-users@googlegroups.com
Betreff: Re: sending email for unstable builds

thanks @Simon and @Sagar for your responses.  'currentBuild.currentResult' is 
definitely what i needed and works as intended.

On Fri, 1 Mar 2019 at 06:37, Simon Bayer 
mailto:schn...@msn.com>> wrote:
Check This if u need post build actions for different build status: 
https://jenkins.io/doc/pipeline/tour/post/


 Ursprüngliche Nachricht 
Von: Simon Bayer mailto:schn...@msn.com>>
Datum: 01.03.19 06:32 (GMT+01:00)
An: jenkinsci-users@googlegroups.com
Betreff: Re: sending email for unstable builds

Dear Faad, dear Sagar,
U could check the global variable  'currentBuild.currentResult' in e.g. post 
build actions. Maybe it suits your needs. Doks: 
https://opensource.triology.de/jenkins/pipeline-syntax/globals#currentBuild

Best regards


 Ursprüngliche Nachricht 
Von: Sagar Utekar mailto:sagar.ute...@gslab.com>>
Datum: 01.03.19 03:06 (GMT+01:00)
An: jenkinsci-users@googlegroups.com
Betreff: Re: sending email for unstable builds

You can check the status of build by using BUILD_STATUS, if it is unstable then 
send a mail

On Fri, 1 Mar 2019, 02:11 Faad Sayaou, 
mailto:faad...@gmail.com>> wrote:
Hi everyone
I am using the extended email plugin for notification when the build fails by 
using try catch. I will also like to send email when the build is unstable. 
Below is the structure of my pipeline

node {

   try
   {

stage('Checkout') {
cleanWs()
checkout scm

}


stage('Restore') {

sh "dotnet restore  $proj"

   }

stage('Build') {
sh "dotnet restore  $proj"

   }
stage ('Unit test') {

   sh "dotnet test  $test"
   }
   }
} catch (err) {
 emailext body:
' ${JOB_NAME} ${BUILD_NUMBER} is failing! Somebody should do 
something about that. 
https://jenkins-ma.com/job/Test/${BUILD_NUMBER}/console',
 subject: 'FAILURE', to: 'someEmail..'
}

I will like to send not only when the pipeline fails but when the build is 
unstable. thanks

--
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/2c7db49d-68ef-4c41-8cd2-39ff6855ad83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CANYh6tf5h6_LAafRrKLROquy3mO95puNkbMY0%3DATh5uRnkXeyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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/DM6PR15MB3452B3FF105E05324B50A9C4AC760%40DM6PR15MB3452.namprd15.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


--
Best Regards / Mit freundlichen Grüßen,
Faad Sayaou,
Embedded Systems for Mechatronics Masters student | FH Dortmund | Germany
Fachhochschule Dortmund
University of Applied Sciences and Arts
Email: 
faad...@gmail.com


--
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

Re: Custom pipeline jobs

2019-03-01 Thread Chris Overend
Anyone have any ideas how I can create dynamic pipeline scripts

-- 
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/cb9b11ba-7295-4852-86f3-2a54733b0a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom pipeline jobs

2019-03-01 Thread Jenn Briden
What are you trying to do that wouldn't work in a standard pipeline? We are
working on pipeline improvements, so it's useful to understand why people
resort to scripting.

On Fri, Mar 1, 2019, 08:36 Chris Overend 
wrote:

> Anyone have any ideas how I can create dynamic pipeline scripts
>
> --
> 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/cb9b11ba-7295-4852-86f3-2a54733b0a70%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAOC%3D137%3DkKYBxULFeNTLAA2yOFfh2Vmo617LdJ%2B2tSfh5PdhYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[DevOps World | Jenkins World 2019]: San Francisco CFP closing soon

2019-03-01 Thread Alyssa Tong
Friendly reminder,

if you're planning to make proposal(s) to this event, the CFP is closing
Sunday, March 10. The submission link is HERE
.

Lisbon CFP will remain open, only the San Francisco CFP will be closed on
March 10.

Conference website is HERE .

BR,
alyssa

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


Re: Warnings Next Generation Plugin with CodeWarrior

2019-03-01 Thread Ullrich Hafner
Seems that your warning output format looks totally different. The tests of the 
parser use:

https://github.com/jenkinsci/analysis-model/blob/master/src/test/resources/edu/hm/hafner/analysis/parser/MetrowerksCWCompiler.txt
 


Are there options to change the output format?

> Am 01.03.2019 um 15:09 schrieb 'Gavin Nottage' via Jenkins Users 
> :
> 
> C:/Freescale/CW MCU 
> v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
> (C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxUsbDescriptor.c|432|19|1|16759|1)
> = uint_32 handle,
> >variable / argument 'handle' is not used in function
> C:/Freescale/CW MCU 
> v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
> (C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxI2C.c|163|15|1|4665|1)
> =  return(error);
> >implicit arithmetic conversion from 'unsigned long' to 'unsigned char'
> C:/Freescale/CW MCU 
> v10.2/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Warning
> (C:\jenkins\workspace\PointColourWindowsBuild\point-colour\Sources\port\mqx\MqxI2C.c|176|15|1|4977|1)
> =  return(error);
> >implicit arithmetic conversion from 'unsigned long' to 'unsigned char'

-- 
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/9F719AB3-F1C9-48B2-94CF-D8589A075DA8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Message signed with OpenPGP


Re: Custom pipeline jobs

2019-03-01 Thread RAJENDRA PRASAD
Hope this link can help you:
https://jenkins.io/doc/pipeline/steps/workflow-cps/

Thanks,
Rajendra

On Fri, 1 Mar, 2019, 22:06 Chris Overend, 
wrote:

> Anyone have any ideas how I can create dynamic pipeline scripts
>
> --
> 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/cb9b11ba-7295-4852-86f3-2a54733b0a70%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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