{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d3b2ee5c-0580-4db3-bba7-2e2117e32bd6",
    "slug": "id4SxN",
    "name": "Jenkins Agent",
    "description": "A Jenkins automation agent.",
    "url": "https://railway.com/deploy/id4SxN",
    "upstream": {
      "image": "jenkins/inbound-agent:jdk21"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Jenkins Agent",
      "source": {
        "image": "jenkins/inbound-agent:jdk21"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/jenkins/agent",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "JENKINS_URL",
      "service": "Jenkins Agent",
      "description": "Url for the Jenkins server. Should be in the format: http://${{Jenkins.JENKINS_PRIVATE_URL}}:${{Jenkins.JENKINS_PRIVATE_PORT}}",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "JENKINS_SECRET",
      "service": "Jenkins Agent",
      "description": "The secret as shown on the controller after creating the agent.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Jenkins Agent",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "JENKINS_AGENT_NAME",
      "service": "Jenkins Agent",
      "description": "The name of the agent, it should match the name you specified when creating the agent on the controller.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "JENKINS_AGENT_WORKDIR",
      "service": "Jenkins Agent",
      "description": "Provide a value for JENKINS_AGENT_WORKDIR.",
      "secret": false,
      "strategy": "default",
      "default": "/home/jenkins/agent"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "id4SxN"
      }
    },
    "cli": "railway deploy --template id4SxN",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d3b2ee5c-0580-4db3-bba7-2e2117e32bd6",
            "serializedConfig": {
              "services": {
                "bee509ea-b2b8-4c82-ad3d-337993193889": {
                  "icon": "https://www.jenkins.io/favicon.ico",
                  "name": "Jenkins Agent",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "jenkins/inbound-agent:jdk21"
                  },
                  "variables": {
                    "JENKINS_URL": {
                      "isOptional": false,
                      "description": "Url for the Jenkins server. Should be in the format: http://${{Jenkins.JENKINS_PRIVATE_URL}}:${{Jenkins.JENKINS_PRIVATE_PORT}}",
                      "defaultValue": "{{JENKINS_URL}}"
                    },
                    "JENKINS_SECRET": {
                      "isOptional": false,
                      "description": "The secret as shown on the controller after creating the agent.",
                      "defaultValue": "{{JENKINS_SECRET}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    },
                    "JENKINS_AGENT_NAME": {
                      "isOptional": false,
                      "description": "The name of the agent, it should match the name you specified when creating the agent on the controller.",
                      "defaultValue": "{{JENKINS_AGENT_NAME}}"
                    },
                    "JENKINS_AGENT_WORKDIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/home/jenkins/agent"
                    }
                  },
                  "volumeMounts": {
                    "bee509ea-b2b8-4c82-ad3d-337993193889": {
                      "mountPath": "/home/jenkins/agent"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0"
}
