- Newest
- Most votes
- Most comments
Ok so just in case anyone else finds this, i had to create an entirely new version of this custom action using the AWS CLI - I used the JSON template in the AWS CodePipeLine user guide and amended using the old values (luckily I had still got the custom action fields from the original in my terminal buffer):
vi <yourfile>.json
{
"category": "Test",
"provider": "Jenkins",
"version": "3",
"settings": {
"entityUrlTemplate": "https://<your_jenkins_ip>:8080/job/{Config:ProjectName}",
"executionUrlTemplate": "https://<your_jenkins_ip>:8080/job/{Config:ProjectName}/{ExternalExecutionId}"
},
"configurationProperties": [{
"name": "ProjectName",
"required": true,
"key": true,
"secret": false,
"queryable": true,
"description": "The name of the build project must be provided when this action is added to the pipeline.",
"type": "String"
}],
"inputArtifactDetails": {
"maximumCount": 5,
"minimumCount": 0
},
"outputArtifactDetails": {
"maximumCount": 5,
"minimumCount": 0
}
}
$ aws codepipeline create-custom-action-type --cli-input-json file://jenkins_provider.json
....but I still can't add this now using the browser method, it just try to use Version 1 all the time and errors which is really annoying, don't suppose anyone knows a fix other than contacting AWS? you live and learn huh! (it is just for study purposes this project using my account).
Hello,
You are right that if custom action is updated via web-console version field is missed. Possible workarounds are to use API/CLI as you've done or create an action with the new name.
Thanks for bringing this to our attention! I don't have any ETA, but this issue is added to our backlog.
Few notes:
- CodePipeline does not use 'Server URL' parameter of custom action to communicate with Jenkins. So even if instance's IP has changed Jenkins will be able to poll CodePipeline for jobs (but URL to the job in the CodePipeline web-console will be broken).
- You can look at CodeBuild service [1] for your unit/integration tests to avoid having dedicated Jenkins instance all the time.
Best,
Ruslan.
[1] http://docs.aws.amazon.com/codebuild/latest/userguide/welcome.html
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago