Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declarative Pipeline Not Working #116

Closed
EdisonHarada opened this issue Jul 5, 2019 · 3 comments
Closed

Declarative Pipeline Not Working #116

EdisonHarada opened this issue Jul 5, 2019 · 3 comments

Comments

@EdisonHarada
Copy link

Hi,

I really liked this plugin and I ran a few tests and it worked pretty well. But I'm trying now to run a pipeline and I can't manage to make it work.
I always receive this error:

Started by user Admin
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] ecsTaskTemplate
[Pipeline] // ecsTaskTemplate
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
ERROR: Cloud does not exist: cloud-default
Finished: FAILURE

The pipeline that I'm trying to run is:

pipeline {
  agent none

  stages {
    stage('Test') {
        agent {
            ecs {
                inheritFrom 'ecs-label'
            }
        }
        steps {
            sh 'echo hello'
        }
    }
  }
}

I also tried to add: "cloud 'ecs'", but didn't work:

        agent {
            ecs {
                cloud 'ecs'
                inheritFrom 'ecs-label'
            }
        }

And the error was the same, just changed the name of the cloud:
ERROR: Cloud does not exist: ecs

My configuration is this:
Error

Could you guys help me?

@tarunarora20
Copy link

tarunarora20 commented Aug 5, 2019

Add label in your pipeline and it will automatically start picking the cloud. However it does not allow to override any params after that i.e. image, cpu, etc
label and inheritFrom are required

@chb0github
Copy link
Contributor

@EdisonHarada - How about you not close an issue with no explanation.

@chb0github
Copy link
Contributor

I get other issues too - see #139

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

No branches or pull requests

3 participants