src/Pure/Admin/isabelle_cronjob.scala
changeset 71554 2a82462276db
parent 71538 138e8226961e
child 71559 0a6cacf2c143
equal deleted inserted replaced
71553:cf2406e654cf 71554:2a82462276db
   148     description: String,
   148     description: String,
   149     host: String,
   149     host: String,
   150     user: String = "",
   150     user: String = "",
   151     port: Int = 0,
   151     port: Int = 0,
   152     ssh_host: String = "",
   152     ssh_host: String = "",
   153     ssh_permissive: Boolean = false,
       
   154     proxy_host: String = "",
   153     proxy_host: String = "",
   155     proxy_user: String = "",
   154     proxy_user: String = "",
   156     proxy_port: Int = 0,
   155     proxy_port: Int = 0,
   157     self_update: Boolean = false,
   156     self_update: Boolean = false,
   158     historic: Boolean = false,
   157     historic: Boolean = false,
   167     active: Boolean = true)
   166     active: Boolean = true)
   168   {
   167   {
   169     def ssh_session(context: SSH.Context): SSH.Session =
   168     def ssh_session(context: SSH.Context): SSH.Session =
   170       context.open_session(host = proper_string(ssh_host) getOrElse host, user = user, port = port,
   169       context.open_session(host = proper_string(ssh_host) getOrElse host, user = user, port = port,
   171         proxy_host = proxy_host, proxy_user = proxy_user, proxy_port = proxy_port,
   170         proxy_host = proxy_host, proxy_user = proxy_user, proxy_port = proxy_port,
   172         permissive = ssh_permissive)
   171         permissive = proxy_host.nonEmpty)
   173 
   172 
   174     def sql: SQL.Source =
   173     def sql: SQL.Source =
   175       Build_Log.Prop.build_engine + " = " + SQL.string(Build_History.engine) + " AND " +
   174       Build_Log.Prop.build_engine + " = " + SQL.string(Build_History.engine) + " AND " +
   176       SQL.member(Build_Log.Prop.build_host.ident, host :: more_hosts) +
   175       SQL.member(Build_Log.Prop.build_host.ident, host :: more_hosts) +
   177       (if (detect == "") "" else " AND " + SQL.enclose(detect))
   176       (if (detect == "") "" else " AND " + SQL.enclose(detect))