[JIRA] (JENKINS-42338) default tools not installed on agent

2 views
Skip to first unread message

domi@fortysix.ch (JIRA)

unread,
Feb 27, 2017, 5:06:01 AM2/27/17
to jenkinsc...@googlegroups.com
Dominik Bartholdi created an issue
 
Jenkins / Bug JENKINS-42338
default tools not installed on agent
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Feb/27 10:05 AM
Priority: Major Major
Reporter: Dominik Bartholdi

given the following pipeline, I would expect the java version "1.8" to be printed, but this is not the case - instead I get "1.7"; the default version of the underlying system.

pipeline {
    agent none
    tools {
        jdk "Oracle JDK 1.8 (latest)"
    }    
    stages {
        stage ('prepare') {
            agent any
            steps {
                sh "java -version"
            }
        }
    }
}

but this one works as:

pipeline {
    agent any
    tools {
        jdk "Oracle JDK 1.8 (latest)"
    }    
    stages {
        stage ('prepare') {
            steps {
                sh "java -version"
            }
        }
    }
}

...my expectation is, that the tools on top scope are installed on all agents.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Feb 27, 2017, 2:28:01 PM2/27/17
to jenkinsc...@googlegroups.com
Andrew Bayer commented on Bug JENKINS-42338
 
Re: default tools not installed on agent

The current behavior is to install the tools on the agent at the same scope, but let me think about it.

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:26:14 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages