https://kotlinlang.org logo
Join SlackCommunities
Powered by
# teamcity
  • k

    kkozmic

    11/30/2016, 3:44 AM
    If I set it in the UI and then export the Kotlin DSL configuration I can see it shows up as some sort of encrypted value
  • k

    kkozmic

    11/30/2016, 3:45 AM
    So how can I set it to some other value? And how can I reference a Project param from a Build Step param? /cc @pavel.sher
  • h

    hhariri

    12/09/2016, 8:24 PM
    Didn't env vars work?
  • k

    kkozmic

    12/28/2016, 11:03 PM
    @kkozmic has left the channel
  • m

    mesquka

    04/26/2017, 2:26 PM
    @mesquka has left the channel
  • o

    oleksandr.samsonov

    06/16/2017, 11:16 PM
    @oleksandr.samsonov has left the channel
  • g

    groostav

    10/14/2017, 8:35 PM
    Hey gents, I'm at a startup and we're moving locations, so our IP's are changing and etc etc. I'd kinda like to move my teamcity stuff into the cloud, anybody got a suggestion?
  • g

    groostav

    10/14/2017, 8:36 PM
    We got the teamcity front-end + database setup on azure (still pointing build agents themselves at machines on our network), but it seems pricey for what its doing.
  • g

    groostav

    12/20/2017, 8:24 PM
    does anybody have experience with lets-encrypt on windows with teamcity?
  • g

    groostav

    12/20/2017, 8:25 PM
    I've found this blog: http://www.damirscorner.com/blog/posts/20170120-HttpsInTeamCityWithLetsEncryptCertificate.html, but I dont understand how he can run IIS to host let-encrypt files while also running tomcat to host teamcity
  • g

    groostav

    12/20/2017, 8:27 PM
    can i just modify Teamcity's Tomcat
    /webapps/ROOT/web-inf/web.xml
    to expose the lets-encrypt generated
    .../ROOT/.wellknown
    folder with the challenge?
  • g

    GuerrillaDan

    02/12/2018, 5:05 PM
    Hi, I was wondering if there was a notion of TeamCity DSL where we have multiple projects with a singular build. So a project for each branch develop, release and hotfix that pretty much to the same set of build steps but where the projects contain specific parameters (such as deployment_server) that is different for each one.
  • h

    Harsha

    07/06/2018, 9:53 AM
    We use TeamCity as CI tool. Since it supports kotlin DSL for the pipeline/auto configuration. I am exploring an option use the TeamCity settings.kts file and run it locally on my machine to execute the build steps anyone has any experience in this scenario?
  • j

    julioyg

    09/24/2018, 8:11 AM
    got the same problem here, it'd be great to run the script locally, also, do you guys know a website where to look at for documentation, I'm trying to implement it, but got a few issues, and don't really know how to get around them: - does each phase of a project/subproject always run in parallel? - how to archive artifacts - to make a project wait for another one to finish I need to add it as a dep, but there are two types:
    artifacts
    and
    dependency
    ? or is just that
    artifact
    can be used inside the
    dependencies
    block? also how can I use artifacts archived in other jobs?
  • j

    julioyg

    09/24/2018, 8:12 AM
    oh, sorry... Good morning 🤦‍♂️ .. apologies, it's monday 😅
  • i

    igor.wojda

    11/12/2018, 3:11 PM
    Hey I am playing with team city where my configuration is stored in project
    .teamcity/settings.kts
    file. I cna open the script in AndroidStudio, I have all proper code colouring, however I don’t have any code completion. ANy ideas how to fix it ? 🤔
  • h

    Harsha

    01/04/2019, 5:40 AM
    Can i use the teamcity parameters like teamcity.serverUrl to make conditional checks in settings.kts file?
  • g

    groostav

    02/28/2019, 2:47 AM
    Does anybody here have experience writing scripts to try and allocate build agent virtual machines based on usage? I was thinking a fairly simple system where you try to keep one idle agent, when that agent receives a job you try to spin up another one, and when an agent has been idle for 10 minutes it gets turned off.
  • p

    pawegio

    06/04/2019, 9:29 AM
    Old question, but remains not answered. I think that the best way is to create new maven project from existing sources in IntelliJ IDEA pointing toward the
    .teamcity/pom.xml
    file.
    👍 1
  • a

    asad.awadia

    07/14/2020, 5:44 PM
    is the teamcity kotlin dsl syntactic sugar over shell scripts? i.e. does it basically at the end of the day ‘compile’ the dsl down to shell commands and run things in bash to test or deploy? [like
    mvn package
    etc]
    h
    • 2
    • 2
  • d

    Darren Bell

    09/22/2020, 10:29 AM
    Hi. Is there a good/large example of a project using the DSL including unit tests. I'm failing miserably with this. I've managed to get tests to run. But then I my test is failing due to to the DslContext! 1 complete example would be of a massive help in guidance.
  • p

    Pavel Pismerov

    09/28/2022, 6:50 PM
    Hi! Is this channel still alive? Can anybody help with setting up parameters in Teamcity DSL? Is it possible to set parameter value from environment variable? e.g.
    Copy code
    param("key", "Some text %env.VALUE%")
    In short I need to store the global variable somewhere, update it with job and use it as a param value in Cloud Profile configuration.
  • r

    Rodrigo Silva

    02/14/2023, 8:18 PM
    Hello everybody. I wanted to know if there is a dockerfile with teamcity server and agent with jdk 17
  • a

    Anders Kirkeby

    08/24/2023, 6:41 AM
    Hi. Testing the waters here to see if anyone is still active here 😬 I'm working on an internal DSL to make interfacing with TeamCity easier for our developers. It seems to run well enough when running the mvn:generate action on an actual pipeline, but writing test-code has proven to be quite the challenge. Even with this block
    Copy code
    fun generate() {
            project {
                internalBuildTypes.forEach {
                    buildType(it)
                }
            }
        }
    I get an error
    Project builder is not provided
    which I cannot get to the bottom off. Anyone have some pointer? Be happy to provide more code if needed!
    a
    • 2
    • 10
  • a

    Anders Kirkeby

    10/04/2023, 12:50 PM
    Hi. Wondering if people have had success with distributing shell/bash scripts along with a DSL-library. My dream scenario would be to add a ./my-random-script.sh in the resources folder of the library and then have a buildType that uses the exec stage like
    Copy code
    BuildType({
        ...
        exec {
           path = "/.my-random-script.sh" // or somehow a resolved uri
        } 
    })
    or really any other way to distribute the file WITH the library (making versioning etc. easier) I'd appreciate any thoughts or ideas here 🙏
    a
    • 2
    • 3
  • l

    Lukas Anda

    11/14/2023, 11:08 AM
    Hi I was wondering, if I can somehow configure my teamcity deployment to publish a built artifact (an .apk file) into an open pull request which is supposed to trigger the build step? To give better context, here is what I’d like to have setup: Create pull request -> on each commit (with some delay to not trigger every time if I push 10 commits) trigger a build -> build .apk on teamcity -> send this .apk to the pull request (alternatively, deploy the apk to another place and publish a link to space)
  • a

    Anders Kirkeby

    11/24/2023, 1:40 PM
    👋 I'm trying to use kotlin compiler options when generating kotlin DSL teamcity configs. Adding the compiler option onto the
    kotlin-maven-plugin
    ensures the compiler warning dissapper in the settings.kts file (see the configuration parameter below), but trying to generate the configs with the
    teamcity-configs:generate
    task doesn't work. Question then is, how do I add the compiler options so that they are picked up also when generating configs, and avoid the following error:
    Copy code
    [ERROR] Error while generating TeamCity configs:
    [ERROR] Compilation error settings.kts[8:9]: To use contextual declarations, specify the `-Xcontext-receivers` compiler option
    [ERROR] Compilation error settings.kts[13:13]: To use contextual declarations, specify the `-Xcontext-receivers` compiler option
    these are the compiler options I'm adding:
    Copy code
    <configuration>
                        <args>
                            <arg>-Xcontext-receivers</arg>
                        </args>
                    </configuration>
    ☝️ again, they are picked up, but not when generating configs which seems like a bug? 🐞
  • s

    spechard

    04/29/2024, 8:52 AM
    Hi all, My Teamcity has both built-in and AWS S3 storage configured, but only the AWS S3 is active. However, both are used to store created artefacts, and my server instance hit regularly a free disk limit. Is there a way not to keep any artefacts on the built-in storage, or to have a clean-up rule specific to a storage configuration? Thanks for your help
  • m

    Mario Andhika

    10/08/2024, 4:35 AM
    Does TeamCity Pipelines only support GitHub at the moment? I wonder if I can connect SpaceCode with TeamCity Pipelines
  • m

    Mario Andhika

    10/10/2024, 10:55 AM
    Why would this run shadowJar?
    Copy code
    package _Self.buildTypes
    
    import jetbrains.buildServer.configs.kotlin.*
    import jetbrains.buildServer.configs.kotlin.buildFeatures.perfmon
    import jetbrains.buildServer.configs.kotlin.buildSteps.gradle
    import jetbrains.buildServer.configs.kotlin.triggers.vcs
    
    object Build1 : BuildType({
        name = "Build (1)"
    
        vcs {
            root(HttpsGitJetbrainsSpaceZealstechMainZealsKtorGitRefsHeadsMaster1)
        }
        steps {
            gradle {
                name = "gradleBuild"
                id = "gradleBuild"
                tasks = "build"
                buildFile = "build.gradle.kts"
            }
        }
        triggers {
            vcs {
            }
        }
    
        features {
            perfmon {
            }
        }
    })