Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Jenkinsfile and Jenkins Code Pipeline issue #26

Open
dipthegeezer opened this issue Jul 7, 2017 · 6 comments
Open

Jenkinsfile and Jenkins Code Pipeline issue #26

dipthegeezer opened this issue Jul 7, 2017 · 6 comments

Comments

@dipthegeezer
Copy link

dipthegeezer commented Jul 7, 2017

Hi

I would like to use this plugin within a Jenkins pipeline project via a Jenkinsfile. However I can't get it to work. It doesn't appear to poll the scm (i.e. AWS). The polling works fine if I use a freestyle project so it may well be that I am doing something wrong in my Jenkinsfile configuration. This is what I have:

properties([
        buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '1', daysToKeepStr: '', numToKeepStr: '1')),
        pipelineTriggers([pollSCM('* * * * *')])
])
node("leader"){
  checkout([$class: 'AWSCodePipelineSCM', clearWorkspace:true, region: "eu-west-1",
awsAccessKey: "xxxxx", awsSecretKey: "xxxxx", 
category: "Test", provider: "Jenkins", version: "2", proxyHost: "", proxyPort:0,
name:"test-1"])  
}

Any help appreciated. I get a polling log but it's not the AWS code pipeline polling log that I would have expected with a freestyle project. It always has success in it but it never actually calls AWS.

Thanks

@dipthegeezer dipthegeezer changed the title Does this plugin work with Jenkinsfile Jenkinsfile and Jenkins Code Pipeline issue Jul 7, 2017
@trim-fly
Copy link

trim-fly commented Sep 1, 2017

i have similar issue,
checkout([$class: 'AWSCodePipelineSCM'...) step just totally hangs from pipeline script (work fine from freestyle job). and job even cannot be aborted, only restart jenkins.

@ryanl-tagomi
Copy link

Hi all - running into the same issue...did you guys find a workaround?

@jofwar
Copy link

jofwar commented Aug 10, 2018

+1 on this?

@jozenstar
Copy link

+1

2 similar comments
@abhatia05
Copy link

+1

@indra281
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants