question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Requested information for Scripted Pipeline syntax

See original GitHub issue

Hello,

I need the information to use theamazon-ecs-plugin in a Scripted Pipeline.

The syntax generator provides the following code.

// This step should not normally be used in your script. Consult the inline help for details.
ecsTaskTemplate(containerUser: '', cpu: 1, executionRole: 'ecsTaskExecutionRole', image: 'jenkins/inbound-agent', inheritFrom: '', label: '', launchType: 'EC2', logDriver: '', name: 'jenkins-agent', networkMode: 'bridge', remoteFSRoot: '/home/jenkins', securityGroups: '', subnets: '', taskDefinitionOverride: '', taskrole: '') {

   // some block
}

And the Declarative Pipeline uses the agent syntax that is not available in scripted as far as I’m aware of. Could you please provide the information to complete the setup.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jlentinkcommented, May 23, 2020

Works like a charm. Thanks @markyjackson-taulia

1reaction
wuillaumcommented, May 16, 2020

I’ve added some examples that I’ve used myself to the README in this PR https://github.com/jenkinsci/amazon-ecs-plugin/pull/179/files

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipeline Syntax - Jenkins
script. Scripted Pipeline. Flow Control; Steps; Differences from plain Groovy. Syntax Comparison. This section builds on the information introduced in ...
Read more >
Using Scripted Pipeline syntax - CloudBees Documentation
Scripted Pipeline does not introduce any steps which are specific to its syntax; Pipeline Steps reference which contains a comprehensive list of steps...
Read more >
Scripted Pipeline Syntax - JFrog - JFrog Documentation
This page describes how to use scripted pipeline syntax with Artifactory. ... The information required for collecting the issues is provided ...
Read more >
How to Use the Jenkins Scripted Pipeline - BlazeMeter
A Jenkins Scripted Pipeline is a sequence of stages to perform CI/CD-related tasks that can be specified as code, enabling you to develop...
Read more >
Comprehensive Guide To Jenkins Declarative Pipeline [With ...
In pipeline as code technique, jobs are created using a script file that contains the steps to be executed by the job. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found